Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: LayoutTests/http/tests/inspector/workspace-test.js

Issue 432753003: DevTools: Fix url assignment when renaming files in workspace (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added a test and fixed correctly Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698