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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-css-cue-lifetime-expected.txt

Issue 1875923002: Convert track tests from video-test.js to testharness.js based (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 the cue is styled properly throughout its lifetime.
2 EVENT(canplaythrough)
3 EVENT(seeked)
4 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
5 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
6 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
7 1
8 RUN(video.currentTime = 0.5)
9 EVENT(seeked)
10 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
11 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
12 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
13 2
14 RUN(video.currentTime = 0.9)
15 EVENT(seeked)
16 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
17 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
18 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
19 3
20 RUN(video.currentTime = 1.3)
21 EVENT(seeked)
22 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
23 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
24 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
25 4
26 RUN(video.currentTime = 1.7)
27 EVENT(seeked)
28 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
29 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
30 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
31 5
32 RUN(video.currentTime = 2.1)
33 EVENT(seeked)
34 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
35 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
36 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
37 END OF TEST
38
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698