OLD | NEW |
---|---|
1 <html> | 1 <html> |
jochen (gone - plz use gerrit)
2013/10/22 08:25:31
<!DOCTYPE html>
pwnall-personal
2013/10/22 11:56:18
Done.
Also added in the files that I drew inspirat
| |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
4 if (window.testRunner) { | 4 if (window.testRunner) { |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 testRunner.dumpPermissionClientCallbacks(); | 6 testRunner.dumpPermissionClientCallbacks(); |
7 testRunner.waitUntilDone(); | |
7 } | 8 } |
8 | 9 |
9 function log(a) | 10 function log(a) |
10 { | 11 { |
11 document.getElementById("results").innerHTML += a + "<br>"; | 12 document.getElementById("results").innerHTML += a + "<br>"; |
12 } | 13 } |
14 | |
15 function done() { | |
16 if (window.testRunner) { | |
jochen (gone - plz use gerrit)
2013/10/22 08:25:31
no { } for single-line if statements
pwnall-personal
2013/10/22 11:56:18
Done.
| |
17 testRunner.notifyDone(); | |
18 } | |
19 } | |
13 </script> | 20 </script> |
14 </head> | 21 </head> |
15 <body> | 22 <body> |
16 <p> | 23 <p> |
17 This test checks that all URLs in a redirect chain are passed to the | 24 This test checks that all URLs in a redirect chain are passed to the |
18 PermissionClient. | 25 PermissionClient. |
19 </p> | 26 </p> |
20 <img src="http://127.0.0.1:8000/permissionclient/resources/redir.php?url=http:// 127.0.0.1:8000/permissionclient/resources/boston.gif" onerror="log('FAIL: error event for first image')"> | 27 <audio src="http://127.0.0.1:8000/permissionclient/resources/redir.php?url=http: //127.0.0.1:8000/permissionclient/resources/silence.oga" onerror="done()" onload eddata="done()"> |
28 </audio> | |
21 <div id="results"></div> | 29 <div id="results"></div> |
22 </body> | 30 </body> |
23 </html> | 31 </html> |
OLD | NEW |