Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / permissionclient / video-permissions.html
blobf97ee071685580b32db0c9d913a7b9a7ea577144
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.dumpPermissionClientCallbacks();
8 testRunner.waitUntilDone();
11 function log(a)
13 document.getElementById("results").innerHTML += a + "<br>";
16 function done() {
17 if (window.testRunner)
18 testRunner.notifyDone();
21 function loaded()
23 var video = document.querySelector("video");
24 if (video.duration)
25 log("PASS: video loaded");
26 else
27 log("FAIL: video not loaded");
28 done();
31 function error()
33 log("FAIL: video loading error");
34 done();
36 </script>
37 </head>
38 <body>
39 <p>
40 This test checks that all URLs in a redirect chain are passed to the
41 PermissionClient.
42 </p>
43 <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()">
44 </video>
45 <div id="results"></div>
46 </body>
47 </html>