| 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 originalError = window.Error; | 7 var originalError = window.Error; |
| 8 | 8 |
| 9 (function() { | 9 (function() { |
| 10 var originalFunctionCall = Function.prototype.call; | 10 var originalFunctionCall = Function.prototype.call; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 "testOverriddenToString({}, true)", | 139 "testOverriddenToString({}, true)", |
| 140 "testOverriddenToString({}, false)", | 140 "testOverriddenToString({}, false)", |
| 141 "testOverriddenToString(new Number(1), true)", | 141 "testOverriddenToString(new Number(1), true)", |
| 142 "testOverriddenToString(new Number(1), false)", | 142 "testOverriddenToString(new Number(1), false)", |
| 143 ]; | 143 ]; |
| 144 | 144 |
| 145 function iterate() | 145 function iterate() |
| 146 { | 146 { |
| 147 var expr = expressions.shift(); | 147 var expr = expressions.shift(); |
| 148 if (!expr) { | 148 if (!expr) { |
| 149 InspectorTest.runAfterPendingDispatches(next); | 149 InspectorTest.deprecatedRunAfterPendingDispatches(next); |
| 150 return; | 150 return; |
| 151 } | 151 } |
| 152 InspectorTest.evaluateInConsole(expr, iterate); | 152 InspectorTest.evaluateInConsole(expr, iterate); |
| 153 } | 153 } |
| 154 iterate(); | 154 iterate(); |
| 155 }, | 155 }, |
| 156 | 156 |
| 157 function testRuntimeAgentCallFunctionOn(next) | 157 function testRuntimeAgentCallFunctionOn(next) |
| 158 { | 158 { |
| 159 InspectorTest.RuntimeAgent.evaluate("({ a : 1, b : 2 })", step1); | 159 InspectorTest.RuntimeAgent.evaluate("({ a : 1, b : 2 })", step1); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 184 </script> | 184 </script> |
| 185 </head> | 185 </head> |
| 186 | 186 |
| 187 <body onload="runTest()"> | 187 <body onload="runTest()"> |
| 188 <p> | 188 <p> |
| 189 Tests that overriding global methods (like Array.prototype.push, Math.max) will
not break the inspector. | 189 Tests that overriding global methods (like Array.prototype.push, Math.max) will
not break the inspector. |
| 190 </p> | 190 </p> |
| 191 | 191 |
| 192 </body> | 192 </body> |
| 193 </html> | 193 </html> |
| OLD | NEW |