OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../js/resources/js-test-pre.js"></script> |
3 <style> | 3 <style> |
4 #large { | 4 #large { |
5 font-size: 30px; | 5 font-size: 30px; |
6 } | 6 } |
7 #large::-webkit-file-upload-button { | 7 #large::-webkit-file-upload-button { |
8 /* Uses square-button for ease of testing on Mac. */ | 8 /* Uses square-button for ease of testing on Mac. */ |
9 -webkit-appearance: square-button; | 9 -webkit-appearance: square-button; |
10 } | 10 } |
(...skipping 13 matching lines...) Expand all Loading... |
24 debug('1. Check if the "Choose File" button of the first file upload control
is large.'); | 24 debug('1. Check if the "Choose File" button of the first file upload control
is large.'); |
25 debug('2. Check if the "no file selected" text of the second file upload con
trol is visible.'); | 25 debug('2. Check if the "no file selected" text of the second file upload con
trol is visible.'); |
26 } else { | 26 } else { |
27 var file1 = document.getElementById('large'); | 27 var file1 = document.getElementById('large'); |
28 var button1 = internals.shadowRoot(file1).firstChild; | 28 var button1 = internals.shadowRoot(file1).firstChild; |
29 shouldBe('document.defaultView.getComputedStyle(button1, null).getPropertyVa
lue("font-size")', '"30px"'); | 29 shouldBe('document.defaultView.getComputedStyle(button1, null).getPropertyVa
lue("font-size")', '"30px"'); |
30 shouldBe('document.defaultView.getComputedStyle(document.getElementById("dar
kFile"), null).getPropertyValue("background-color")', '"rgba(0, 0, 0, 0)"'); | 30 shouldBe('document.defaultView.getComputedStyle(document.getElementById("dar
kFile"), null).getPropertyValue("background-color")', '"rgba(0, 0, 0, 0)"'); |
31 shouldBe('document.defaultView.getComputedStyle(document.getElementById("dar
kFile"), null).getPropertyValue("color")', '"rgb(255, 255, 255)"'); | 31 shouldBe('document.defaultView.getComputedStyle(document.getElementById("dar
kFile"), null).getPropertyValue("color")', '"rgb(255, 255, 255)"'); |
32 } | 32 } |
33 </script> | 33 </script> |
34 <script src="../../js/resources/js-test-post.js"></script> | |
OLD | NEW |