8 <script src="../../../http/tests/inspector/inspector-test.js"></script>
9 <script src="../../../http/tests/inspector/elements-test.js"></script>
14 document.styleSheets[0].removeRule(0);
19 InspectorTest.selectNodeAndWaitForStyles("container", step0);
23 InspectorTest.evaluateInPage("removeRule()", step1);
28 InspectorTest.addResult("Before disable");
29 InspectorTest.dumpSelectedElementStyles(true);
30 InspectorTest.toggleMatchedStyleProperty("font-weight", false);
31 InspectorTest.waitForStyleApplied(step2);
36 InspectorTest.addResult("PASS: No crash");
37 InspectorTest.completeTest();
43 <body onload="runTest()">
45 Tests that disabling style property after the style rule has been removed does not crash the inspected page.