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