OLD | NEW |
| (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 | |
OLD | NEW |