| 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> | 5 <script> |
| 6 | 6 |
| 7 var globals = []; | 7 var globals = []; |
| 8 | 8 |
| 9 function log(current) | 9 function log(current) |
| 10 { | 10 { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 function test() | 63 function test() |
| 64 { | 64 { |
| 65 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0)
); | 65 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0)
); |
| 66 | 66 |
| 67 function loopOverGlobals(current, total) | 67 function loopOverGlobals(current, total) |
| 68 { | 68 { |
| 69 function advance() | 69 function advance() |
| 70 { | 70 { |
| 71 var next = current + 1; | 71 var next = current + 1; |
| 72 if (next == total.description) | 72 if (next == total.description) |
| 73 InspectorTest.expandConsoleMessages(finish); | 73 finish(); |
| 74 else | 74 else |
| 75 loopOverGlobals(next, total); | 75 loopOverGlobals(next, total); |
| 76 } | 76 } |
| 77 | 77 |
| 78 function finish() | 78 function finish() |
| 79 { | 79 { |
| 80 InspectorTest.dumpConsoleMessages(false, false, InspectorTest.textCo
ntentWithLineBreaks); |
| 81 InspectorTest.addResult("Expanded all messages"); |
| 80 InspectorTest.expandConsoleMessages(dumpConsoleMessages); | 82 InspectorTest.expandConsoleMessages(dumpConsoleMessages); |
| 81 } | 83 } |
| 82 | 84 |
| 83 function dumpConsoleMessages() | 85 function dumpConsoleMessages() |
| 84 { | 86 { |
| 85 InspectorTest.dumpConsoleMessages(false, false, InspectorTest.textCo
ntentWithLineBreaks); | 87 InspectorTest.dumpConsoleMessages(false, false, InspectorTest.textCo
ntentWithLineBreaks); |
| 86 InspectorTest.completeTest(); | 88 InspectorTest.completeTest(); |
| 87 } | 89 } |
| 88 | 90 |
| 89 InspectorTest.evaluateInPage("log(" + current + ")"); | 91 InspectorTest.evaluateInPage("log(" + current + ")"); |
| 90 InspectorTest.deprecatedRunAfterPendingDispatches(evalInConsole); | 92 InspectorTest.deprecatedRunAfterPendingDispatches(evalInConsole); |
| 91 function evalInConsole() | 93 function evalInConsole() |
| 92 { | 94 { |
| 93 InspectorTest.evaluateInConsole("globals[" + current + "]"); | 95 InspectorTest.evaluateInConsole("globals[" + current + "]"); |
| 94 InspectorTest.deprecatedRunAfterPendingDispatches(advance); | 96 InspectorTest.deprecatedRunAfterPendingDispatches(advance); |
| 95 } | 97 } |
| 96 } | 98 } |
| 97 } | 99 } |
| 98 </script> | 100 </script> |
| 99 </head> | 101 </head> |
| 100 | 102 |
| 101 <body onload="onload()"> | 103 <body onload="onload()"> |
| 102 <p> | 104 <p> |
| 103 Tests that console properly displays information about ES6 features. | 105 Tests that console properly displays information about ES6 features. |
| 104 </p> | 106 </p> |
| 105 </body> | 107 </body> |
| 106 </html> | 108 </html> |
| OLD | NEW |