Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / styles-1 / add-new-rule-invalid-selector.html
blob13f3e158fe1430753aaa9608ba0ea90744fab142
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>
7 function test()
9 InspectorTest.runTestSuite([
10 function init(next)
12 InspectorTest.selectNodeAndWaitForStyles("inspected", next);
15 function keyframesRuleSelector(next)
17 InspectorTest.addNewRule("@-webkit-keyframes shake", callback);
19 function callback()
21 InspectorTest.dumpSelectedElementStyles(true, false, true);
22 next();
25 ]);
28 </script>
29 </head>
31 <body onload="runTest()">
32 <p>
33 Tests that adding a new rule with invalid selector works as expected.
34 </p>
36 <div id="inspected">Text</div>
38 </body>
39 </html>