cdumez@apple.com | 84541df | 2016-07-26 22:38:13 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <body> |
| 4 | <script src="../../resources/js-test-pre.js"></script> |
| 5 | <script> |
| 6 | description("Tests that CSSStyleDeclaration.cssText is not nullable"); |
| 7 | |
| 8 | var div = document.createElement("div"); |
| 9 | var style = div.style; |
| 10 | shouldBeEqualToString("style.cssText", ""); |
| 11 | shouldNotThrow("style.cssText = 'margin: 0px;'"); |
| 12 | shouldBeEqualToString("style.cssText", "margin: 0px;"); |
| 13 | shouldNotThrow("style.cssText = null"); |
| 14 | shouldBeEqualToString("style.cssText", ""); |
| 15 | </script> |
| 16 | <script src="../../resources/js-test-post.js"></script> |
| 17 | </body> |
| 18 | </html> |