Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / styles-3 / styles-disable-then-delete.html
blob3376dc3810cb8326877143f6f1bc0c2c8e4af5c9
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 // Disable property
14 InspectorTest.addResult("Before disable");
15 InspectorTest.dumpSelectedElementStyles(true, true);
16 InspectorTest.toggleStyleProperty("font-weight", false);
17 InspectorTest.waitForStyleApplied(step2);
20 function step2()
22 // Delete style
23 InspectorTest.addResult("After disable");
24 InspectorTest.dumpSelectedElementStyles(true, true);
26 var treeItem = InspectorTest.getElementStylePropertyTreeItem("font-weight");
27 treeItem.applyStyleText("", false);
29 InspectorTest.waitForStyleApplied(step3);
32 function step3()
34 InspectorTest.selectNodeWithId("other", step4);
37 function step4()
39 InspectorTest.selectNodeAndWaitForStyles("container", step5);
42 function step5(node)
44 InspectorTest.addResult("After delete");
45 InspectorTest.dumpSelectedElementStyles(true, true);
46 InspectorTest.completeTest();
49 </script>
50 </head>
52 <body onload="runTest()">
53 <p>
54 Tests that removal of property following its disabling works.
55 </p>
57 <div id="container" style="font-weight:bold">
58 </div>
60 <div id="other">
61 </div>
63 </body>
64 </html>