| OLD | NEW |
| 1 if (window.GCController) | 1 if (window.GCController) |
| 2 GCController.collectAll(); | 2 GCController.collectAll(); |
| 3 var initialize_InspectorTest = function() { | 3 var initialize_InspectorTest = function() { |
| 4 | 4 |
| 5 var results = []; | 5 var results = []; |
| 6 | 6 |
| 7 function consoleOutputHook(messageType) | 7 function consoleOutputHook(messageType) |
| 8 { | 8 { |
| 9 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); | 9 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); |
| 10 } | 10 } |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 callback(); | 452 callback(); |
| 453 } | 453 } |
| 454 InspectorTest._pageLoadedCallback = InspectorTest.safeWrap(chainedCallback); | 454 InspectorTest._pageLoadedCallback = InspectorTest.safeWrap(chainedCallback); |
| 455 } | 455 } |
| 456 | 456 |
| 457 InspectorTest.deprecatedRunAfterPendingDispatches = function(callback) | 457 InspectorTest.deprecatedRunAfterPendingDispatches = function(callback) |
| 458 { | 458 { |
| 459 var barrier = new CallbackBarrier(); | 459 var barrier = new CallbackBarrier(); |
| 460 var targets = WebInspector.targetManager.targets(); | 460 var targets = WebInspector.targetManager.targets(); |
| 461 for (var i = 0; i < targets.length; ++i) | 461 for (var i = 0; i < targets.length; ++i) |
| 462 targets[i]._connection.deprecatedRunAfterPendingDispatches(barrier.creat
eCallback()); | 462 targets[i]._targetProto._deprecatedRunAfterPendingDispatches(barrier.cre
ateCallback()); |
| 463 barrier.callWhenDone(InspectorTest.safeWrap(callback)); | 463 barrier.callWhenDone(InspectorTest.safeWrap(callback)); |
| 464 } | 464 } |
| 465 | 465 |
| 466 InspectorTest.createKeyEvent = function(key, ctrlKey, altKey, shiftKey, metaKey) | 466 InspectorTest.createKeyEvent = function(key, ctrlKey, altKey, shiftKey, metaKey) |
| 467 { | 467 { |
| 468 return new KeyboardEvent("keydown", {key: key, bubbles: true, cancelable: tr
ue, ctrlKey: ctrlKey, altKey: altKey, shiftKey: shiftKey, metaKey: metaKey}); | 468 return new KeyboardEvent("keydown", {key: key, bubbles: true, cancelable: tr
ue, ctrlKey: ctrlKey, altKey: altKey, shiftKey: shiftKey, metaKey: metaKey}); |
| 469 } | 469 } |
| 470 | 470 |
| 471 InspectorTest.runTestSuite = function(testSuite) | 471 InspectorTest.runTestSuite = function(testSuite) |
| 472 { | 472 { |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 InspectorTest.cssModel = WebInspector.CSSModel.fromTarget(target); | 911 InspectorTest.cssModel = WebInspector.CSSModel.fromTarget(target); |
| 912 InspectorTest.workerManager = target.workerManager; | 912 InspectorTest.workerManager = target.workerManager; |
| 913 InspectorTest.powerProfiler = target.powerProfiler; | 913 InspectorTest.powerProfiler = target.powerProfiler; |
| 914 InspectorTest.cpuProfilerModel = target.cpuProfilerModel; | 914 InspectorTest.cpuProfilerModel = target.cpuProfilerModel; |
| 915 InspectorTest.heapProfilerModel = target.heapProfilerModel; | 915 InspectorTest.heapProfilerModel = target.heapProfilerModel; |
| 916 InspectorTest.animationModel = target.animationModel; | 916 InspectorTest.animationModel = target.animationModel; |
| 917 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel; | 917 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel; |
| 918 InspectorTest.serviceWorkerManager = target.serviceWorkerManager; | 918 InspectorTest.serviceWorkerManager = target.serviceWorkerManager; |
| 919 InspectorTest.tracingManager = target.tracingManager; | 919 InspectorTest.tracingManager = target.tracingManager; |
| 920 InspectorTest.mainTarget = target; | 920 InspectorTest.mainTarget = target; |
| 921 InspectorTest.connection = target._connection; | 921 InspectorTest.connection = target._targetProto; |
| 922 }, | 922 }, |
| 923 | 923 |
| 924 targetRemoved: function(target) { } | 924 targetRemoved: function(target) { } |
| 925 }); | 925 }); |
| 926 | 926 |
| 927 InspectorTest._panelsToPreload = []; | 927 InspectorTest._panelsToPreload = []; |
| 928 | 928 |
| 929 InspectorTest.preloadPanel = function(panelName) | 929 InspectorTest.preloadPanel = function(panelName) |
| 930 { | 930 { |
| 931 InspectorTest._panelsToPreload.push(panelName); | 931 InspectorTest._panelsToPreload.push(panelName); |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1165 _output("[page] " + text); | 1165 _output("[page] " + text); |
| 1166 } | 1166 } |
| 1167 | 1167 |
| 1168 function _output(result) | 1168 function _output(result) |
| 1169 { | 1169 { |
| 1170 if (!outputElement) | 1170 if (!outputElement) |
| 1171 createOutputElement(); | 1171 createOutputElement(); |
| 1172 outputElement.appendChild(document.createTextNode(result)); | 1172 outputElement.appendChild(document.createTextNode(result)); |
| 1173 outputElement.appendChild(document.createElement("br")); | 1173 outputElement.appendChild(document.createElement("br")); |
| 1174 } | 1174 } |
| OLD | NEW |