/home/clopez/webkit/webkit/layout-test-results/media/video-controls-captions-trackmenu-actual.txt
1
1
Test that we are able to trigger the list of captions, and select from the list.
2
2
3
3
4
EVENT(canplaythrough)
4
5
5
6
*** Set the user language preference.
6
7
RUN(internals.setUserPreferredLanguages(['en']))
8
EXPECTED (trackListElement.offsetHeight > '0') OK
7
9
8
10
*** Add another text track.
9
11
RUN(video.addTextTrack("captions", "Commentary", "ru"))
10
12
11
13
*** Turning captions on
12
14
There should be 6 items in the menu.
13
EXPECTED (trackListItems.length == '6')
OK
15
EXPECTED (trackListItems.length == '6')
,
OBSERVED '5' FAIL
14
16
EXPECTED (video.textTracks.length == '4') OK
15
17
Track 0 should be showing
16
18
EXPECTED (video.textTracks[0].mode == 'showing') OK
20
22
EXPECTED (video.textTracks[2].mode == 'disabled') OK
21
23
Track 3 should be disabled
22
24
EXPECTED (video.textTracks[3].mode == 'disabled') OK
23
EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'Lorem')
OK
25
EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'Lorem')
,
OBSERVED 'Lorem ' FAIL
24
26
25
27
*** Remove a track.
26
28
RUN(video.removeChild(document.querySelectorAll("track")[0]))