3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/elements-test.js"></script>
7 function whitespaceChild()
9 return document
.getElementById("test").firstChild
;
14 InspectorTest
.evaluateInPage("whitespaceChild()", childCallback
);
16 function childCallback(childObject
)
18 InspectorTest
.firstElementsTreeOutline().addEventListener(WebInspector
.ElementsTreeOutline
.Events
.SelectedNodeChanged
, selectedNodeChanged
);
19 WebInspector
.Revealer
.reveal(childObject
);
22 function selectedNodeChanged(event
) {
23 var node
= event
.data
;
24 InspectorTest
.addResult("SelectedNodeChanged: " + node
.localName());
25 InspectorTest
.completeTest();
31 <body onload=
"runTest()">
33 <p id=
"description">This test verifies that revealing a whitespace text node RemoteObject reveals its parentElement DIV.
</p>