| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../http/tests/inspector/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> |
| 5 <script src="../../http/tests/inspector/elements-test.js"></script> | 5 <script src="../../http/tests/inspector/elements-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function assertNoBoundCommandLineAPI() | 8 function assertNoBoundCommandLineAPI() |
| 9 { | 9 { |
| 10 ["__commandLineAPI", "__scopeChainForEval"].forEach(function(name) { | 10 ["__commandLineAPI", "__scopeChainForEval"].forEach(function(name) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 InspectorTest.selectNodeWithId("foo", step1); | 32 InspectorTest.selectNodeWithId("foo", step1); |
| 33 | 33 |
| 34 function step1(node) | 34 function step1(node) |
| 35 { | 35 { |
| 36 var expression = expressions.shift(); | 36 var expression = expressions.shift(); |
| 37 if (!expression) { | 37 if (!expression) { |
| 38 step2(); | 38 step2(); |
| 39 return; | 39 return; |
| 40 } | 40 } |
| 41 WebInspector.console.log(""); | 41 Common.console.log(""); |
| 42 InspectorTest.evaluateInConsole(expression, step1); | 42 InspectorTest.evaluateInConsole(expression, step1); |
| 43 } | 43 } |
| 44 | 44 |
| 45 function step2() | 45 function step2() |
| 46 { | 46 { |
| 47 InspectorTest.evaluateInPage("assertNoBoundCommandLineAPI()", step3); | 47 InspectorTest.evaluateInPage("assertNoBoundCommandLineAPI()", step3); |
| 48 } | 48 } |
| 49 | 49 |
| 50 function step3() | 50 function step3() |
| 51 { | 51 { |
| 52 InspectorTest.dumpConsoleMessages(); | 52 InspectorTest.dumpConsoleMessages(); |
| 53 InspectorTest.completeTest(); | 53 InspectorTest.completeTest(); |
| 54 } | 54 } |
| 55 } | 55 } |
| 56 | 56 |
| 57 </script> | 57 </script> |
| 58 </head> | 58 </head> |
| 59 | 59 |
| 60 <body onload="runTest()"> | 60 <body onload="runTest()"> |
| 61 <p id="foo"> | 61 <p id="foo"> |
| 62 Tests that command line api works. | 62 Tests that command line api works. |
| 63 </p><p id="bar"></p> | 63 </p><p id="bar"></p> |
| 64 | 64 |
| 65 </body> | 65 </body> |
| 66 </html> | 66 </html> |
| OLD | NEW |