Commit 3efa2f09 authored by annacc@chromium.org's avatar annacc@chromium.org

Guarantee tests run in order.

https://bugs.webkit.org/show_bug.cgi?id=72398

Reviewed by Eric Carlson.

* media/track/track-webvtt-tc013-settings.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100300 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 767f7213
2011-11-15 Anna Cavender <annacc@chromium.org>
Guarantee tests run in order.
https://bugs.webkit.org/show_bug.cgi?id=72398
Reviewed by Eric Carlson.
* media/track/track-webvtt-tc013-settings.html:
2011-11-15 Anna Cavender <annacc@chromium.org>
Guarantee tests run in order.
......@@ -9,7 +9,16 @@
numberOfTrackTests = 2;
function trackLoaded(i)
function trackLoaded()
{
numberOfTracksLoaded++;
if (numberOfTracksLoaded == numberOfTrackTests) {
for (var i = 0; i <= numberOfTrackTests; ++i)
testTrack(i);
}
}
function testTrack(i)
{
findMediaElement();
var expected =
......@@ -44,8 +53,8 @@
<body>
<p>Tests WebVTT settings.</p>
<video>
<track src="captions-webvtt/tc013-settings.vtt" onload="trackLoaded(0)">
<track src="captions-webvtt/tc013-settings-bad-separation.vtt" onload="trackLoaded(1)">
<track src="captions-webvtt/tc013-settings.vtt" onload="trackLoaded()">
<track src="captions-webvtt/tc013-settings-bad-separation.vtt" onload="trackLoaded()">
</video>
</body>
</html>
\ No newline at end of file
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