3 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../../http/tests/inspector/elements-test.js"></script>
9 InspectorTest
.runTestSuite([
10 function selectInitialNode(next
)
12 InspectorTest
.selectNodeAndWaitForStyles("inspected", next
);
15 function editSelector(next
)
17 var section
= InspectorTest
.firstMatchedStyleSection();
18 section
.startEditingSelector();
19 section
._selectorElement
.textContent
= "#inspected, .INSERTED-OTHER-SELECTOR";
20 InspectorTest
.waitForSelectorCommitted(next
);
21 section
._selectorElement
.dispatchEvent(InspectorTest
.createKeyEvent("Enter"));
24 function testDisableProperty(next
)
26 var treeItem
= InspectorTest
.getMatchedStylePropertyTreeItem("color");
27 InspectorTest
.waitForStyleApplied(onPropertyDisabled
);
28 treeItem
._toggleEnabled({ target
: { checked
: false }, consume: function() { } });
30 function onPropertyDisabled()
32 InspectorTest
.addResult("\n\n#### AFTER PROPERTY DISABLED ####\n\n");
33 InspectorTest
.dumpSelectedElementStyles(true, false, true);
47 <body onload=
"runTest()">
49 Verifies that sequence of setting selector and disabling property works.
52 <div id=
"inspected">Red text here.
</div>