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

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

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <input id="single_file" name="upfile" type="file" /> 7 <input id="single_file" name="upfile" type="file" />
8 <input id="multiple_files" name="upfile[]" multiple="multiple" type="file" /> 8 <input id="multiple_files" name="upfile[]" multiple="multiple" type="file" />
9 <input id="single_or_multiple_file" name="upfile[]" type="file" /> 9 <input id="single_or_multiple_file" name="upfile[]" type="file" />
10 <p>This tests the label of a file chooser button.</p> 10 <p>This tests the label of a file chooser button.</p>
(...skipping 24 matching lines...) Expand all
35 result = 'Set "multiple" attribute, then the label of the file chooser butto n becomes "' + label + '".'; 35 result = 'Set "multiple" attribute, then the label of the file chooser butto n becomes "' + label + '".';
36 label == 'Choose Files' ? testPassed(result) : testFailed(result); 36 label == 'Choose Files' ? testPassed(result) : testFailed(result);
37 37
38 file.removeAttribute("multiple"); 38 file.removeAttribute("multiple");
39 button = internals.shadowRoot(file).firstChild; 39 button = internals.shadowRoot(file).firstChild;
40 label = button.getAttribute('value'); 40 label = button.getAttribute('value');
41 result = 'Unset "multiple" attribute, then the label of the file chooser but ton becomes "' + label + '".'; 41 result = 'Unset "multiple" attribute, then the label of the file chooser but ton becomes "' + label + '".';
42 label == 'Choose File' ? testPassed(result) : testFailed(result); 42 label == 'Choose File' ? testPassed(result) : testFailed(result);
43 } 43 }
44 </script> 44 </script>
45 <script src="../../js/resources/js-test-post.js"></script>
46 </body> 45 </body>
47 </html> 46 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/file/input-file-entries.html ('k') | LayoutTests/fast/forms/file/input-file-value.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698