| Index: LayoutTests/media/track/opera/interfaces/TextTrack/cues.html
|
| diff --git a/LayoutTests/media/track/opera/interfaces/TextTrack/cues.html b/LayoutTests/media/track/opera/interfaces/TextTrack/cues.html
|
| index 447d196d46c3856ec46379934b6a1da56860fb39..8b432b54a6120f53f56a7e6dcd19648fbf055de9 100644
|
| --- a/LayoutTests/media/track/opera/interfaces/TextTrack/cues.html
|
| +++ b/LayoutTests/media/track/opera/interfaces/TextTrack/cues.html
|
| @@ -8,30 +8,23 @@ setup(function(){
|
| window.video = document.createElement('video');
|
| window.t1 = video.addTextTrack('subtitles');
|
| window.track = document.createElement('track');
|
| - track['default'] = true;
|
| - video.appendChild(track);
|
| + video.appendChild(track); // queues a task to "honor user preferences...", media element event task source
|
| window.t2 = track.track;
|
| window.t1_cues = t1.cues
|
| window.t2_cues = t2.cues
|
| });
|
| -// Skipping this test due to https://www.w3.org/Bugs/Public/show_bug.cgi?id=20066,
|
| -// tracking uncommenting this when test is fixed with webkit.org/b/104255
|
| -// test(function(){
|
| -// assert_equals(t1.cues, t1_cues, 't1.cues should return same object');
|
| -// assert_equals(t2.cues, t2_cues, 't2.cues should return same object');
|
| -// assert_not_equals(t1.cues, t2.cues, 't1.cues and t2.cues should be different objects');
|
| -// assert_not_equals(t1.cues, null, 't1.cues should not be null');
|
| -// assert_not_equals(t2.cues, null, 't2.cues should not be null');
|
| -// assert_equals(t1.cues.length, 0, 't1.cues should have length 0');
|
| -// assert_equals(t2.cues.length, 0, 't2.cues should have length 0');
|
| -// }, document.title+', empty list');
|
| test(function(){
|
| - var c = new TextTrackCue(0, 1, "text");
|
| + assert_equals(t1.cues, t1_cues, 't1.cues should return same object');
|
| + assert_not_equals(t1.cues, null, 't1.cues should not be null');
|
| + assert_equals(t1.cues.length, 0, 't1.cues should have length 0');
|
| +}, document.title+', empty list');
|
| +test(function(){
|
| + var c = new VTTCue(0, 1, "text");
|
| c.id = "id";
|
| t1.addCue(c);
|
| assert_equals(t1.cues, t1_cues, "t1.cues should return same object");
|
| assert_equals(t1.cues.length, 1, "t1.cues.length");
|
| - var c2 = new TextTrackCue(1, 2, "text2");
|
| + var c2 = new VTTCue(1, 2, "text2");
|
| c2.id = "id2";
|
| t1.addCue(c2);
|
| assert_equals(t1.cues, t1_cues, "t1.cues should return the same object after adding a second cue");
|
|
|