| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <input type="file" name="file" id="file"> | 7 <input type="file" name="file" id="file"> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 description("This tests the value attribute in file input forms"); | 10 description("This tests the value attribute in file input forms"); |
| 11 | 11 |
| 12 if (window.testRunner) { | 12 if (window.testRunner) { |
| 13 var file = document.getElementById("file"); | 13 var file = document.getElementById("file"); |
| 14 dragFilesOntoInput(file, ["foo.txt"]); | 14 dragFilesOntoInput(file, ["foo.txt"]); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 function dragFilesOntoInput(input, files) { | 34 function dragFilesOntoInput(input, files) { |
| 35 eventSender.beginDragWithFiles(files); | 35 eventSender.beginDragWithFiles(files); |
| 36 moveMouseToCenterOfElement(input); | 36 moveMouseToCenterOfElement(input); |
| 37 eventSender.mouseUp(); | 37 eventSender.mouseUp(); |
| 38 } | 38 } |
| 39 </script> | 39 </script> |
| 40 </body> | 40 </body> |
| 41 </html> | 41 </html> |
| OLD | NEW |