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
);
13 InspectorTest
.addResult("Before disable");
14 var treeItem
= InspectorTest
.getElementStylePropertyTreeItem("font-weight");
15 InspectorTest
.dumpStyleTreeItem(treeItem
, "");
17 InspectorTest
.toggleStyleProperty("font-weight", false);
18 InspectorTest
.waitForStyles("container", step2
);
23 InspectorTest
.addResult("After disable");
24 var treeItem
= InspectorTest
.getElementStylePropertyTreeItem("font-weight");
25 InspectorTest
.dumpStyleTreeItem(treeItem
, "");
27 InspectorTest
.toggleStyleProperty("font-weight", true);
28 InspectorTest
.waitForStyles("container", step3
);
33 InspectorTest
.addResult("After enable");
34 var treeItem
= InspectorTest
.getElementStylePropertyTreeItem("font-weight");
35 InspectorTest
.dumpStyleTreeItem(treeItem
, "");
37 InspectorTest
.completeTest();
43 <body onload=
"runTest()">
45 Tests that disabling style property works.
48 <div id=
"container" style=
"font-weight:bold">