Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / console-xpath.html
blobfc57dae7f488ca5c0a16c3d4ae12e1596490ed9a
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script>
7 function test()
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();
26 </script>
27 </head>
29 <body onload="runTest()">
30 <p>
31 Tests $x for iterator and non-iterator types.
32 </p>
34 </body>
35 </html>