| 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="../../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 Loading... |
| 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> |
| OLD | NEW |