| OLD | NEW |
| (Empty) |
| 1 Test that cues are rendered when only the track mode is changed | |
| 2 EVENT(canplaythrough) | |
| 3 | |
| 4 Add 'Arabic' text track with one cue | |
| 5 Add 'English' text track with one cue | |
| 6 | |
| 7 Set the mode of the 'Arabic' track to showing | |
| 8 Set the mode of the 'English' track to hidden | |
| 9 | |
| 10 ** Both cues should be active ** | |
| 11 EXPECTED (testTrackEnglish.activeCues.length == '1') OK | |
| 12 EXPECTED (testTrackEnglish.activeCues[0].text == 'English') OK | |
| 13 EXPECTED (testTrackArabic.activeCues.length == '1') OK | |
| 14 EXPECTED (testTrackArabic.activeCues[0].text == 'Arabic') OK | |
| 15 | |
| 16 ** Only one cue should be visible ** | |
| 17 EXPECTED (testCueDisplayBox.innerText == 'Arabic') OK | |
| 18 EXPECTED (testCueDisplayBox.nextSibling == 'null') OK | |
| 19 | |
| 20 Set the mode of the 'English' track to showing | |
| 21 | |
| 22 ** Both cues shold be visible. ** | |
| 23 EXPECTED (testCueDisplayBox.innerText == 'Arabic') OK | |
| 24 EXPECTED (testCueDisplayBox.innerText == 'English') OK | |
| 25 END OF TEST | |
| 26 | |
| OLD | NEW |