Follow-up to r154810 and r154810: Missing tests and fix one misplaced call to setCaptionDisplayMode

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

Reviewed by Eric Carlson.

I previously used a regular expression that didn't catch all the tests needing this
update. Additionally, in one of them I put the setCaptionDisplayMode in the wrong place,
before the function was defined by video-test.js. This new patch addresses all of that.

* media/track/media-element-enqueue-event-crash.html:
* media/track/regions-webvtt/text-track-cue-region-attribute.html:
* media/track/regions-webvtt/text-track-region-parser.html:
* media/track/track-add-remove-cue.html:
* media/track/track-cue-mutable-fragment.html:
* media/track/track-cue-mutable-text.html:
* media/track/track-cue-mutable.html:
* media/track/track-cue-negative-timestamp.html:
* media/track/track-cue-rendering-on-resize.html:
* media/track/track-cues-cuechange.html:
* media/track/track-cues-enter-exit.html:
* media/track/track-cues-missed.html:
* media/track/track-cues-pause-on-exit.html:
* media/track/track-cues-seeking.html:
* media/track/track-cues-sorted-before-dispatch.html:
* media/track/track-default-attribute.html:
* media/track/track-load-from-element-readyState.html:
* media/track/track-mode-disabled-crash.html:
* media/track/track-remove-quickly.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154815 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ea1f9022
2013-08-29 Simon Pena <simon.pena@samsung.com>
Follow-up to r154810 and r154810: Missing tests and fix one misplaced call to setCaptionDisplayMode
https://bugs.webkit.org/show_bug.cgi?id=120474
Reviewed by Eric Carlson.
I previously used a regular expression that didn't catch all the tests needing this
update. Additionally, in one of them I put the setCaptionDisplayMode in the wrong place,
before the function was defined by video-test.js. This new patch addresses all of that.
* media/track/media-element-enqueue-event-crash.html:
* media/track/regions-webvtt/text-track-cue-region-attribute.html:
* media/track/regions-webvtt/text-track-region-parser.html:
* media/track/track-add-remove-cue.html:
* media/track/track-cue-mutable-fragment.html:
* media/track/track-cue-mutable-text.html:
* media/track/track-cue-mutable.html:
* media/track/track-cue-negative-timestamp.html:
* media/track/track-cue-rendering-on-resize.html:
* media/track/track-cues-cuechange.html:
* media/track/track-cues-enter-exit.html:
* media/track/track-cues-missed.html:
* media/track/track-cues-pause-on-exit.html:
* media/track/track-cues-seeking.html:
* media/track/track-cues-sorted-before-dispatch.html:
* media/track/track-default-attribute.html:
* media/track/track-load-from-element-readyState.html:
* media/track/track-mode-disabled-crash.html:
* media/track/track-remove-quickly.html:
2013-08-29 Simon Pena <simon.pena@samsung.com>
[GTK] Unreviewed gardening. Rebaselining after r154479 and r154702
......@@ -45,6 +45,7 @@
}
document.addEventListener("DOMContentLoaded", startTest, false);
setCaptionDisplayMode('Automatic');
</script>
</head>
......
......@@ -37,6 +37,8 @@
consoleWrite("");
endTest();
}
setCaptionDisplayMode('Automatic');
</script>
</head>
<body>
......
......@@ -54,6 +54,7 @@
endTest();
}
setCaptionDisplayMode('Automatic');
</script>
</head>
<body>
......
......@@ -97,6 +97,7 @@
endTest();
}
setCaptionDisplayMode('Automatic');
</script>
</head>
<body>
......
......@@ -79,6 +79,7 @@
video.src = findMediaFile('video', '../content/counting');
}
setCaptionDisplayMode('Automatic');
</script>
</head>
<body onload="loaded()">
......
......@@ -74,6 +74,7 @@
video.src = findMediaFile('video', '../content/counting');
}
setCaptionDisplayMode('Automatic');
</script>
</head>
<body onload="loaded()">
......
......@@ -95,6 +95,7 @@
endTest();
}
setCaptionDisplayMode('Automatic');
</script>
</head>
<body>
......
......@@ -31,6 +31,7 @@
endTest();
}
setCaptionDisplayMode('Automatic');
</script>
</head>
......
......@@ -44,10 +44,12 @@
});
}
setCaptionDisplayMode('Automatic');
</script>
<script src=../video-test.js></script>
<script>
setCaptionDisplayMode('Automatic');
</script>
</head>
<body onload="loaded()">
<video controls>
......
......@@ -77,6 +77,7 @@
video.src = findMediaFile("video", "../content/test");
}
setCaptionDisplayMode('Automatic');
</script>
</head>
<body onload="start()">
......
......@@ -71,6 +71,8 @@
findMediaElement();
video.src = findMediaFile("video", "../content/test");
}
setCaptionDisplayMode('Automatic');
</script>
</head>
<body onload="start()">
......
......@@ -67,6 +67,8 @@
findMediaElement();
video.src = findMediaFile("video", "../content/test");
}
setCaptionDisplayMode('Automatic');
</script>
</head>
<body onload="bodyLoaded()">
......
......@@ -73,6 +73,7 @@
runTests();
});
setCaptionDisplayMode('Automatic');
</script>
</head>
<body onload="bodyLoaded()">
......
......@@ -63,6 +63,8 @@
findMediaElement();
video.src = findMediaFile("video", "../content/test");
}
setCaptionDisplayMode('Automatic');
</script>
</head>
<body onload="start()">
......
......@@ -78,6 +78,7 @@
runTests();
});
setCaptionDisplayMode('Automatic');
</script>
</head>
<body onload="bodyLoaded()">
......
......@@ -20,7 +20,7 @@
clearTimeout(timer);
timer = setTimeout(function() { endTest() }, 200);
}
setCaptionDisplayMode('Automatic');
</script>
</head>
<body>
......
......@@ -15,6 +15,7 @@
endTest();
}
setCaptionDisplayMode('Automatic');
</script>
</head>
<body>
......
......@@ -42,6 +42,7 @@
waitForEvent('canplaythrough', startTest);
}
setCaptionDisplayMode('Automatic');
</script>
</head>
<body onload="loaded()">
......
......@@ -7,6 +7,7 @@
<body>
<div id=video_container></div>
<script>
setCaptionDisplayMode('Automatic');
var mediaFile = findMediaFile("video", "../content/test");
document.getElementById('video_container').innerHTML = "<video src='" + mediaFile + "' controls ><track kind='captions' src='captions-webvtt/simple-captions.vtt' default ></video>";
</script>
......
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