LayoutTests/ChangeLog

 12012-03-02 Victor Carbune <vcarbune@adobe.com>
 2
 3 Fix flaky test by decreasing granularity of cues (cues cover longer time
 4 intervals). The flakiness seems to appear because the video is paused
 5 synchronously, while missed events events are dispatched asynchronously.
 6
 7 It can happen that multiple cues are actually missed cues, hence more exit
 8 events are dispatched together, but the video was paused before the actual
 9 dispatch.
 10
 11 https://bugs.webkit.org/show_bug.cgi?id=80067
 12
 13 Reviewed by NOBODY (OOPS!).
 14
 15 * media/track/captions-webvtt/simple-captions.vtt:
 16 * media/track/track-cues-pause-on-exit-expected.txt:
 17 * media/track/track-cues-pause-on-exit.html:
 18
1192012-03-02 Roland Steiner <rolandsteiner@chromium.org>
220
321 Scoped stylesheets don't appear to work in Shadow DOM

LayoutTests/media/track/captions-webvtt/simple-captions.vtt

11WEBVTT
22
330
4 00:00:05.000 --> 00:00:05.200
 400:00:04.000 --> 00:00:04.500
55First cue
66
771
8 00:00:05.210 --> 00:00:05.400
 800:00:04.500 --> 00:00:05.000
99Lorem
1010
11112
12 00:00:05.410 --> 00:00:05.600
 1200:00:05.000 --> 00:00:05.500
1313ipsum
1414
15153
16 00:00:05.610 --> 00:00:05.700
17 dolor
 1600:00:05.500 --> 00:00:05.501
 17Missed cue with pause-on-exit

LayoutTests/media/track/track-cues-pause-on-exit-expected.txt

@@RUN(video.play())
2323EVENT(exit)
2424EXPECTED (currentCue.id == '3') OK
2525EXPECTED (video.paused == 'false') OK
26 EVENT(ended)
2726END OF TEST
2827

LayoutTests/media/track/track-cues-pause-on-exit.html

4545 run("video.play()");
4646 }
4747
 48 if (currentCueNumber == 3) {
 49 endTest();
 50 }
 51
4852 currentCueNumber++;
4953 }
5054

6165 video.src = findMediaFile("video", "../content/test");
6266 }
6367
64  waitForEvent('ended', endTest);
65 
6668 waitForEvent('canplaythrough', function() {
67  video.currentTime = 4.70;
 69 video.currentTime = 4.00;
6870 videoCanPlayThrough = true;
6971
7072 runTests();