3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/elements-test.js"></script>
16 InspectorTest.selectNodeAndWaitForStyles("container", step1);
20 InspectorTest.addResult("Initial value");
21 InspectorTest.dumpSelectedElementStyles(true);
23 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("font-weight");
24 treeItem.applyStyleText("font-weight: normal", true, false);
25 InspectorTest.waitForStyles("container", step2);
30 InspectorTest.addResult("After changing property");
31 InspectorTest.dumpSelectedElementStyles(true);
33 WebInspector.domAgent.undo();
34 InspectorTest.selectNodeAndWaitForStyles("other", step3);
39 InspectorTest.addResult("After undo");
40 InspectorTest.dumpSelectedElementStyles(true);
42 WebInspector.domAgent.redo();
43 InspectorTest.selectNodeAndWaitForStyles("container", step4);
48 InspectorTest.addResult("After redo");
49 InspectorTest.dumpSelectedElementStyles(true);
50 InspectorTest.completeTest();
56 <body onload="runTest()">
58 Tests that changing a property is undone properly.
61 <div id="container" class="container"></div>
62 <div id="other" class="container"></div>