| 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 WebInspector.settings.createSetting("fileSystemMapping", {}).set({}); |
| 5 InspectorTest.testFileSystemMapping = new WebInspector.FileSystemMapping(); | 6 InspectorTest.testFileSystemMapping = new WebInspector.FileSystemMapping(); |
| 6 InspectorTest.testFileSystemMapping._fileSystemMappingSetting = new Inspecto
rTest.MockSetting({}); | 7 InspectorTest.testFileSystemMapping._fileSystemMappingSetting = new Inspecto
rTest.MockSetting({}); |
| 7 InspectorTest.testFileSystemMapping._excludedFoldersSetting = new InspectorT
est.MockSetting({}); | 8 InspectorTest.testFileSystemMapping._excludedFoldersSetting = new InspectorT
est.MockSetting({}); |
| 8 | 9 |
| 9 InspectorTest.testWorkspace = new WebInspector.Workspace(InspectorTest.testF
ileSystemMapping); | 10 InspectorTest.testWorkspace = new WebInspector.Workspace(InspectorTest.testF
ileSystemMapping); |
| 10 InspectorTest.testNetworkWorkspaceBinding = new WebInspector.NetworkWorkspac
eBinding(InspectorTest.testWorkspace); | 11 InspectorTest.testNetworkWorkspaceBinding = new WebInspector.NetworkWorkspac
eBinding(InspectorTest.testWorkspace); |
| 11 if (ignoreEvents) | 12 if (ignoreEvents) |
| 12 return; | 13 return; |
| 13 InspectorTest.testWorkspace.addEventListener(WebInspector.Workspace.Events.U
ISourceCodeAdded, InspectorTest._defaultWorkspaceEventHandler); | 14 InspectorTest.testWorkspace.addEventListener(WebInspector.Workspace.Events.U
ISourceCodeAdded, InspectorTest._defaultWorkspaceEventHandler); |
| 14 InspectorTest.testWorkspace.addEventListener(WebInspector.Workspace.Events.U
ISourceCodeRemoved, InspectorTest._defaultWorkspaceEventHandler); | 15 InspectorTest.testWorkspace.addEventListener(WebInspector.Workspace.Events.U
ISourceCodeRemoved, InspectorTest._defaultWorkspaceEventHandler); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 71 |
| 71 function didRequestContent(content, contentEncoded) | 72 function didRequestContent(content, contentEncoded) |
| 72 { | 73 { |
| 73 InspectorTest.addResult("Highlighter type: " + uiSourceCode.highlighterT
ype()); | 74 InspectorTest.addResult("Highlighter type: " + uiSourceCode.highlighterT
ype()); |
| 74 InspectorTest.addResult("UISourceCode content: " + content); | 75 InspectorTest.addResult("UISourceCode content: " + content); |
| 75 callback(); | 76 callback(); |
| 76 } | 77 } |
| 77 } | 78 } |
| 78 | 79 |
| 79 }; | 80 }; |
| OLD | NEW |