| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <body> | |
| 4 <script src="../../../resources/js-test.js"></script> | |
| 5 <script src="resources/file-drag-common.js"></script> | |
| 6 <form method="GET"> | |
| 7 <input type="file" id="file1"> | |
| 8 </form> | |
| 9 <script> | |
| 10 description('Make sure that Node.cloneNode() works as expected for file input ty
pe.'); | |
| 11 var file1 = document.getElementById('file1'); | |
| 12 dragFilesOntoInput(file1, ['input-file-element-clone.html']); | |
| 13 var clone = file1.cloneNode(true); | |
| 14 shouldBeEqualToString("file1.value", "C:\\fakepath\\input-file-element-clone.htm
l"); | |
| 15 clone.id = "file2"; | |
| 16 document.body.appendChild(clone); | |
| 17 var file2 = document.getElementById('file2'); | |
| 18 shouldBeEqualToString("file2.value", "C:\\fakepath\\input-file-element-clone.htm
l"); | |
| 19 dragFilesOntoInput(file1, ['input-file-element-clone-expected.txt']); | |
| 20 shouldBeEqualToString("file1.value", "C:\\fakepath\\input-file-element-clone-exp
ected.txt"); | |
| 21 shouldBeEqualToString("file2.value", "C:\\fakepath\\input-file-element-clone.htm
l"); | |
| 22 </script> | |
| 23 </body> | |
| 24 </html> | |
| OLD | NEW |