3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/console-test.js"></script>
9 InspectorTest
.addConsoleViewSniffer(addMessageSniffer
, true);
11 InspectorTest
.evaluateInConsole("$x('42')"); // number
12 InspectorTest
.evaluateInConsole("$x('name(/html)')"); // string
13 InspectorTest
.evaluateInConsole("$x('not(42)')"); // boolean
14 InspectorTest
.evaluateInConsole("$x('/html/body/p').length"); // node iterator
15 InspectorTest
.evaluateInPage("console.log('complete')"); // node iterator
17 function addMessageSniffer(uiMessage
)
19 if (uiMessage
.toString().indexOf("complete") !== -1) {
20 InspectorTest
.dumpConsoleMessages();
21 InspectorTest
.completeTest();
29 <body onload=
"runTest()">
31 Tests $x for iterator and non-iterator types.