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

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: incorporated review comments 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
« no previous file with comments | « no previous file | LayoutTests/fast/forms/file/input-file-element-clone-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Node.cloneNode() works as expected for file input ty pe.');
11 jsTestIsAsync = true;
12 window.onload = function()
Inactive 2014/05/07 14:26:47 Is the onload really needed? If it works without,
gnana 2014/05/07 14:50:08 Done.
13 {
14 var file1 = document.getElementById('file1');
15 dragFilesOntoInput(file1, ['input-file-element-clone.html']);
16 var clone = file1.cloneNode(true);
Inactive 2014/05/07 14:26:47 Can you check file1.value?
gnana 2014/05/07 14:50:08 Done.
17 clone.id = "file2";
18 document.body.appendChild(clone);
19 var file2 = document.getElementById('file2');
20 shouldBeEqualToString("file2.value", "C:\\fakepath\\input-file-element-clone .html");
21 dragFilesOntoInput(file1, ['input-file-element-clone-expected.txt']);
22 shouldBeEqualToString("file2.value", "C:\\fakepath\\input-file-element-clone .html");
Inactive 2014/05/07 14:26:47 Can you check file1.value as well?
gnana 2014/05/07 14:50:08 Done.
23 finishJSTest();
24 }
25 </script>
26 </body>
27 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/file/input-file-element-clone-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698