Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / files / revoke-blob-url.html
blob51e96005eb9dcaccae61689d7ddbe8c0341b4040
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 function log(message)
7 document.getElementById('console').appendChild(document.createTextNode(message + "\n"));
10 function test()
12 log("Test calling revokeObjectURL with no argument.");
13 try {
14 var url = URL.revokeObjectURL();
15 log("FAIL");
16 } catch(err) {
17 log("PASS: " + err.message);
20 log("Test calling revokeObjectURL with empty URL.");
21 URL.revokeObjectURL("");
22 log("PASS");
24 log("Test calling revokeObjectURL with invalid URL.");
25 URL.revokeObjectURL("[foo bar]");
26 log("PASS");
28 log("Test calling revokeObjectURL with non-existent URL.");
29 URL.revokeObjectURL("blob:non-existent");
30 log("PASS");
32 log("DONE");
35 if (window.testRunner)
36 testRunner.dumpAsText();
37 </script>
38 </head>
39 <body onload="test()">
40 <pre id='console'></pre>
41 </body>
42 </html>