Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / styles-3 / styles-disable-then-enable.html
blobe1e580b64d31bf028793f4532374347e5b053e41
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.selectNodeAndWaitForStyles("container", step1);
11 function step1(node)
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);
21 function 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);
31 function step3()
33 InspectorTest.addResult("After enable");
34 var treeItem = InspectorTest.getElementStylePropertyTreeItem("font-weight");
35 InspectorTest.dumpStyleTreeItem(treeItem, "");
37 InspectorTest.completeTest();
40 </script>
41 </head>
43 <body onload="runTest()">
44 <p>
45 Tests that disabling style property works.
46 </p>
48 <div id="container" style="font-weight:bold">
49 </div>
51 </body>
52 </html>