| OLD | NEW |
| 1 var initialize_InspectorTest = function() { | 1 var initialize_InspectorTest = function() { |
| 2 | 2 |
| 3 var results = []; | 3 var results = []; |
| 4 var resultsSynchronized = false; | 4 var resultsSynchronized = false; |
| 5 | 5 |
| 6 function consoleOutputHook(messageType) | 6 function consoleOutputHook(messageType) |
| 7 { | 7 { |
| 8 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); | 8 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 | 254 |
| 255 InspectorTest.reloadPage = function(callback, scriptToEvaluateOnLoad, scriptPrep
rocessor) | 255 InspectorTest.reloadPage = function(callback, scriptToEvaluateOnLoad, scriptPrep
rocessor) |
| 256 { | 256 { |
| 257 InspectorTest._innerReloadPage(false, callback, scriptToEvaluateOnLoad, scri
ptPreprocessor); | 257 InspectorTest._innerReloadPage(false, callback, scriptToEvaluateOnLoad, scri
ptPreprocessor); |
| 258 } | 258 } |
| 259 | 259 |
| 260 InspectorTest._innerReloadPage = function(hardReload, callback, scriptToEvaluate
OnLoad, scriptPreprocessor) | 260 InspectorTest._innerReloadPage = function(hardReload, callback, scriptToEvaluate
OnLoad, scriptPreprocessor) |
| 261 { | 261 { |
| 262 InspectorTest._pageLoadedCallback = InspectorTest.safeWrap(callback); | 262 InspectorTest._pageLoadedCallback = InspectorTest.safeWrap(callback); |
| 263 | 263 |
| 264 if (WebInspector.panels.network) | 264 if (WebInspector.inspectorView.panel("network")) |
| 265 WebInspector.panels.network._reset(); | 265 WebInspector.inspectorView.panel("network")._reset(); |
| 266 PageAgent.reload(hardReload, scriptToEvaluateOnLoad, scriptPreprocessor); | 266 PageAgent.reload(hardReload, scriptToEvaluateOnLoad, scriptPreprocessor); |
| 267 } | 267 } |
| 268 | 268 |
| 269 InspectorTest.pageLoaded = function() | 269 InspectorTest.pageLoaded = function() |
| 270 { | 270 { |
| 271 resultsSynchronized = false; | 271 resultsSynchronized = false; |
| 272 InspectorTest.addResult("Page reloaded."); | 272 InspectorTest.addResult("Page reloaded."); |
| 273 if (InspectorTest._pageLoadedCallback) { | 273 if (InspectorTest._pageLoadedCallback) { |
| 274 var callback = InspectorTest._pageLoadedCallback; | 274 var callback = InspectorTest._pageLoadedCallback; |
| 275 delete InspectorTest._pageLoadedCallback; | 275 delete InspectorTest._pageLoadedCallback; |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 evaluateInWebInspector: function(callId, script) | 764 evaluateInWebInspector: function(callId, script) |
| 765 { | 765 { |
| 766 window.opener.postMessage(["evaluateInWebInspector", callId, script], "*
"); | 766 window.opener.postMessage(["evaluateInWebInspector", callId, script], "*
"); |
| 767 }, | 767 }, |
| 768 | 768 |
| 769 display: function() { } | 769 display: function() { } |
| 770 } | 770 } |
| 771 | 771 |
| 772 if (!window.testRunner && window.opener) | 772 if (!window.testRunner && window.opener) |
| 773 window.testRunner = new StandaloneTestRunnerStub(); | 773 window.testRunner = new StandaloneTestRunnerStub(); |
| OLD | NEW |