3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/elements-test.js"></script>
8 if (!window
.eventSender
) {
9 console
.log("This test requires test shell");
12 eventSender
.mouseMoveTo(2, 2);
13 eventSender
.mouseDown(0);
14 eventSender
.mouseUp(0);
19 InspectorTest
.domModel
.setInspectMode(DOMAgent
.InspectMode
.SearchForNode
, inspectModeEnabled
.bind(this));
21 function inspectModeEnabled()
23 WebInspector
.notifications
.addEventListener(WebInspector
.NotificationService
.Events
.SelectedNodeChanged
, selectedNodeChanged
, this);
24 InspectorTest
.evaluateInPage("clickPseudo()");
27 function selectedNodeChanged()
29 var selectedNode
= InspectorTest
.firstElementsTreeOutline().selectedDOMNode();
31 InspectorTest
.addResult("<no selected node>");
33 InspectorTest
.addResult("Selected node pseudo type: " + selectedNode
.pseudoType());
34 InspectorTest
.completeTest();
51 <body onload=
"runTest()">
52 <div id=
"inspected">Test
</div>