| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script type='text/javascript'> | 4 <script type='text/javascript'> |
| 5 if (window.testRunner) { | 5 if (window.testRunner) { |
| 6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
| 7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
| 8 } | 8 } |
| 9 </script> | 9 </script> |
| 10 </head> | 10 </head> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 eventSender.mouseDown(); | 21 eventSender.mouseDown(); |
| 22 eventSender.mouseUp(); | 22 eventSender.mouseUp(); |
| 23 } | 23 } |
| 24 | 24 |
| 25 function runTest() | 25 function runTest() |
| 26 { | 26 { |
| 27 var string = "<!doctype html><html><head><title>Title</title><script>if (win
dow.testRunner) testRunner.dumpAsText(); </" + "script></head><body>PASS</body><
script>if (window.testRunner) testRunner.notifyDone();</scr" + "ipt></html>"; | 27 var string = "<!doctype html><html><head><title>Title</title><script>if (win
dow.testRunner) testRunner.dumpAsText(); </" + "script></head><body>PASS</body><
script>if (window.testRunner) testRunner.notifyDone();</scr" + "ipt></html>"; |
| 28 var blob = new Blob([string], {type: "text/html"}); | 28 var blob = new Blob([string], {type: "text/html"}); |
| 29 var link = document.getElementById("blob-url"); | 29 var link = document.getElementById("blob-url"); |
| 30 link.href = window.URL.createObjectURL(blob); | 30 link.href = window.URL.createObjectURL(blob); |
| 31 link.setAttribute('download', ''); | 31 link.setAttribute('download'); |
| 32 click(link); | 32 click(link); |
| 33 } | 33 } |
| 34 runTest(); | 34 runTest(); |
| 35 </script> | 35 </script> |
| 36 </body> | 36 </body> |
| 37 </html> | 37 </html> |
| 38 | 38 |
| OLD | NEW |