Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(908)

Side by Side Diff: LayoutTests/fast/dom/HTMLAnchorElement/anchor-nodownload-set.html

Issue 120373003: Revert of Make arguments to Element methods non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698