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

Side by Side Diff: LayoutTests/fast/backgrounds/background-shorthand-with-backgroundSize-style.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <script src="../js/resources/js-test-pre.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <div id="test"> </div> 4 <div id="test"> </div>
5 <script> 5 <script>
6 description("Tests background shortand property with background-size"); 6 description("Tests background shortand property with background-size");
7 7
8 var e = document.getElementById('test'); 8 var e = document.getElementById('test');
9 var computedStyle = window.getComputedStyle(e, null); 9 var computedStyle = window.getComputedStyle(e, null);
10 10
11 function checkStyle() { 11 function checkStyle() {
12 var before = e.style.background; 12 var before = e.style.background;
13 e.style.background = 'none'; 13 e.style.background = 'none';
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 shouldBe("e.style.background", "''"); 137 shouldBe("e.style.background", "''");
138 shouldBe("e.style.backgroundSize", "''"); 138 shouldBe("e.style.backgroundSize", "''");
139 shouldBe("checkStyle()", "true"); 139 shouldBe("checkStyle()", "true");
140 shouldBe('computedStyle.getPropertyValue("background")', "'rgba(0, 0, 0, 0) none repeat scroll left 0% top 0% / auto padding-box border-box'"); 140 shouldBe('computedStyle.getPropertyValue("background")', "'rgba(0, 0, 0, 0) none repeat scroll left 0% top 0% / auto padding-box border-box'");
141 shouldBe('computedStyle.getPropertyValue("background-size")', "'auto'"); 141 shouldBe('computedStyle.getPropertyValue("background-size")', "'auto'");
142 shouldBe("checkComputedStyleValue()", "true"); 142 shouldBe("checkComputedStyleValue()", "true");
143 debug("") 143 debug("")
144 </script> 144 </script>
145 </body> 145 </body>
146 </html> 146 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698