| OLD | NEW |
| 1 Tests that the TextTrack mode attribute is appropriately set. | 1 Tests that the TextTrack mode attribute is appropriately set. |
| 2 | 2 |
| 3 | 3 |
| 4 ++ Test default attribute value | 4 ++ Test default attribute value |
| 5 EXPECTED (textTrack.mode == 'showing') OK | 5 EXPECTED (textTrack.mode == 'showing') OK |
| 6 EXPECTED (video.textTracks[0].mode == 'showing') OK | 6 EXPECTED (video.textTracks[0].mode == 'showing') OK |
| 7 | 7 |
| 8 *** Set to bogus value, should return default | 8 *** Set to bogus value, should return default |
| 9 RUN(textTrack.mode = 'bogus') | 9 RUN(textTrack.mode = 'bogus') |
| 10 EXPECTED (textTrack.mode == 'showing') OK | 10 EXPECTED (textTrack.mode == 'showing') OK |
| 11 EXPECTED (video.textTracks[0].mode == 'showing') OK | 11 EXPECTED (video.textTracks[0].mode == 'showing') OK |
| 12 | 12 |
| 13 *** Set to numeric value (no longer supported), should return default |
| 14 RUN(textTrack.mode = 2) |
| 15 EXPECTED (textTrack.mode == 'showing') OK |
| 16 EXPECTED (video.textTracks[0].mode == 'showing') OK |
| 17 |
| 13 *** Set to known values | 18 *** Set to known values |
| 14 ++ 'disabled' | 19 ++ 'disabled' |
| 15 RUN(textTrack.mode = 'disabled') | 20 RUN(textTrack.mode = 'disabled') |
| 16 EXPECTED (textTrack.mode == 'disabled') OK | 21 EXPECTED (textTrack.mode == 'disabled') OK |
| 17 EXPECTED (video.textTracks[0].mode == 'disabled') OK | 22 EXPECTED (video.textTracks[0].mode == 'disabled') OK |
| 18 EXPECTED (textTrack.cues == 'null') OK | 23 EXPECTED (textTrack.cues == 'null') OK |
| 19 | 24 |
| 20 ++ 0 events expected while mode = disabled | 25 ++ 0 events expected while mode = disabled |
| 21 | 26 |
| 22 ++ 'hidden' | 27 ++ 'hidden' |
| 23 RUN(textTrack.mode = 'hidden') | 28 RUN(textTrack.mode = 'hidden') |
| 24 EXPECTED (textTrack.mode == 'hidden') OK | 29 EXPECTED (textTrack.mode == 'hidden') OK |
| 25 EXPECTED (video.textTracks[0].mode == 'hidden') OK | 30 EXPECTED (video.textTracks[0].mode == 'hidden') OK |
| 26 EXPECTED (textTrack.cues.length == '3') OK | 31 EXPECTED (textTrack.cues.length == '3') OK |
| 27 | 32 |
| 28 ++ 'showing' | 33 ++ 'showing' |
| 29 RUN(textTrack.mode = 'showing') | 34 RUN(textTrack.mode = 'showing') |
| 30 EXPECTED (textTrack.mode == 'showing') OK | 35 EXPECTED (textTrack.mode == 'showing') OK |
| 31 EXPECTED (video.textTracks[0].mode == 'showing') OK | 36 EXPECTED (video.textTracks[0].mode == 'showing') OK |
| 32 EXPECTED (textTrack.cues.length == '3') OK | 37 EXPECTED (textTrack.cues.length == '3') OK |
| 33 | 38 |
| 34 ++ at least 3 events expected while mode = showing | 39 ++ at least 3 events expected while mode = showing |
| 35 EVENT(cuechange) | 40 EVENT(cuechange) |
| 36 EVENT(cuechange) | 41 EVENT(cuechange) |
| 37 EVENT(cuechange) | 42 EVENT(cuechange) |
| 38 END OF TEST | 43 END OF TEST |
| 39 | 44 |
| OLD | NEW |