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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-css-matching-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: address comments 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 EVENT(canplaythrough)
2 EVENT(seeked)
3
4
5 1. Test that cues are being matched properly by the class name
6 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
7 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
8 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
9
10 RUN(video.currentTime = 0.5)
11 EVENT(seeked)
12
13
14 2. Test that cues are being matched properly by the ':future' pseudo class.
15 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 0, 128)') OK
16 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 128, 128)') OK
17 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 128, 128)') OK
18
19 RUN(video.currentTime = 0.7)
20 EVENT(seeked)
21 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 0, 128)') OK
22 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 0, 128)') OK
23 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 128, 128)') OK
24
25 RUN(video.currentTime = 0.9)
26 EVENT(seeked)
27 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 0, 128)') OK
28 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 0, 128)') OK
29 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 0, 128)') OK
30
31 RUN(video.currentTime = 1.1)
32 EVENT(seeked)
33
34
35 3. Test that cues are being matched properly by tag.
36 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 0, 128)') OK
37 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 255, 0)') OK
38 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 255, 0)') OK
39
40 RUN(video.currentTime = 1.3)
41 EVENT(seeked)
42
43
44 4. Test that cues are being matched properly by id.
45 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
46 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
47 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
48
49 RUN(video.currentTime = 1.5)
50 EVENT(seeked)
51
52
53 5. Test that cues are being matched properly by the voice attribute.
54 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 255, 0)') OK
55 EXPECTED (getComputedStyle(cueNode).color == 'rgb(255, 0, 0)') OK
56 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 128, 0)') OK
57 END OF TEST
58
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698