Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / command-line-api.html
blob99d5f3b5b85a46255aedb7903bbf598bc09522ff
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 src="../../http/tests/inspector/elements-test.js"></script>
6 <script>
8 function assertNoBoundCommandLineAPI()
10 ["__commandLineAPI", "__scopeChainForEval"].forEach(function(name) {
11 console.assert(!(name in window), "FAIL: Should be no " + name);
12 });
15 var test = function()
17 var expressions = [
18 "String($0)",
19 "$3",
20 "String(keys([3,4]))",
21 "String(values([3,4]))",
22 "String($('#foo'))",
23 "String($('#foo', document.body))",
24 "String($('#foo', 'non-node'))",
25 "String($('#foo', $('#bar')))",
26 "String($$('p'))",
27 "String($$('p', document.body))",
28 "String($('foo'))",
29 "console.assert(keys(window).indexOf('__commandLineAPI') === -1)"
32 InspectorTest.selectNodeWithId("foo", step1);
34 function step1(node)
36 var expression = expressions.shift();
37 if (!expression) {
38 step2();
39 return;
41 WebInspector.console.log("");
42 InspectorTest.evaluateInConsole(expression, step1);
45 function step2()
47 InspectorTest.evaluateInPage("assertNoBoundCommandLineAPI()", step3);
50 function step3()
52 InspectorTest.dumpConsoleMessages();
53 InspectorTest.completeTest();
57 </script>
58 </head>
60 <body onload="runTest()">
61 <p id="foo">
62 Tests that command line api works.
63 </p><p id="bar"></p>
65 </body>
66 </html>