Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-cue-rendering-mode-changed-expected.txt

Issue 1887943002: Convert track tests from video-test.js to testharness.js based (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address nits Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698