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

Side by Side Diff: LayoutTests/fast/forms/file/file-style-inheritance.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 <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
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>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/file/file-setrangetext.html ('k') | LayoutTests/fast/forms/file/input-file-entries.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698