| OLD | NEW |
| (Empty) |
| 1 Test that cues are being matched properly by :past and :future pseudo classes. | |
| 2 EVENT(canplaythrough) | |
| 3 EVENT(seeked) | |
| 4 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 128, 128)') OK | |
| 5 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 128, 128)') OK | |
| 6 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 128, 128)') OK | |
| 7 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 128, 128)') OK | |
| 8 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 128, 128)') OK | |
| 9 | |
| 10 RUN(video.currentTime = 0.3) | |
| 11 EVENT(seeked) | |
| 12 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 255, 0)') OK | |
| 13 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 128, 128)') OK | |
| 14 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 128, 128)') OK | |
| 15 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 128, 128)') OK | |
| 16 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 128, 128)') OK | |
| 17 | |
| 18 RUN(video.currentTime = 0.5) | |
| 19 EVENT(seeked) | |
| 20 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 255, 0)') OK | |
| 21 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 255, 0)') OK | |
| 22 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 128, 128)') OK | |
| 23 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 128, 128)') OK | |
| 24 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 128, 128)') OK | |
| 25 | |
| 26 RUN(video.currentTime = 0.7) | |
| 27 EVENT(seeked) | |
| 28 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 255, 0)') OK | |
| 29 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 255, 0)') OK | |
| 30 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 255, 0)') OK | |
| 31 EXPECTED (getComputedStyle(cueNode).color == 'rgb(128, 128, 128)') OK | |
| 32 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 255, 0)') OK | |
| 33 | |
| 34 RUN(video.currentTime = 0.9) | |
| 35 EVENT(seeked) | |
| 36 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 255, 0)') OK | |
| 37 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 255, 0)') OK | |
| 38 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 255, 0)') OK | |
| 39 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 255, 0)') OK | |
| 40 EXPECTED (getComputedStyle(cueNode).color == 'rgb(0, 255, 0)') OK | |
| 41 END OF TEST | |
| 42 | |
| OLD | NEW |