| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 } | 126 } |
| 127 | 127 |
| 128 InspectorTest._defaultWorkspaceEventHandler = function(event) | 128 InspectorTest._defaultWorkspaceEventHandler = function(event) |
| 129 { | 129 { |
| 130 var uiSourceCode = event.data; | 130 var uiSourceCode = event.data; |
| 131 var networkURL = WebInspector.networkMapping.networkURL(uiSourceCode); | 131 var networkURL = WebInspector.networkMapping.networkURL(uiSourceCode); |
| 132 if (uiSourceCode.project().type() === WebInspector.projectTypes.Debugger &&
!networkURL) | 132 if (uiSourceCode.project().type() === WebInspector.projectTypes.Debugger &&
!networkURL) |
| 133 return; | 133 return; |
| 134 if (uiSourceCode.project().type() === WebInspector.projectTypes.Service) | 134 if (uiSourceCode.project().type() === WebInspector.projectTypes.Service) |
| 135 return; | 135 return; |
| 136 InspectorTest.addResult("Workspace event: " + event.type + ": " + uiSourceCo
de.url() + "."); | 136 InspectorTest.addResult(`Workspace event: ${event.type.toString()}: ${uiSour
ceCode.url()}.`); |
| 137 } | 137 } |
| 138 | 138 |
| 139 InspectorTest.uiSourceCodeURL = function(uiSourceCode) | 139 InspectorTest.uiSourceCodeURL = function(uiSourceCode) |
| 140 { | 140 { |
| 141 return uiSourceCode.url().replace(/.*LayoutTests/, "LayoutTests"); | 141 return uiSourceCode.url().replace(/.*LayoutTests/, "LayoutTests"); |
| 142 } | 142 } |
| 143 | 143 |
| 144 InspectorTest.dumpUISourceCode = function(uiSourceCode, callback) | 144 InspectorTest.dumpUISourceCode = function(uiSourceCode, callback) |
| 145 { | 145 { |
| 146 InspectorTest.addResult("UISourceCode: " + InspectorTest.uiSourceCodeURL(uiS
ourceCode)); | 146 InspectorTest.addResult("UISourceCode: " + InspectorTest.uiSourceCodeURL(uiS
ourceCode)); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 function uiSourceCodeAdded(event) | 188 function uiSourceCodeAdded(event) |
| 189 { | 189 { |
| 190 if (event.data.name() === name) { | 190 if (event.data.name() === name) { |
| 191 WebInspector.workspace.removeEventListener(WebInspector.Workspace.Ev
ents.UISourceCodeAdded, uiSourceCodeAdded); | 191 WebInspector.workspace.removeEventListener(WebInspector.Workspace.Ev
ents.UISourceCodeAdded, uiSourceCodeAdded); |
| 192 setImmediate(callback); | 192 setImmediate(callback); |
| 193 } | 193 } |
| 194 } | 194 } |
| 195 } | 195 } |
| 196 | 196 |
| 197 }; | 197 }; |
| OLD | NEW |