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