| 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 | 5 |
| 6 <script> | 6 <script> |
| 7 // Global Values | 7 // Global Values |
| 8 var globals = []; | 8 var globals = []; |
| 9 | 9 |
| 10 function log(current) | 10 function log(current) |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 { | 107 { |
| 108 var next = current + 1; | 108 var next = current + 1; |
| 109 if (next == total.description) | 109 if (next == total.description) |
| 110 InspectorTest.waitForRemoteObjectsConsoleMessages(onRemoteObject
sLoaded); | 110 InspectorTest.waitForRemoteObjectsConsoleMessages(onRemoteObject
sLoaded); |
| 111 else | 111 else |
| 112 loopOverGlobals(next, total); | 112 loopOverGlobals(next, total); |
| 113 } | 113 } |
| 114 | 114 |
| 115 function onRemoteObjectsLoaded() | 115 function onRemoteObjectsLoaded() |
| 116 { | 116 { |
| 117 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames(); |
| 118 InspectorTest.addResult("Expanded all messages"); |
| 117 InspectorTest.expandConsoleMessages(InspectorTest.expandConsoleMessa
gesErrorParameters.bind(this, finish), undefined, function(section) { return sec
tion.element.firstChild.textContent !== "#text"; }); | 119 InspectorTest.expandConsoleMessages(InspectorTest.expandConsoleMessa
gesErrorParameters.bind(this, finish), undefined, function(section) { return sec
tion.element.firstChild.textContent !== "#text"; }); |
| 118 } | 120 } |
| 119 | 121 |
| 120 function finish() | 122 function finish() |
| 121 { | 123 { |
| 122 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames(); | 124 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames(); |
| 123 InspectorTest.completeTest(); | 125 InspectorTest.completeTest(); |
| 124 } | 126 } |
| 125 | 127 |
| 126 InspectorTest.evaluateInPage("log(" + current + ")"); | 128 InspectorTest.evaluateInPage("log(" + current + ")"); |
| 127 InspectorTest.deprecatedRunAfterPendingDispatches(evalInConsole); | 129 InspectorTest.deprecatedRunAfterPendingDispatches(evalInConsole); |
| 128 function evalInConsole() | 130 function evalInConsole() |
| 129 { | 131 { |
| 130 InspectorTest.evaluateInConsole("globals[" + current + "]"); | 132 InspectorTest.evaluateInConsole("globals[" + current + "]"); |
| 131 InspectorTest.deprecatedRunAfterPendingDispatches(advance); | 133 InspectorTest.deprecatedRunAfterPendingDispatches(advance); |
| 132 } | 134 } |
| 133 } | 135 } |
| 134 } | 136 } |
| 135 </script> | 137 </script> |
| 136 </head> | 138 </head> |
| 137 | 139 |
| 138 <body onload="onload()"> | 140 <body onload="onload()"> |
| 139 <div id="x"></div> | 141 <div id="x"></div> |
| 140 <p id="p">Tests that console logging dumps proper messages.</p> | 142 <p id="p">Tests that console logging dumps proper messages.</p> |
| 141 </body> | 143 </body> |
| 142 <svg id="svg-node"></svg> | 144 <svg id="svg-node"></svg> |
| 143 </html> | 145 </html> |
| OLD | NEW |