Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(780)

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-cue-nothing-to-render-expected.txt

Issue 1887943002: Convert track tests from video-test.js to testharness.js based (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address nits Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 Test that cues are rendered and removed.
2
3 EVENT(canplaythrough)
4 EVENT(seeked)
5 EXPECTED (video.currentTime.toFixed(1) == '0.5') OK
6 No text track cue with display id '-webkit-media-text-track-display' is currentl y visible
7
8 RUN(video.currentTime = 1.5)
9 EVENT(seeked)
10 EXPECTED (video.currentTime.toFixed(1) == '1.5') OK
11 EXPECTED (testTrack.track.activeCues[0].text == 'Lorem ipsum dolor sit amet,') O K
12 EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'Lorem ipsum do lor sit amet,') OK
13
14 RUN(video.currentTime = 2.5)
15 EVENT(seeked)
16 EXPECTED (video.currentTime.toFixed(1) == '2.5') OK
17 No text track cue with display id '-webkit-media-text-track-display' is currentl y visible
18
19 RUN(video.currentTime = 3.3)
20 EVENT(seeked)
21 EXPECTED (video.currentTime.toFixed(1) == '3.3') OK
22 EXPECTED (testTrack.track.activeCues[0].text == 'consectetuer adipiscing elit,') OK
23 EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'consectetuer a dipiscing elit,') OK
24
25 RUN(video.currentTime = 0.6)
26 EVENT(seeked)
27 EXPECTED (video.currentTime.toFixed(1) == '0.6') OK
28 No text track cue with display id '-webkit-media-text-track-display' is currentl y visible
29
30 RUN(video.currentTime = 5.9)
31 EVENT(seeked)
32 EXPECTED (video.currentTime.toFixed(1) == '5.9') OK
33 EXPECTED (testTrack.track.activeCues[0].text == 'sed diam nonummy nibh euismod t incidunt') OK
34 EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'sed diam nonum my nibh euismod tincidunt') OK
35
36 RUN(video.currentTime = 4.4)
37 EVENT(seeked)
38 EXPECTED (video.currentTime.toFixed(1) == '4.4') OK
39 No text track cue with display id '-webkit-media-text-track-display' is currentl y visible
40
41 RUN(video.currentTime = 7.9)
42 EVENT(seeked)
43 EXPECTED (video.currentTime.toFixed(1) == '7.9') OK
44 EXPECTED (testTrack.track.activeCues[0].text == 'ut laoreet dolore magna aliquam erat volutpat.') OK
45 EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'ut laoreet dol ore magna aliquam erat volutpat.') OK
46
47 END OF TEST
48
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698