| Index: LayoutTests/http/tests/permissionclient/video-permissions.html
|
| diff --git a/LayoutTests/http/tests/permissionclient/video-permissions.html b/LayoutTests/http/tests/permissionclient/video-permissions.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f97ee071685580b32db0c9d913a7b9a7ea577144
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/permissionclient/video-permissions.html
|
| @@ -0,0 +1,47 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<script>
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.dumpPermissionClientCallbacks();
|
| + testRunner.waitUntilDone();
|
| +}
|
| +
|
| +function log(a)
|
| +{
|
| + document.getElementById("results").innerHTML += a + "<br>";
|
| +}
|
| +
|
| +function done() {
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| +}
|
| +
|
| +function loaded()
|
| +{
|
| + var video = document.querySelector("video");
|
| + if (video.duration)
|
| + log("PASS: video loaded");
|
| + else
|
| + log("FAIL: video not loaded");
|
| + done();
|
| +}
|
| +
|
| +function error()
|
| +{
|
| + log("FAIL: video loading error");
|
| + done();
|
| +}
|
| +</script>
|
| +</head>
|
| +<body>
|
| +<p>
|
| +This test checks that all URLs in a redirect chain are passed to the
|
| +PermissionClient.
|
| +</p>
|
| +<video src="http://127.0.0.1:8000/permissionclient/resources/redir.php?url=http://127.0.0.1:8000/media/resources/test.ogv" onerror="error()" onloadeddata="loaded()">
|
| +</video>
|
| +<div id="results"></div>
|
| +</body>
|
| +</html>
|
|
|