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

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

Issue 2261933002: DevTools: Use JS symbols instead of strings for eligible events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/edit/set-outer-html-test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/edit/set-outer-html-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698