Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / styles-3 / styles-disable-then-change.html
blobf4603db937ab5b617602adb89ca521779a5154c6
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()
13 InspectorTest.addResult("Before disable");
14 InspectorTest.dumpSelectedElementStyles(true, true);
16 InspectorTest.toggleStyleProperty("font-weight", false);
17 InspectorTest.waitForStyles("container", step2);
20 function step2()
22 InspectorTest.addResult("After disable");
23 InspectorTest.dumpSelectedElementStyles(true, true);
25 var treeItem = InspectorTest.getElementStylePropertyTreeItem("font-weight");
26 treeItem.applyStyleText("color: green", false);
27 InspectorTest.waitForStyles("container", step3);
30 function step3()
32 InspectorTest.addResult("After change");
33 InspectorTest.dumpSelectedElementStyles(true, true);
34 InspectorTest.completeTest();
37 </script>
38 </head>
40 <body onload="runTest()">
41 <p>
42 Tests that changing a disabled property enables it as well.
43 </p>
45 <div id="container" style="font-weight:bold">
46 </div>
48 <div id="other">
49 </div>
51 </body>
52 </html>