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

Side by Side Diff: LayoutTests/fast/css/background-currentcolor.html

Issue 58533003: Move fast/js/resources files to resources. (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 <style> 1 <style>
2 #test3 { color: blue; } 2 #test3 { color: blue; }
3 </style> 3 </style>
4 <div id="test-container"> 4 <div id="test-container">
5 <div id="test1" style="color:green; background: currentColor"></div> 5 <div id="test1" style="color:green; background: currentColor"></div>
6 <div id="test2" style="color:red; background: currentColor"></div> 6 <div id="test2" style="color:red; background: currentColor"></div>
7 <div style="color:green"> 7 <div style="color:green">
8 <div id="test3" style="color:currentColor; background: currentColor"></div> 8 <div id="test3" style="color:currentColor; background: currentColor"></div>
9 </div> 9 </div>
10 </div> 10 </div>
11 <script src="../../fast/js/resources/js-test-pre.js"></script> 11 <script src="../../resources/js-test.js"></script>
12 <script> 12 <script>
13 description('Test that background-color is non-inherit and currentColor is handl ed correctly.'); 13 description('Test that background-color is non-inherit and currentColor is handl ed correctly.');
14 var test1 = document.getElementById("test1"); 14 var test1 = document.getElementById("test1");
15 var test2 = document.getElementById("test2"); 15 var test2 = document.getElementById("test2");
16 var test3 = document.getElementById("test3"); 16 var test3 = document.getElementById("test3");
17 test2.style.color = "green"; 17 test2.style.color = "green";
18 shouldBeEqualToString('getComputedStyle(test1).backgroundColor', 'rgb(0, 128, 0) '); 18 shouldBeEqualToString('getComputedStyle(test1).backgroundColor', 'rgb(0, 128, 0) ');
19 shouldBeEqualToString('getComputedStyle(test2).backgroundColor', 'rgb(0, 128, 0) '); 19 shouldBeEqualToString('getComputedStyle(test2).backgroundColor', 'rgb(0, 128, 0) ');
20 shouldBeEqualToString('getComputedStyle(test3).backgroundColor', 'rgb(0, 128, 0) '); 20 shouldBeEqualToString('getComputedStyle(test3).backgroundColor', 'rgb(0, 128, 0) ');
21 </script> 21 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/background-clip-text.html ('k') | LayoutTests/fast/css/border-image-null-image-crash.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698