| OLD | NEW |
| 1 var initialize_WorkspaceTest = function() { | 1 var initialize_WorkspaceTest = function() { |
| 2 | 2 |
| 3 InspectorTest.createWorkspace = function(ignoreEvents) | 3 InspectorTest.createWorkspace = function(ignoreEvents) |
| 4 { | 4 { |
| 5 if (InspectorTest.testFileSystemWorkspaceBinding) | 5 if (InspectorTest.testFileSystemWorkspaceBinding) |
| 6 InspectorTest.testFileSystemWorkspaceBinding.dispose(); | 6 InspectorTest.testFileSystemWorkspaceBinding.dispose(); |
| 7 if (InspectorTest.testNetworkMapping) | 7 if (InspectorTest.testNetworkMapping) |
| 8 InspectorTest.testNetworkMapping.dispose(); | 8 InspectorTest.testNetworkMapping.dispose(); |
| 9 WebInspector.fileSystemMapping.resetForTesting(); | 9 WebInspector.fileSystemMapping.resetForTesting(); |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 InspectorTest.createMockTarget = function(id, debuggerModelConstructor, capabili
ties) | 38 InspectorTest.createMockTarget = function(id, debuggerModelConstructor, capabili
ties) |
| 39 { | 39 { |
| 40 capabilities = capabilities || (WebInspector.Target.Capability.Browser | Web
Inspector.Target.Capability.JS | WebInspector.Target.Capability.Network | WebIns
pector.Target.Capability.Worker); | 40 capabilities = capabilities || (WebInspector.Target.Capability.Browser | Web
Inspector.Target.Capability.JS | WebInspector.Target.Capability.Network | WebIns
pector.Target.Capability.Worker); |
| 41 var MockTarget = function(name, connection, callback) | 41 var MockTarget = function(name, connection, callback) |
| 42 { | 42 { |
| 43 WebInspector.Target.call(this, InspectorTest.testTargetManager, name, ca
pabilities, connection, null, callback); | 43 WebInspector.Target.call(this, InspectorTest.testTargetManager, name, ca
pabilities, connection, null, callback); |
| 44 this.consoleModel = new WebInspector.ConsoleModel(this); | 44 this.consoleModel = new WebInspector.ConsoleModel(this); |
| 45 this.networkManager = new WebInspector.NetworkManager(this); | 45 this.networkManager = new WebInspector.NetworkManager(this); |
| 46 this.runtimeModel = new WebInspector.RuntimeModel(this); | 46 this.runtimeModel = new WebInspector.RuntimeModel(this); |
| 47 this.resourceTreeModel = new WebInspector.ResourceTreeModel(this); | 47 this.securityOriginManager = WebInspector.SecurityOriginManager.fromTarg
et(this); |
| 48 this.resourceTreeModel = new WebInspector.ResourceTreeModel(this, this.n
etworkManager, this.securityOriginManager); |
| 48 this.resourceTreeModel._inspectedPageURL = InspectorTest.resourceTreeMod
el._inspectedPageURL; | 49 this.resourceTreeModel._inspectedPageURL = InspectorTest.resourceTreeMod
el._inspectedPageURL; |
| 49 this.resourceTreeModel._cachedResourcesProcessed = true; | 50 this.resourceTreeModel._cachedResourcesProcessed = true; |
| 50 this.resourceTreeModel._frameAttached("42", 0); | 51 this.resourceTreeModel._frameAttached("42", 0); |
| 51 this.debuggerModel = debuggerModelConstructor ? new debuggerModelConstru
ctor(this) : new WebInspector.DebuggerModel(this); | 52 this.debuggerModel = debuggerModelConstructor ? new debuggerModelConstru
ctor(this) : new WebInspector.DebuggerModel(this); |
| 52 this._modelByConstructor.set(WebInspector.DebuggerModel, this.debuggerMo
del); | 53 this._modelByConstructor.set(WebInspector.DebuggerModel, this.debuggerMo
del); |
| 53 this.domModel = new WebInspector.DOMModel(this); | 54 this.domModel = new WebInspector.DOMModel(this); |
| 54 this.cssModel = new WebInspector.CSSModel(this); | 55 this.cssModel = new WebInspector.CSSModel(this); |
| 55 } | 56 } |
| 56 | 57 |
| 57 MockTarget.prototype = { | 58 MockTarget.prototype = { |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 function uiSourceCodeAdded(event) | 188 function uiSourceCodeAdded(event) |
| 188 { | 189 { |
| 189 if (event.data.name() === name) { | 190 if (event.data.name() === name) { |
| 190 WebInspector.workspace.removeEventListener(WebInspector.Workspace.Ev
ents.UISourceCodeAdded, uiSourceCodeAdded); | 191 WebInspector.workspace.removeEventListener(WebInspector.Workspace.Ev
ents.UISourceCodeAdded, uiSourceCodeAdded); |
| 191 setImmediate(callback); | 192 setImmediate(callback); |
| 192 } | 193 } |
| 193 } | 194 } |
| 194 } | 195 } |
| 195 | 196 |
| 196 }; | 197 }; |
| OLD | NEW |