OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script> |
| 5 if (window.testRunner) { |
| 6 testRunner.dumpAsText(); |
| 7 testRunner.dumpPermissionClientCallbacks(); |
| 8 testRunner.waitUntilDone(); |
| 9 } |
| 10 |
| 11 function log(a) |
| 12 { |
| 13 document.getElementById("results").innerHTML += a + "<br>"; |
| 14 } |
| 15 |
| 16 function done() { |
| 17 if (window.testRunner) |
| 18 testRunner.notifyDone(); |
| 19 } |
| 20 |
| 21 function loaded() |
| 22 { |
| 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(); |
| 29 } |
| 30 |
| 31 function error() |
| 32 { |
| 33 log("FAIL: video loading error"); |
| 34 done(); |
| 35 } |
| 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="loade
d()"> |
| 44 </video> |
| 45 <div id="results"></div> |
| 46 </body> |
| 47 </html> |
OLD | NEW |