OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <style> | 3 <style> |
4 #element-container { | 4 #element-container { |
5 border-radius:5px; | 5 border-radius:5px; |
6 } | 6 } |
7 </style> | 7 </style> |
8 <div id="element-container"></div> | 8 <div id="element-container"></div> |
9 <script src="../js/resources/js-test-pre.js"></script> | 9 <script src="../../resources/js-test.js"></script> |
10 | 10 |
11 <script> | 11 <script> |
12 if (window.testRunner) | 12 if (window.testRunner) |
13 testRunner.dumpAsText(); | 13 testRunner.dumpAsText(); |
14 | 14 |
15 description("Test for Bug: 80736 - CSSStyleDeclaration.getPropertyValue() for 'b
order-radius' returns null when value is set"); | 15 description("Test for Bug: 80736 - CSSStyleDeclaration.getPropertyValue() for 'b
order-radius' returns null when value is set"); |
16 | 16 |
17 var element = document.getElementById("element-container"); | 17 var element = document.getElementById("element-container"); |
18 var style = window.getMatchedCSSRules(element)[0].style; | 18 var style = window.getMatchedCSSRules(element)[0].style; |
19 shouldBe("style.getPropertyValue('border-radius')","'5px'"); | 19 shouldBe("style.getPropertyValue('border-radius')","'5px'"); |
20 shouldBe("style.getPropertyValue('border-top-left-radius')","'5px'"); | 20 shouldBe("style.getPropertyValue('border-top-left-radius')","'5px'"); |
21 shouldBe("style.getPropertyValue('border-top-right-radius')","'5px'"); | 21 shouldBe("style.getPropertyValue('border-top-right-radius')","'5px'"); |
22 shouldBe("style.getPropertyValue('border-bottom-left-radius')","'5px'"); | 22 shouldBe("style.getPropertyValue('border-bottom-left-radius')","'5px'"); |
23 shouldBe("style.getPropertyValue('border-bottom-right-radius')","'5px'"); | 23 shouldBe("style.getPropertyValue('border-bottom-right-radius')","'5px'"); |
24 </script> | 24 </script> |
25 | 25 |
26 </html> | 26 </html> |
OLD | NEW |