| 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 <script> | 6 <script> |
| 6 | |
| 7 // Global Values | 7 // Global Values |
| 8 var globals = []; | 8 var globals = []; |
| 9 | 9 |
| 10 function log(current) | 10 function log(current) |
| 11 { | 11 { |
| 12 console.log(globals[current]); | 12 console.log(globals[current]); |
| 13 console.log([globals[current]]); | 13 console.log([globals[current]]); |
| 14 } | 14 } |
| 15 | 15 |
| 16 function onload() | 16 function onload() |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 try { | 85 try { |
| 86 var a = document.createElement("div"); | 86 var a = document.createElement("div"); |
| 87 var b = document.createElement("div"); | 87 var b = document.createElement("div"); |
| 88 a.removeChild(b); | 88 a.removeChild(b); |
| 89 } catch(e) { | 89 } catch(e) { |
| 90 e.stack = ""; | 90 e.stack = ""; |
| 91 result = e; | 91 result = e; |
| 92 } | 92 } |
| 93 return result; | 93 return result; |
| 94 } | 94 } |
| 95 //# sourceURL=console-format.html |
| 96 </script> |
| 95 | 97 |
| 98 <script> |
| 96 function test() | 99 function test() |
| 97 { | 100 { |
| 98 InspectorTest.hideInspectorView(); | 101 InspectorTest.hideInspectorView(); |
| 99 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0)
); | 102 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0)
); |
| 100 | 103 |
| 101 function loopOverGlobals(current, total) | 104 function loopOverGlobals(current, total) |
| 102 { | 105 { |
| 103 function advance() | 106 function advance() |
| 104 { | 107 { |
| 105 var next = current + 1; | 108 var next = current + 1; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 131 } | 134 } |
| 132 </script> | 135 </script> |
| 133 </head> | 136 </head> |
| 134 | 137 |
| 135 <body onload="onload()"> | 138 <body onload="onload()"> |
| 136 <div id="x"></div> | 139 <div id="x"></div> |
| 137 <p id="p">Tests that console logging dumps proper messages.</p> | 140 <p id="p">Tests that console logging dumps proper messages.</p> |
| 138 </body> | 141 </body> |
| 139 <svg id="svg-node"></svg> | 142 <svg id="svg-node"></svg> |
| 140 </html> | 143 </html> |
| OLD | NEW |