3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/elements-test.js"></script>
9 WebInspector.showPanel("elements");
10 InspectorTest.selectNodeAndWaitForStyles("inspected", step1);
17 InspectorTest.dumpSelectedElementStyles(true, true, true);
18 treeElement = InspectorTest.getElementStylePropertyTreeItem("color");
20 treeElement.startEditing();
21 treeElement.nameElement.textContent = "background";
23 InspectorTest.selectNodeAndWaitForStyles("other", step2);
28 InspectorTest.dumpSelectedElementStyles(true, true, true);
29 InspectorTest.selectNodeAndWaitForStyles("inspected", step3);
34 InspectorTest.dumpSelectedElementStyles(true, true, true);
35 InspectorTest.completeTest();
42 <body onload="runTest()">
44 Tests that changing selected node while editing style does update styles sidebar.
47 <div id="inspected" style="color: red">Text</div>
48 <div id="other" style="color: blue"></div>