| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | |
| 4 <script src="../../../http/tests/inspector/elements-test.js"></script> | |
| 5 <script> | |
| 6 | |
| 7 function test() | |
| 8 { | |
| 9 InspectorTest.runTestSuite([ | |
| 10 function init(next) | |
| 11 { | |
| 12 InspectorTest.selectNodeAndWaitForStyles("inspected", next); | |
| 13 }, | |
| 14 | |
| 15 function keyframesRuleSelector(next) | |
| 16 { | |
| 17 InspectorTest.addNewRule("@-webkit-keyframes shake", callback); | |
| 18 | |
| 19 function callback() | |
| 20 { | |
| 21 InspectorTest.dumpSelectedElementStyles(true, false, true); | |
| 22 next(); | |
| 23 } | |
| 24 } | |
| 25 ]); | |
| 26 } | |
| 27 | |
| 28 </script> | |
| 29 </head> | |
| 30 | |
| 31 <body onload="runTest()"> | |
| 32 <p> | |
| 33 Tests that adding a new rule with invalid selector works as expected. | |
| 34 </p> | |
| 35 | |
| 36 <div id="inspected">Text</div> | |
| 37 | |
| 38 </body> | |
| 39 </html> | |
| OLD | NEW |