mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-29 21:25:35 +00:00
Bug 895091 - Turn text track cue tests back on r=rillian
This commit is contained in:
parent
4402561628
commit
37d3fe53c0
@ -34,18 +34,16 @@ SpecialPowers.pushPrefEnv({"set": [["media.webvtt.enabled", true]]},
|
||||
setTimeout(run_tests, 0);
|
||||
return;
|
||||
}
|
||||
todo_is(trackElement.readyState, 2, "Track::ReadyState should be set to LOADED.");
|
||||
is(trackElement.readyState, 2, "Track::ReadyState should be set to LOADED.");
|
||||
|
||||
var cueList = trackElement.track.cues;
|
||||
todo_is(cueList.length, 4, "Cue list length should be 4.");
|
||||
is(cueList.length, 4, "Cue list length should be 4.");
|
||||
|
||||
// Check that the typedef of TextTrackCue works in Gecko.
|
||||
is(window.TextTrackCue, undefined, "TextTrackCue should be undefined.");
|
||||
isnot(window.VTTCue, undefined, "VTTCue should be defined.");
|
||||
|
||||
// Check if first cue was parsed correctly.
|
||||
// FIXME: disabled by bug 887463.
|
||||
if (false) {
|
||||
var cue = cueList[0];
|
||||
is(cue.id, "1", "Cue's ID should be 1.");
|
||||
is(cue.startTime, 0.5, "Cue's start time should be 0.5.");
|
||||
@ -97,9 +95,6 @@ SpecialPowers.pushPrefEnv({"set": [["media.webvtt.enabled", true]]},
|
||||
// to 4 -- https://bugzilla.mozilla.org/show_bug.cgi?id=867823
|
||||
todo_is(cueList.length, 4, "Cue list length should be 4.");
|
||||
|
||||
// FIXME: end of bug 887463 disable.
|
||||
}
|
||||
|
||||
var exceptionHappened = false;
|
||||
try {
|
||||
// We should not be able to remove a cue that is not in the list.
|
||||
|
Loading…
Reference in New Issue
Block a user