OLD | NEW |
1 <html> | 1 <html> |
2 <body> | 2 <body> |
3 <p>Test for bug <a href="https://bugs.webkit.org/show_bug.cgi?id=62384">6238
4</a>: WebCore::WebKitCSSKeyframesRuleInternal::nameAttrSetter() - crash</p> | 3 <p>Test for bug <a href="https://bugs.webkit.org/show_bug.cgi?id=62384">6238
4</a>: WebCore::WebKitCSSKeyframesRuleInternal::nameAttrSetter() - crash</p> |
4 <p>This test passed if it did not crash</p> | 4 <p>This test passed if it did not crash</p> |
5 <p id="console">FAILED (test not run)</p> | 5 <p id="console">FAILED (test not run)</p> |
6 <script> | 6 <script> |
7 if (window.layoutTestController) | 7 if (window.layoutTestController) |
8 layoutTestController.dumpAsText(); | 8 layoutTestController.dumpAsText(); |
9 | 9 |
10 function main(){ | 10 function main(){ |
11 var e = window.document.styleSheets[0].cssRules[0]; | 11 var e = window.document.styleSheets[0].cssRules[0]; |
12 e.cssRules.item().parentStyleSheet.removeRule(); | 12 e.cssRules.item().parentStyleSheet.removeRule(); |
13 e.name = 'bar'; | 13 e.name = 'bar'; |
14 document.getElementById('console').innerHTML = "PASSED"; | 14 document.getElementById('console').innerHTML = "PASSED"; |
15 } | 15 } |
16 window.onload = main; | 16 window.onload = main; |
17 </script> | 17 </script> |
18 <style> | 18 <style> |
19 @-webkit-keyframes foo { | 19 @-webkit-keyframes foo { |
20 0% {foo: bar;} | 20 0% {foo: bar;} |
21 } | 21 } |
22 </style> | 22 </style> |
23 </body> | 23 </body> |
24 </html> | 24 </html> |
OLD | NEW |