3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/elements-test.js"></script>
9 InspectorTest.selectNodeAndWaitForStyles("container", step1);
14 InspectorTest.addResult("Before disable");
15 InspectorTest.dumpSelectedElementStyles(true, true);
16 InspectorTest.toggleStyleProperty("font-weight", false);
17 InspectorTest.runAfterPendingDispatches(step2);
23 InspectorTest.addResult("After disable");
24 InspectorTest.dumpSelectedElementStyles(true, true);
26 var treeItem = InspectorTest.getElementStylePropertyTreeItem("font-weight");
27 treeItem.applyStyleText("", true);
29 InspectorTest.runAfterPendingDispatches(step3);
34 InspectorTest.selectNodeWithId("other");
35 InspectorTest.runAfterPendingDispatches(step4);
40 InspectorTest.selectNodeAndWaitForStyles("container", step5);
45 InspectorTest.addResult("After delete");
46 InspectorTest.dumpSelectedElementStyles(true, true);
47 InspectorTest.completeTest();
53 <body onload="runTest()">
55 Tests that removal of property following its disabling works.
58 <div id="container" style="font-weight:bold">