| OLD | NEW |
| 1 if (window.GCController) | 1 if (window.GCController) |
| 2 GCController.collectAll(); | 2 GCController.collectAll(); |
| 3 | 3 |
| 4 var initialize_InspectorTest = function() { | 4 var initialize_InspectorTest = function() { |
| 5 Protocol.InspectorBackend.Options.suppressRequestErrors = true; | 5 Protocol.InspectorBackend.Options.suppressRequestErrors = true; |
| 6 var results = []; | 6 var results = []; |
| 7 | 7 |
| 8 function consoleOutputHook(messageType) | 8 function consoleOutputHook(messageType) |
| 9 { | 9 { |
| 10 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); | 10 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 callback(); | 536 callback(); |
| 537 } | 537 } |
| 538 InspectorTest._pageLoadedCallback = InspectorTest.safeWrap(chainedCallback); | 538 InspectorTest._pageLoadedCallback = InspectorTest.safeWrap(chainedCallback); |
| 539 } | 539 } |
| 540 | 540 |
| 541 InspectorTest.deprecatedRunAfterPendingDispatches = function(callback) | 541 InspectorTest.deprecatedRunAfterPendingDispatches = function(callback) |
| 542 { | 542 { |
| 543 var barrier = new CallbackBarrier(); | 543 var barrier = new CallbackBarrier(); |
| 544 var targets = SDK.targetManager.targets(); | 544 var targets = SDK.targetManager.targets(); |
| 545 for (var i = 0; i < targets.length; ++i) | 545 for (var i = 0; i < targets.length; ++i) |
| 546 targets[i]._deprecatedRunAfterPendingDispatches(barrier.createCallback()
); | 546 targets[i]._dispatcher._deprecatedRunAfterPendingDispatches(barrier.crea
teCallback()); |
| 547 barrier.callWhenDone(InspectorTest.safeWrap(callback)); | 547 barrier.callWhenDone(InspectorTest.safeWrap(callback)); |
| 548 } | 548 } |
| 549 | 549 |
| 550 InspectorTest.createKeyEvent = function(key, ctrlKey, altKey, shiftKey, metaKey) | 550 InspectorTest.createKeyEvent = function(key, ctrlKey, altKey, shiftKey, metaKey) |
| 551 { | 551 { |
| 552 return new KeyboardEvent("keydown", {key: key, bubbles: true, cancelable: tr
ue, ctrlKey: ctrlKey, altKey: altKey, shiftKey: shiftKey, metaKey: metaKey}); | 552 return new KeyboardEvent("keydown", {key: key, bubbles: true, cancelable: tr
ue, ctrlKey: ctrlKey, altKey: altKey, shiftKey: shiftKey, metaKey: metaKey}); |
| 553 } | 553 } |
| 554 | 554 |
| 555 InspectorTest.runTestSuite = function(testSuite) | 555 InspectorTest.runTestSuite = function(testSuite) |
| 556 { | 556 { |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 962 this._timeoutIdToProcess = {}; | 962 this._timeoutIdToProcess = {}; |
| 963 this._timeoutIdToMillis = {}; | 963 this._timeoutIdToMillis = {}; |
| 964 } | 964 } |
| 965 } | 965 } |
| 966 | 966 |
| 967 SDK.targetManager.observeTargets({ | 967 SDK.targetManager.observeTargets({ |
| 968 targetAdded: function(target) | 968 targetAdded: function(target) |
| 969 { | 969 { |
| 970 if (InspectorTest.CSSAgent) | 970 if (InspectorTest.CSSAgent) |
| 971 return; | 971 return; |
| 972 InspectorTest.CSSAgent = target.cssAgent(); | 972 InspectorTest.CSSAgent = target._dispatcher.cssAgent(); |
| 973 InspectorTest.DeviceOrientationAgent = target.deviceOrientationAgent(); | 973 InspectorTest.DeviceOrientationAgent = target._dispatcher.deviceOrientat
ionAgent(); |
| 974 InspectorTest.DOMAgent = target.domAgent(); | 974 InspectorTest.DOMAgent = target._dispatcher.domAgent(); |
| 975 InspectorTest.DOMDebuggerAgent = target.domdebuggerAgent(); | 975 InspectorTest.DOMDebuggerAgent = target._dispatcher.domdebuggerAgent(); |
| 976 InspectorTest.DebuggerAgent = target.debuggerAgent(); | 976 InspectorTest.DebuggerAgent = target._dispatcher.debuggerAgent(); |
| 977 InspectorTest.EmulationAgent = target.emulationAgent(); | 977 InspectorTest.EmulationAgent = target._dispatcher.emulationAgent(); |
| 978 InspectorTest.HeapProfilerAgent = target.heapProfilerAgent(); | 978 InspectorTest.HeapProfilerAgent = target._dispatcher.heapProfilerAgent()
; |
| 979 InspectorTest.InspectorAgent = target.inspectorAgent(); | 979 InspectorTest.InspectorAgent = target._dispatcher.inspectorAgent(); |
| 980 InspectorTest.NetworkAgent = target.networkAgent(); | 980 InspectorTest.NetworkAgent = target._dispatcher.networkAgent(); |
| 981 InspectorTest.OverlayAgent = target.overlayAgent(); | 981 InspectorTest.OverlayAgent = target._dispatcher.overlayAgent(); |
| 982 InspectorTest.PageAgent = target.pageAgent(); | 982 InspectorTest.PageAgent = target._dispatcher.pageAgent(); |
| 983 InspectorTest.ProfilerAgent = target.profilerAgent(); | 983 InspectorTest.ProfilerAgent = target._dispatcher.profilerAgent(); |
| 984 InspectorTest.RuntimeAgent = target.runtimeAgent(); | 984 InspectorTest.RuntimeAgent = target._dispatcher.runtimeAgent(); |
| 985 InspectorTest.TargetAgent = target.targetAgent(); | 985 InspectorTest.TargetAgent = target._dispatcher.targetAgent(); |
| 986 | 986 |
| 987 InspectorTest.networkManager = target.model(SDK.NetworkManager); | 987 InspectorTest.networkManager = target.model(SDK.NetworkManager); |
| 988 InspectorTest.securityOriginManager = target.model(SDK.SecurityOriginMan
ager); | 988 InspectorTest.securityOriginManager = target.model(SDK.SecurityOriginMan
ager); |
| 989 InspectorTest.resourceTreeModel = target.model(SDK.ResourceTreeModel); | 989 InspectorTest.resourceTreeModel = target.model(SDK.ResourceTreeModel); |
| 990 InspectorTest.debuggerModel = target.model(SDK.DebuggerModel); | 990 InspectorTest.debuggerModel = target.model(SDK.DebuggerModel); |
| 991 InspectorTest.runtimeModel = target.model(SDK.RuntimeModel); | 991 InspectorTest.runtimeModel = target.model(SDK.RuntimeModel); |
| 992 InspectorTest.domModel = target.model(SDK.DOMModel); | 992 InspectorTest.domModel = target.model(SDK.DOMModel); |
| 993 InspectorTest.domDebuggerModel = target.model(SDK.DOMDebuggerModel); | 993 InspectorTest.domDebuggerModel = target.model(SDK.DOMDebuggerModel); |
| 994 InspectorTest.cssModel = target.model(SDK.CSSModel); | 994 InspectorTest.cssModel = target.model(SDK.CSSModel); |
| 995 InspectorTest.cpuProfilerModel = target.model(SDK.CPUProfilerModel); | 995 InspectorTest.cpuProfilerModel = target.model(SDK.CPUProfilerModel); |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1248 _output("[page] " + text); | 1248 _output("[page] " + text); |
| 1249 } | 1249 } |
| 1250 | 1250 |
| 1251 function _output(result) | 1251 function _output(result) |
| 1252 { | 1252 { |
| 1253 if (!outputElement) | 1253 if (!outputElement) |
| 1254 createOutputElement(); | 1254 createOutputElement(); |
| 1255 outputElement.appendChild(document.createTextNode(result)); | 1255 outputElement.appendChild(document.createTextNode(result)); |
| 1256 outputElement.appendChild(document.createElement("br")); | 1256 outputElement.appendChild(document.createElement("br")); |
| 1257 } | 1257 } |
| OLD | NEW |