Auto merge of #25923 - iulianR:issue-22312, r=jdm

Add VTTRegion and part of VTTCue DOM interfaces

<!-- Please describe your changes on the following line: -->
Hello! In this PR I implemented the VTTRegion DOM interface and part of VTTCue (#22312). Before continuing I thought it's maybe a good idea to first request a review or even merge what I did up to this point, as I might get stuck on the next part. I have a slight idea of what needs to be done (I assume it's hooking the GStreamer parser somewhere in `GetCueAsHTML()`), but a short outline or some more instructions would help a lot.

I updated test expectations by first running:
```
./mach test-wpt tests/wpt/web-platform-tests/webvtt/api --log-raw servo.log --pref dom.webvtt.enabled=true
```
then
```
./mach update-wpt servo.log
```
Thanks!
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
bors-servo 2020-03-09 17:33:15 -04:00 committed by GitHub
commit 95f3d46644
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
299 changed files with 1500 additions and 8 deletions

View file

@ -294,6 +294,9 @@ mod gen {
event_polling_interval: i64,
test: bool,
},
webvtt: {
enabled: bool,
},
webxr: {
#[serde(default)]
enabled: bool,

View file

@ -538,6 +538,8 @@ pub mod vrfieldofview;
pub mod vrframedata;
pub mod vrpose;
pub mod vrstageparameters;
pub mod vttcue;
pub mod vttregion;
pub mod webgl_extensions;
pub use self::webgl_extensions::ext::*;
pub mod webgl2renderingcontext;

View file

@ -25,24 +25,32 @@ pub struct TextTrackCue {
}
impl TextTrackCue {
// FIXME(#22314, dlrobertson) implement VTTCue.
#[allow(dead_code)]
pub fn new_inherited(id: DOMString, track: Option<&TextTrack>) -> TextTrackCue {
pub fn new_inherited(
id: DOMString,
start_time: f64,
end_time: f64,
track: Option<&TextTrack>,
) -> TextTrackCue {
TextTrackCue {
eventtarget: EventTarget::new_inherited(),
id: DomRefCell::new(id),
track: track.map(Dom::from_ref),
start_time: Cell::new(0.),
end_time: Cell::new(0.),
start_time: Cell::new(start_time),
end_time: Cell::new(end_time),
pause_on_exit: Cell::new(false),
}
}
// FIXME(#22314, dlrobertson) implement VTTCue.
#[allow(dead_code)]
pub fn new(window: &Window, id: DOMString, track: Option<&TextTrack>) -> DomRoot<TextTrackCue> {
pub fn new(
window: &Window,
id: DOMString,
start_time: f64,
end_time: f64,
track: Option<&TextTrack>,
) -> DomRoot<TextTrackCue> {
reflect_dom_object(
Box::new(TextTrackCue::new_inherited(id, track)),
Box::new(TextTrackCue::new_inherited(id, start_time, end_time, track)),
window,
TextTrackCueBinding::Wrap,
)

View file

@ -0,0 +1,232 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
use crate::dom::bindings::cell::DomRefCell;
use crate::dom::bindings::codegen::Bindings::VTTCueBinding::{
self, AlignSetting, AutoKeyword, DirectionSetting, LineAlignSetting, PositionAlignSetting,
VTTCueMethods,
};
use crate::dom::bindings::error::{Error, ErrorResult};
use crate::dom::bindings::num::Finite;
use crate::dom::bindings::reflector::{reflect_dom_object, DomObject};
use crate::dom::bindings::root::{Dom, DomRoot};
use crate::dom::bindings::str::DOMString;
use crate::dom::documentfragment::DocumentFragment;
use crate::dom::globalscope::GlobalScope;
use crate::dom::texttrackcue::TextTrackCue;
use crate::dom::vttregion::VTTRegion;
use crate::dom::window::Window;
use dom_struct::dom_struct;
use std::cell::Cell;
#[dom_struct]
pub struct VTTCue {
texttrackcue: TextTrackCue,
region: DomRefCell<Option<Dom<VTTRegion>>>,
vertical: Cell<DirectionSetting>,
snap_to_lines: Cell<bool>,
line: DomRefCell<LineAndPositionSetting>,
line_align: Cell<LineAlignSetting>,
position: DomRefCell<LineAndPositionSetting>,
position_align: Cell<PositionAlignSetting>,
size: Cell<f64>,
align: Cell<AlignSetting>,
text: DomRefCell<DOMString>,
}
impl VTTCue {
pub fn new_inherited(start_time: f64, end_time: f64, text: DOMString) -> Self {
VTTCue {
texttrackcue: TextTrackCue::new_inherited(
DOMString::default(),
start_time,
end_time,
None,
),
region: DomRefCell::new(None),
vertical: Cell::new(DirectionSetting::default()),
snap_to_lines: Cell::new(true),
line: DomRefCell::new(LineAndPositionSetting::Auto),
line_align: Cell::new(LineAlignSetting::Start),
position: DomRefCell::new(LineAndPositionSetting::Auto),
position_align: Cell::new(PositionAlignSetting::Auto),
size: Cell::new(100_f64),
align: Cell::new(AlignSetting::Center),
text: DomRefCell::new(text),
}
}
pub fn new(
global: &GlobalScope,
start_time: f64,
end_time: f64,
text: DOMString,
) -> DomRoot<Self> {
reflect_dom_object(
Box::new(Self::new_inherited(start_time, end_time, text)),
global,
VTTCueBinding::Wrap,
)
}
#[allow(non_snake_case)]
pub fn Constructor(
window: &Window,
start_time: Finite<f64>,
end_time: Finite<f64>,
text: DOMString,
) -> DomRoot<Self> {
VTTCue::new(&window.global(), *start_time, *end_time, text)
}
}
impl VTTCueMethods for VTTCue {
// https://w3c.github.io/webvtt/#dom-vttcue-region
fn GetRegion(&self) -> Option<DomRoot<VTTRegion>> {
self.region
.borrow()
.as_ref()
.map(|r| DomRoot::from_ref(&**r))
}
// https://w3c.github.io/webvtt/#dom-vttcue-region
fn SetRegion(&self, value: Option<&VTTRegion>) {
*self.region.borrow_mut() = value.map(|r| Dom::from_ref(r))
}
// https://w3c.github.io/webvtt/#dom-vttcue-vertical
fn Vertical(&self) -> DirectionSetting {
self.vertical.get()
}
// https://w3c.github.io/webvtt/#dom-vttcue-vertical
fn SetVertical(&self, value: DirectionSetting) {
self.vertical.set(value);
}
// https://w3c.github.io/webvtt/#dom-vttcue-snaptolines
fn SnapToLines(&self) -> bool {
self.snap_to_lines.get()
}
// https://w3c.github.io/webvtt/#dom-vttcue-snaptolines
fn SetSnapToLines(&self, value: bool) {
self.snap_to_lines.set(value)
}
// https://w3c.github.io/webvtt/#dom-vttcue-line
fn Line(&self) -> VTTCueBinding::LineAndPositionSetting {
VTTCueBinding::LineAndPositionSetting::from(self.line.borrow().clone())
}
// https://w3c.github.io/webvtt/#dom-vttcue-line
fn SetLine(&self, value: VTTCueBinding::LineAndPositionSetting) {
*self.line.borrow_mut() = value.into();
}
// https://w3c.github.io/webvtt/#dom-vttcue-linealign
fn LineAlign(&self) -> LineAlignSetting {
self.line_align.get()
}
// https://w3c.github.io/webvtt/#dom-vttcue-linealign
fn SetLineAlign(&self, value: LineAlignSetting) {
self.line_align.set(value);
}
// https://w3c.github.io/webvtt/#dom-vttcue-position
fn Position(&self) -> VTTCueBinding::LineAndPositionSetting {
VTTCueBinding::LineAndPositionSetting::from(self.position.borrow().clone())
}
// https://w3c.github.io/webvtt/#dom-vttcue-position
fn SetPosition(&self, value: VTTCueBinding::LineAndPositionSetting) -> ErrorResult {
if let VTTCueBinding::LineAndPositionSetting::Double(x) = value {
if *x < 0_f64 || *x > 100_f64 {
return Err(Error::IndexSize);
}
}
*self.position.borrow_mut() = value.into();
Ok(())
}
// https://w3c.github.io/webvtt/#dom-vttcue-positionalign
fn PositionAlign(&self) -> PositionAlignSetting {
self.position_align.get()
}
// https://w3c.github.io/webvtt/#dom-vttcue-positionalign
fn SetPositionAlign(&self, value: PositionAlignSetting) {
self.position_align.set(value);
}
// https://w3c.github.io/webvtt/#dom-vttcue-size
fn Size(&self) -> Finite<f64> {
Finite::wrap(self.size.get())
}
// https://w3c.github.io/webvtt/#dom-vttcue-size
fn SetSize(&self, value: Finite<f64>) -> ErrorResult {
if *value < 0_f64 || *value > 100_f64 {
return Err(Error::IndexSize);
}
self.size.set(*value);
Ok(())
}
// https://w3c.github.io/webvtt/#dom-vttcue-align
fn Align(&self) -> AlignSetting {
self.align.get()
}
// https://w3c.github.io/webvtt/#dom-vttcue-align
fn SetAlign(&self, value: AlignSetting) {
self.align.set(value);
}
// https://w3c.github.io/webvtt/#dom-vttcue-text
fn Text(&self) -> DOMString {
self.text.borrow().clone()
}
// https://w3c.github.io/webvtt/#dom-vttcue-text
fn SetText(&self, value: DOMString) {
*self.text.borrow_mut() = value;
}
// https://w3c.github.io/webvtt/#dom-vttcue-getcueashtml
fn GetCueAsHTML(&self) -> DomRoot<DocumentFragment> {
todo!()
}
}
#[derive(Clone, JSTraceable, MallocSizeOf)]
enum LineAndPositionSetting {
Double(f64),
Auto,
}
impl From<VTTCueBinding::LineAndPositionSetting> for LineAndPositionSetting {
fn from(value: VTTCueBinding::LineAndPositionSetting) -> Self {
match value {
VTTCueBinding::LineAndPositionSetting::Double(x) => LineAndPositionSetting::Double(*x),
VTTCueBinding::LineAndPositionSetting::AutoKeyword(_) => LineAndPositionSetting::Auto,
}
}
}
impl From<LineAndPositionSetting> for VTTCueBinding::LineAndPositionSetting {
fn from(value: LineAndPositionSetting) -> Self {
match value {
LineAndPositionSetting::Double(x) => {
VTTCueBinding::LineAndPositionSetting::Double(Finite::wrap(x))
},
LineAndPositionSetting::Auto => {
VTTCueBinding::LineAndPositionSetting::AutoKeyword(AutoKeyword::Auto)
},
}
}
}

View file

@ -0,0 +1,167 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
use crate::dom::bindings::cell::DomRefCell;
use crate::dom::bindings::codegen::Bindings::VTTRegionBinding::{
self, ScrollSetting, VTTRegionMethods,
};
use crate::dom::bindings::error::{Error, ErrorResult, Fallible};
use crate::dom::bindings::num::Finite;
use crate::dom::bindings::reflector::{reflect_dom_object, DomObject, Reflector};
use crate::dom::bindings::root::DomRoot;
use crate::dom::bindings::str::DOMString;
use crate::dom::globalscope::GlobalScope;
use crate::dom::window::Window;
use dom_struct::dom_struct;
use std::cell::Cell;
#[dom_struct]
pub struct VTTRegion {
reflector_: Reflector,
id: DomRefCell<DOMString>,
width: Cell<f64>,
lines: Cell<u32>,
region_anchor_x: Cell<f64>,
region_anchor_y: Cell<f64>,
viewport_anchor_x: Cell<f64>,
viewport_anchor_y: Cell<f64>,
scroll: Cell<ScrollSetting>,
}
impl VTTRegion {
pub fn new_inherited() -> Self {
VTTRegion {
reflector_: Reflector::new(),
id: DomRefCell::new(DOMString::default()),
width: Cell::new(100_f64),
lines: Cell::new(3),
region_anchor_x: Cell::new(0_f64),
region_anchor_y: Cell::new(100_f64),
viewport_anchor_x: Cell::new(0_f64),
viewport_anchor_y: Cell::new(100_f64),
scroll: Cell::new(Default::default()),
}
}
pub fn new(global: &GlobalScope) -> DomRoot<Self> {
reflect_dom_object(
Box::new(Self::new_inherited()),
global,
VTTRegionBinding::Wrap,
)
}
#[allow(non_snake_case)]
pub fn Constructor(window: &Window) -> Fallible<DomRoot<Self>> {
Ok(VTTRegion::new(&window.global()))
}
}
impl VTTRegionMethods for VTTRegion {
// https://w3c.github.io/webvtt/#dom-vttregion-id
fn Id(&self) -> DOMString {
self.id.borrow().clone()
}
// https://w3c.github.io/webvtt/#dom-vttregion-id
fn SetId(&self, value: DOMString) {
*self.id.borrow_mut() = value;
}
// https://w3c.github.io/webvtt/#dom-vttregion-width
fn Width(&self) -> Finite<f64> {
Finite::wrap(self.width.get())
}
// https://w3c.github.io/webvtt/#dom-vttregion-width
fn SetWidth(&self, value: Finite<f64>) -> ErrorResult {
if *value < 0_f64 || *value > 100_f64 {
return Err(Error::IndexSize);
}
self.width.set(*value);
Ok(())
}
// https://w3c.github.io/webvtt/#dom-vttregion-lines
fn Lines(&self) -> u32 {
self.lines.get()
}
// https://w3c.github.io/webvtt/#dom-vttregion-lines
fn SetLines(&self, value: u32) -> ErrorResult {
self.lines.set(value);
Ok(())
}
// https://w3c.github.io/webvtt/#dom-vttregion-regionanchorx
fn RegionAnchorX(&self) -> Finite<f64> {
Finite::wrap(self.region_anchor_x.get())
}
// https://w3c.github.io/webvtt/#dom-vttregion-regionanchorx
fn SetRegionAnchorX(&self, value: Finite<f64>) -> ErrorResult {
if *value < 0_f64 || *value > 100_f64 {
return Err(Error::IndexSize);
}
self.region_anchor_x.set(*value);
Ok(())
}
// https://w3c.github.io/webvtt/#dom-vttregion-regionanchory
fn RegionAnchorY(&self) -> Finite<f64> {
Finite::wrap(self.region_anchor_y.get())
}
// https://w3c.github.io/webvtt/#dom-vttregion-regionanchory
fn SetRegionAnchorY(&self, value: Finite<f64>) -> ErrorResult {
if *value < 0_f64 || *value > 100_f64 {
return Err(Error::IndexSize);
}
self.region_anchor_y.set(*value);
Ok(())
}
// https://w3c.github.io/webvtt/#dom-vttregion-viewportanchorx
fn ViewportAnchorX(&self) -> Finite<f64> {
Finite::wrap(self.viewport_anchor_x.get())
}
// https://w3c.github.io/webvtt/#dom-vttregion-viewportanchorx
fn SetViewportAnchorX(&self, value: Finite<f64>) -> ErrorResult {
if *value < 0_f64 || *value > 100_f64 {
return Err(Error::IndexSize);
}
self.viewport_anchor_x.set(*value);
Ok(())
}
// https://w3c.github.io/webvtt/#dom-vttregion-viewportanchory
fn ViewportAnchorY(&self) -> Finite<f64> {
Finite::wrap(self.viewport_anchor_y.get())
}
// https://w3c.github.io/webvtt/#dom-vttregion-viewportanchory
fn SetViewportAnchorY(&self, value: Finite<f64>) -> ErrorResult {
if *value < 0_f64 || *value > 100_f64 {
return Err(Error::IndexSize);
}
self.viewport_anchor_y.set(*value);
Ok(())
}
// https://w3c.github.io/webvtt/#dom-vttregion-scroll
fn Scroll(&self) -> ScrollSetting {
self.scroll.get()
}
// https://w3c.github.io/webvtt/#dom-vttregion-scroll
fn SetScroll(&self, value: ScrollSetting) {
self.scroll.set(value);
}
}

View file

@ -0,0 +1,30 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://w3c.github.io/webvtt/#the-vttcue-interface
enum AutoKeyword { "auto"};
typedef (double or AutoKeyword) LineAndPositionSetting;
enum DirectionSetting { "" /* horizontal */, "rl", "lr" };
enum LineAlignSetting { "start", "center", "end" };
enum PositionAlignSetting { "line-left", "center", "line-right", "auto" };
enum AlignSetting { "start", "center", "end", "left", "right" };
[Pref="dom.webvtt.enabled", Exposed=Window]
interface VTTCue : TextTrackCue {
constructor(double startTime, double endTime, DOMString text);
attribute VTTRegion? region;
attribute DirectionSetting vertical;
attribute boolean snapToLines;
attribute LineAndPositionSetting line;
attribute LineAlignSetting lineAlign;
[SetterThrows]
attribute LineAndPositionSetting position;
attribute PositionAlignSetting positionAlign;
[SetterThrows]
attribute double size;
attribute AlignSetting align;
attribute DOMString text;
DocumentFragment getCueAsHTML();
};

View file

@ -0,0 +1,26 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://w3c.github.io/webvtt/#the-vttregion-interface
enum ScrollSetting { "" /* none */, "up"};
[Pref="dom.webvtt.enabled", Exposed=Window]
interface VTTRegion {
[Throws] constructor();
attribute DOMString id;
[SetterThrows]
attribute double width;
[SetterThrows]
attribute unsigned long lines;
[SetterThrows]
attribute double regionAnchorX;
[SetterThrows]
attribute double regionAnchorY;
[SetterThrows]
attribute double viewportAnchorX;
[SetterThrows]
attribute double viewportAnchorY;
attribute ScrollSetting scroll;
};

View file

@ -31,6 +31,7 @@
"dom.webvr.enabled": false,
"dom.webvr.event_polling_interval": 500,
"dom.webvr.test": false,
"dom.webvtt.enabled": false,
"dom.webxr.enabled": true,
"dom.webxr.glwindow": true,
"dom.webxr.test": false,

View file

@ -175,6 +175,10 @@ skip: true
skip: false
[webvr]
skip: false
[webvtt]
skip: true
[api]
skip: false
[webxr]
skip: false
[WebIDL]

View file

@ -0,0 +1,2 @@
prefs: ["dom.webvtt.enabled:true"]

View file

@ -0,0 +1,5 @@
[align.html]
expected: TIMEOUT
[VTTCue.align, parsed cue]
expected: TIMEOUT

View file

@ -0,0 +1,14 @@
[constructor.html]
expected: CRASH
[VTTCue(), initial values]
expected: FAIL
[VTTCue(), bad end time]
expected: FAIL
[VTTCue(), bad start time]
expected: FAIL
[VTTCue(), text formatting]
expected: FAIL

View file

@ -0,0 +1,38 @@
[getCueAsHTML.html]
expected: CRASH
[VTTCue.getCueAsHTML(), <c>]
expected: FAIL
[VTTCue.getCueAsHTML(), creating the cue]
expected: FAIL
[VTTCue.getCueAsHTML(), <b>]
expected: FAIL
[VTTCue.getCueAsHTML(), <u>]
expected: FAIL
[VTTCue.getCueAsHTML(), <rt>]
expected: FAIL
[VTTCue.getCueAsHTML(), <v>]
expected: FAIL
[VTTCue.getCueAsHTML(), <1:00:00.500>]
expected: FAIL
[VTTCue.getCueAsHTML(), <i>]
expected: FAIL
[VTTCue.getCueAsHTML(), x\\0]
expected: FAIL
[VTTCue.getCueAsHTML(), <ruby>]
expected: FAIL
[VTTCue.getCueAsHTML(), <c.a.b>]
expected: FAIL
[VTTCue.getCueAsHTML(), <v a b>]
expected: FAIL

View file

@ -0,0 +1,5 @@
[line.html]
expected: TIMEOUT
[VTTCue.line, parsed cue]
expected: TIMEOUT

View file

@ -0,0 +1,4 @@
[region.html]
[VTTCue.region, script-created cue]
expected: FAIL

View file

@ -0,0 +1,5 @@
[snapToLines.html]
expected: TIMEOUT
[VTTCue.snapToLines, parsed cue]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[text.html]
expected: TIMEOUT
[VTTCue.text, parsed cue]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[vertical.html]
expected: TIMEOUT
[VTTCue.vertical, parsed cue]
expected: TIMEOUT

View file

@ -0,0 +1,4 @@
[non-visible-cue-with-region.html]
[Box-less VTTCue attached to VTTRegion]
expected: FAIL

View file

@ -0,0 +1,77 @@
[entities.html]
expected: TIMEOUT
[WebVTT cue data parser test entities - 71a6efcfab81264fb95bb3234c59687c11c72baf]
expected: TIMEOUT
[WebVTT cue data parser test entities - 44ceb90884cceeeccb4f7024e3598f7dc5ceebfa]
expected: TIMEOUT
[WebVTT cue data parser test entities - 0fd9e3823b62c028c1d50e35b1f3ee3df02a62eb]
expected: TIMEOUT
[WebVTT cue data parser test entities - 5b77a0be23453dfe6eea59d43bb0708f89e1df82]
expected: TIMEOUT
[WebVTT cue data parser test entities - e3ac2060b915f0f499b2863f999dcdb38a5db79b]
expected: TIMEOUT
[WebVTT cue data parser test entities - f4bb977c0a06851bdd19260c035a766c5c8ea093]
expected: TIMEOUT
[WebVTT cue data parser test entities - 92d76530d723b6b4e4ef8280c01cf1c80f9bebdb]
expected: TIMEOUT
[WebVTT cue data parser test entities - 31c8a5ecfa5c54d8c0ec5b4ee8f0bbea0d6d40af]
expected: TIMEOUT
[WebVTT cue data parser test entities - 86d7c20ca3c060f9e699c7da43927c4a07a5d569]
expected: TIMEOUT
[WebVTT cue data parser test entities - 1a2269cdb73bf97ec6a99b0edabfe646c471b67e]
expected: TIMEOUT
[WebVTT cue data parser test entities - 3686fc0cdc60dc536e75df054b0bd372273db2cc]
expected: TIMEOUT
[WebVTT cue data parser test entities - 2cdf20980d17a5d077299215e6a7e97f3c6b07e2]
expected: TIMEOUT
[WebVTT cue data parser test entities - 216cd0e914b9f2ccd04eff6d02a0b1ce24441d95]
expected: TIMEOUT
[WebVTT cue data parser test entities - f1869f6e2853635eec81cc3afa3e2b8148ccbdc0]
expected: TIMEOUT
[WebVTT cue data parser test entities - 2c6b2ba38a08eca45370f28a5b7df2aa463fb3dc]
expected: TIMEOUT
[WebVTT cue data parser test entities - 9ed59950764468c4ef2948d71cf75c3f2b60c74d]
expected: TIMEOUT
[WebVTT cue data parser test entities - 314cd94292df37044e90ce27b5606bf8ec636b94]
expected: TIMEOUT
[WebVTT cue data parser test entities - da999a55445eca43aa41e039ec439c1a812db297]
expected: TIMEOUT
[WebVTT cue data parser test entities - bd68f6beda2c2264e61dff7359c1ad48bc0a9934]
expected: TIMEOUT
[WebVTT cue data parser test entities - 83f4500c0bd8598480713997a041d8f70fd3f11e]
expected: TIMEOUT
[WebVTT cue data parser test entities - 87986551b0e6180cb279f2aa4cdddf77daa90c11]
expected: TIMEOUT
[WebVTT cue data parser test entities - 261cd4e9df4a12535b66a0c39e9635aab2bb19aa]
expected: TIMEOUT
[WebVTT cue data parser test entities - b1fff1ac42688d16e00f6c758d84e5152e39702d]
expected: TIMEOUT
[WebVTT cue data parser test entities - e7387003fbacb22b706796c98b781eb4ebf5ff85]
expected: TIMEOUT
[WebVTT cue data parser test entities - 05def72af03fc2b1617da950d871b9fd0ba20e5a]
expected: TIMEOUT

View file

@ -0,0 +1,86 @@
[tags.html]
expected: TIMEOUT
[WebVTT cue data parser test tags - d49e42f7582c6f00b2569f2d14629611c0c6b0e6]
expected: TIMEOUT
[WebVTT cue data parser test tags - b53365151e0b2434837d6cce15c3d51e666a813e]
expected: TIMEOUT
[WebVTT cue data parser test tags - 70f72cc4d2139d9e8c33189a1a9b89ecd6014a15]
expected: TIMEOUT
[WebVTT cue data parser test tags - 9dd187edd10c907e6b92148fd82940e401dbe79f]
expected: TIMEOUT
[WebVTT cue data parser test tags - 45221829445210412642152bfb22fa2ed222d46e]
expected: TIMEOUT
[WebVTT cue data parser test tags - e5ca35cc29404efc0ebd58aa5f6efefc86fc5287]
expected: TIMEOUT
[WebVTT cue data parser test tags - e535c486dac7dc571463b150adc55fd841bc3008]
expected: TIMEOUT
[WebVTT cue data parser test tags - e4d351e1a6b40a7dace801b722efaa200c4895f2]
expected: TIMEOUT
[WebVTT cue data parser test tags - 0d7df935b172f2a1b357b94596d68f2443f30f8b]
expected: TIMEOUT
[WebVTT cue data parser test tags - 71de37451e7d5524eacc8a190d21cd64c4304e14]
expected: TIMEOUT
[WebVTT cue data parser test tags - 2fdc1b84ba41ec98833851e80781df1fbe72182f]
expected: TIMEOUT
[WebVTT cue data parser test tags - 39c36af6d6850bc474f1d9962c1133933fd50dd0]
expected: TIMEOUT
[WebVTT cue data parser test tags - bb7abafab60a0ea63f57420759fac4093148ecc8]
expected: TIMEOUT
[WebVTT cue data parser test tags - a8481eabd1dcac1d02e57e74d499e2395ac171cd]
expected: TIMEOUT
[WebVTT cue data parser test tags - cdcdb0d5d6a975c5612eabcbea5d732ff3bc9f56]
expected: TIMEOUT
[WebVTT cue data parser test tags - 68e1d0376f827ebe0c047751a2067594ff41b612]
expected: TIMEOUT
[WebVTT cue data parser test tags - 6ceded63b53eeab3681a0fc540e959ca88f7dce9]
expected: TIMEOUT
[WebVTT cue data parser test tags - ab2024b4e65ed64a751adbe8aae1e84ee61bf3e6]
expected: TIMEOUT
[WebVTT cue data parser test tags - 487690a6f5da4666f9caaf3a3ecc10992aca1414]
expected: TIMEOUT
[WebVTT cue data parser test tags - cd1d6dd274e03ae8fc56bc4ef163998d9ff24496]
expected: TIMEOUT
[WebVTT cue data parser test tags - fe3b6277edf5c2f84e7a6779eddd0cac30552bca]
expected: TIMEOUT
[WebVTT cue data parser test tags - fca1a11d42b735453117f42456360e88082a3fd7]
expected: TIMEOUT
[WebVTT cue data parser test tags - 94f898df44b470e2d05d74c6816fd908e55c9fdf]
expected: TIMEOUT
[WebVTT cue data parser test tags - 985284b688a09f1f55e3c9aab49d7e4ca11f870a]
expected: TIMEOUT
[WebVTT cue data parser test tags - 10f4823ffb17c71654c4602bc45c58300e3ecbcc]
expected: TIMEOUT
[WebVTT cue data parser test tags - fa6993eaa94404648d8b52e2830e53369404fdcb]
expected: TIMEOUT
[WebVTT cue data parser test tags - 2d2c4333983e23a4962083e8120e5d42c839f77b]
expected: TIMEOUT
[WebVTT cue data parser test tags - 909924ef392fb20c9526acfa4f18f891eda61a0c]
expected: TIMEOUT

View file

@ -0,0 +1,17 @@
[text.html]
expected: TIMEOUT
[WebVTT cue data parser test text - 3979f3c0c7664ee8a9f78854626bc7bc39b86c96]
expected: TIMEOUT
[WebVTT cue data parser test text - a34d27ca7b23f07db6ec2e32226fca105e958db6]
expected: TIMEOUT
[WebVTT cue data parser test text - 6805ac5ddce21cfceb4eccf04a6a9013760f5d5b]
expected: TIMEOUT
[WebVTT cue data parser test text - aa785adca3fcdfe1884ae840e13c6d294a2414e8]
expected: TIMEOUT
[WebVTT cue data parser test text - 5cfbdbe32701516fc90c3786da1db4716ac09fb8]
expected: TIMEOUT

View file

@ -0,0 +1,32 @@
[timestamps.html]
expected: TIMEOUT
[WebVTT cue data parser test timestamps - 391fce67644cf4dd9967e1436d1449ef5baf675f]
expected: TIMEOUT
[WebVTT cue data parser test timestamps - 398e8da1aaaf392739ca72057fef58bd5333f74d]
expected: TIMEOUT
[WebVTT cue data parser test timestamps - 2f0e84518d356cb1e56a366296fa491c5bed1e3a]
expected: TIMEOUT
[WebVTT cue data parser test timestamps - c1036a4322c1852e02e5a1843a9a81dfca6d7af3]
expected: TIMEOUT
[WebVTT cue data parser test timestamps - 92b97d3497836259e0b9305e27f2b91ea1dc9b31]
expected: TIMEOUT
[WebVTT cue data parser test timestamps - 47fa4306a695161da88533d456ce94829e53b13d]
expected: TIMEOUT
[WebVTT cue data parser test timestamps - 66ba641ff047a226fa60fe867fd2479d40f3ff0f]
expected: TIMEOUT
[WebVTT cue data parser test timestamps - 54c245f3fbe7a3e25398b13971d44f2bb3a5f947]
expected: TIMEOUT
[WebVTT cue data parser test timestamps - 70ec34d828ca661a583c651207becb968bb41653]
expected: TIMEOUT
[WebVTT cue data parser test timestamps - 5e190a1b4541fcb10e403af111c14ef152fecb0d]
expected: TIMEOUT

View file

@ -0,0 +1,29 @@
[tree-building.html]
expected: TIMEOUT
[WebVTT cue data parser test tree-building - c0da62d1c8716ca544c96799f06ac7e4664500fb]
expected: TIMEOUT
[WebVTT cue data parser test tree-building - 119c596ea09649d3bd03934485e3067e89377412]
expected: TIMEOUT
[WebVTT cue data parser test tree-building - 325c1e590e74f1ff33ca5b4838c04cf6b6dd71ba]
expected: TIMEOUT
[WebVTT cue data parser test tree-building - 9b1902c975558eeaff4afbaf0a6dc100e1978769]
expected: TIMEOUT
[WebVTT cue data parser test tree-building - 92847ed2694c9639ba96f4cc61e2215362a74904]
expected: TIMEOUT
[WebVTT cue data parser test tree-building - c94512b045699cb72f730e46b2a0a3bed2c939f9]
expected: TIMEOUT
[WebVTT cue data parser test tree-building - b85bd616672eba0591718182ef32e3307d223bb0]
expected: TIMEOUT
[WebVTT cue data parser test tree-building - 2564487cfc7e317428fb437ef8de8de4f4963426]
expected: TIMEOUT
[WebVTT cue data parser test tree-building - 4e1243bd22c66e76c2ba9eddc1f91394e57f9f83]
expected: TIMEOUT

View file

@ -0,0 +1,35 @@
[signature-invalid.html]
expected: TIMEOUT
[signature, null]
expected: TIMEOUT
[signature, websrt]
expected: TIMEOUT
[signature, two boms]
expected: TIMEOUT
[signature, formfeed]
expected: TIMEOUT
[signature, lowercase]
expected: TIMEOUT
[signature, invalid whitespace]
expected: TIMEOUT
[signature, missing]
expected: TIMEOUT
[signature, missing whitespace]
expected: TIMEOUT
[signature, invalid]
expected: TIMEOUT
[signature, empty]
expected: TIMEOUT
[signature, partial]
expected: TIMEOUT

View file

@ -0,0 +1,2 @@
[arrows.html]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[header-garbage.html]
expected: TIMEOUT
[header, garbage]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[header-regions.html]
expected: TIMEOUT
[Tests proper parsing of various regions present in WebVTT header area.]
expected: TIMEOUT

View file

@ -0,0 +1,2 @@
[header-space.html]
expected: TIMEOUT

View file

@ -0,0 +1,2 @@
[header-tab.html]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[header-timings.html]
expected: TIMEOUT
[header, timings]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[ids.html]
expected: TIMEOUT
[ids]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[newlines.html]
expected: TIMEOUT
[newlines]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[nulls.html]
expected: TIMEOUT
[nulls]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[regions-edge-case.html]
expected: TIMEOUT
[regions, lines]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[regions-id.html]
expected: TIMEOUT
[regions, id]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[regions-lines.html]
expected: TIMEOUT
[regions, lines]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[regions-old.html]
expected: TIMEOUT
[regions, old]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[regions-regionanchor.html]
expected: TIMEOUT
[regions, regionanchor]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[regions-scroll.html]
expected: TIMEOUT
[regions, scroll]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[regions-viewportanchor.html]
expected: TIMEOUT
[regions, viewportanchor]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[settings-align.html]
expected: TIMEOUT
[settings, align]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[settings-line.html]
expected: TIMEOUT
[settings, line]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[settings-multiple.html]
expected: TIMEOUT
[settings, multiple]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[settings-position.html]
expected: TIMEOUT
[settings, position]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[settings-region.html]
expected: TIMEOUT
[settings, region]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[settings-size.html]
expected: TIMEOUT
[settings, size]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[settings-vertical.html]
expected: TIMEOUT
[settings, size]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[signature-bom.html]
expected: TIMEOUT
[signature, bom]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[signature-no-newline.html]
expected: TIMEOUT
[signature, no newline]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[signature-space-no-newline.html]
expected: TIMEOUT
[signature, space, no newline]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[signature-space.html]
expected: TIMEOUT
[signature, space]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[signature-tab-no-newline.html]
expected: TIMEOUT
[signature, tab, no newline]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[signature-tab.html]
expected: TIMEOUT
[signature, tab]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[signature-timings.html]
expected: TIMEOUT
[signature, timings]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[stylesheets.html]
expected: TIMEOUT
[stylesheets, rules]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[timings-60.html]
expected: TIMEOUT
[timings, 60]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[timings-eof.html]
expected: TIMEOUT
[timings, eof]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[timings-garbage.html]
expected: TIMEOUT
[timings, garbage]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[timings-negative.html]
expected: TIMEOUT
[timings, negative]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[timings-omitted-hours.html]
expected: TIMEOUT
[timings, omitted hours]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[timings-too-long.html]
expected: TIMEOUT
[timings, too long]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[timings-too-short.html]
expected: TIMEOUT
[timings, too short]
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[whitespace-chars.html]
expected: TIMEOUT
[whitespace chars]
expected: TIMEOUT

View file

@ -0,0 +1,2 @@
[2_cues_overlapping_completely_move_up.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[2_cues_overlapping_partially_move_down.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[2_cues_overlapping_partially_move_up.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[2_tracks.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[3_tracks.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[align_center.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[align_center_position_50.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[align_center_position_gt_50.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[align_center_position_gt_50_size_gt_maximum_size.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[align_center_position_lt_50.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[align_center_position_lt_50_size_gt_maximum_size.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[align_center_wrapped.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[align_end.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[align_end_wrapped.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[align_start.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[align_start_wrapped.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[basic.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[bidi_ruby.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[start_alignment.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[u002E_LF_u05D0.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[u002E_u2028_u05D0.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[u002E_u2029_u05D0.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[u0041_first.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[u05D0_first.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[u0628_first.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[u06E9_no_strong_dir.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[vertical_lr.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[vertical_rl.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[decode_escaped_entities.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[disable_controls_reposition.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[dom_override_cue_align_position_line_size.html]
expected: TIMEOUT

View file

@ -0,0 +1,2 @@
[dom_override_cue_align_position_line_size_while_paused.html]
expected: TIMEOUT

View file

@ -0,0 +1,2 @@
[dom_override_cue_line.html]
expected: TIMEOUT

View file

@ -0,0 +1,2 @@
[dom_override_cue_text.html]
expected: TIMEOUT

View file

@ -0,0 +1,2 @@
[dom_override_cue_text_while_paused.html]
expected: TIMEOUT

View file

@ -0,0 +1,2 @@
[dom_override_remove_cue_while_paused.html]
expected: TIMEOUT

Some files were not shown because too many files have changed in this diff Show more