3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/console-test.js"></script>
5 <script src=
"../../http/tests/inspector/elements-test.js"></script>
8 function assertNoBoundCommandLineAPI()
10 ["__commandLineAPI", "__scopeChainForEval"].forEach(function(name
) {
11 console
.assert(!(name
in window
), "FAIL: Should be no " + name
);
20 "String(keys([3,4]))",
21 "String(values([3,4]))",
23 "String($('#foo', document.body))",
24 "String($('#foo', 'non-node'))",
25 "String($('#foo', $('#bar')))",
27 "String($$('p', document.body))",
29 "console.assert(keys(window).indexOf('__commandLineAPI') === -1)"
32 InspectorTest
.selectNodeWithId("foo", step1
);
36 var expression
= expressions
.shift();
41 WebInspector
.console
.log("");
42 InspectorTest
.evaluateInConsole(expression
, step1
);
47 InspectorTest
.evaluateInPage("assertNoBoundCommandLineAPI()", step3
);
52 InspectorTest
.dumpConsoleMessages();
53 InspectorTest
.completeTest();
60 <body onload=
"runTest()">
62 Tests that command line api works.