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

Side by Side Diff: LayoutTests/fast/forms/file/input-file-element-clone.html

Issue 267713006: node.cloneNode() should clone the value of file upload elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 months 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
OLDNEW
(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 element.cloneNode works well for Input element type file');
Inactive 2014/05/06 13:40:29 "Make sure that Node.cloneNode() works as expected
gnana 2014/05/07 12:39:46 Done.
11 var file1 = document.getElementById('file1');
12 file1.onchange = function() {
13 var clone = file1.cloneNode(true);
14 clone.id = "file2";
15 document.body.appendChild(clone);
16 var file2 = document.getElementById('file2');
17 shouldBeEqualToString("file2.value", "C:\\fakepath\\input-file-element-clone .html");
18 };
19 window.onload = function()
20 {
21 dragFilesOntoInput(file1, ['input-file-element-clone.html']);
22 }
23 </script>
24 </body>
25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698