Unreviewed Mac gardening. Update a test and results now that forced text

tracks are supported.

* media/track/track-in-band-expected.txt:
* media/track/track-in-band.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 284c20fd
2013-04-22 Eric Carlson <eric.carlson@apple.com>
Unreviewed Mac gardening. Update a test and results now that forced text
tracks are supported.
* media/track/track-in-band-expected.txt:
* media/track/track-in-band.html:
2013-04-22 Yi Shen <max.hong.shen@gmail.com>
Crash on OS X when shift clicking outside of input
......@@ -6,22 +6,34 @@ EXPECTED (event.track == 'video.textTracks[0]') OK
EVENT(addtrack)
EXPECTED (event.track == 'video.textTracks[1]') OK
EVENT(addtrack)
EXPECTED (event.track == 'video.textTracks[2]') OK
EVENT(addtrack)
EXPECTED (event.track == 'video.textTracks[3]') OK
EVENT(canplaythrough)
** Check initial in-band track states
EXPECTED (video.textTracks.length == '2') OK
EXPECTED (video.textTracks.length == '4') OK
RUN(inbandTrack1 = video.textTracks[0])
RUN(inbandTrack2 = video.textTracks[1])
RUN(inbandTrack3 = video.textTracks[2])
RUN(inbandTrack4 = video.textTracks[3])
EXPECTED (inbandTrack1.language == 'en') OK
EXPECTED (inbandTrack1.kind == 'subtitles') OK
EXPECTED (inbandTrack2.language == 'fr') OK
EXPECTED (inbandTrack2.kind == 'subtitles') OK
** Add tracks, check sort order
EXPECTED (inbandTrack2.language == 'en') OK
EXPECTED (inbandTrack2.kind == 'forced') OK
EXPECTED (inbandTrack3.language == 'fr') OK
EXPECTED (inbandTrack3.kind == 'subtitles') OK
EXPECTED (inbandTrack4.language == 'fr') OK
EXPECTED (inbandTrack4.kind == 'forced') OK
** Add two tracks, check sort order
RUN(addTrack = video.addTextTrack('captions', 'Caption Track', 'en'))
RUN(trackElement = document.createElement('track'))
RUN(video.appendChild(trackElement))
EXPECTED (video.textTracks.length == '4') OK
EXPECTED (video.textTracks.length == '6') OK
EXPECTED (video.textTracks[0] == 'trackElement.track') OK
EXPECTED (video.textTracks[1] == 'addTrack') OK
EXPECTED (video.textTracks[2] == 'inbandTrack1') OK
......
......@@ -26,20 +26,30 @@
function canplaythrough()
{
consoleWrite("<br><i>** Check initial in-band track states<" + "/i>");
testExpected("video.textTracks.length", 2);
testExpected("video.textTracks.length", 4);
run("inbandTrack1 = video.textTracks[0]");
run("inbandTrack2 = video.textTracks[1]");
run("inbandTrack3 = video.textTracks[2]");
run("inbandTrack4 = video.textTracks[3]");
testExpected("inbandTrack1.language", "en");
testExpected("inbandTrack1.kind", "subtitles");
testExpected("inbandTrack2.language", "fr");
testExpected("inbandTrack2.kind", "subtitles");
consoleWrite("<br><i>** Add tracks, check sort order<" + "/i>");
testExpected("inbandTrack2.language", "en");
testExpected("inbandTrack2.kind", "forced");
testExpected("inbandTrack3.language", "fr");
testExpected("inbandTrack3.kind", "subtitles");
testExpected("inbandTrack4.language", "fr");
testExpected("inbandTrack4.kind", "forced");
consoleWrite("<br><i>** Add two tracks, check sort order<" + "/i>");
run("addTrack = video.addTextTrack('captions', 'Caption Track', 'en')");
run("trackElement = document.createElement('track')");
trackElement.label = '<track>';
run("video.appendChild(trackElement)");
testExpected("video.textTracks.length", 4);
testExpected("video.textTracks.length", 6);
compareTracks("video.textTracks[0]", "trackElement.track");
compareTracks("video.textTracks[1]", "addTrack");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment