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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js

Issue 2747863007: DevTools: clean up tests to not depend on NetworkProject.addFile method (Closed)
Patch Set: typo Created 3 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 return project; 182 return project;
183 } 183 }
184 184
185 /** 185 /**
186 * @param {!Common.ContentProvider} contentProvider 186 * @param {!Common.ContentProvider} contentProvider
187 * @param {?SDK.ResourceTreeFrame} frame 187 * @param {?SDK.ResourceTreeFrame} frame
188 * @param {boolean} isContentScript 188 * @param {boolean} isContentScript
189 * @param {?number} contentSize 189 * @param {?number} contentSize
190 * @return {!Workspace.UISourceCode} 190 * @return {!Workspace.UISourceCode}
191 */ 191 */
192 addFile(contentProvider, frame, isContentScript, contentSize) { 192 addSourceMapFile(contentProvider, frame, isContentScript, contentSize) {
193 var uiSourceCode = this._createFile(contentProvider, frame, isContentScript || false); 193 var uiSourceCode = this._createFile(contentProvider, frame, isContentScript || false);
194 var metadata = typeof contentSize === 'number' ? new Workspace.UISourceCodeM etadata(null, contentSize) : null; 194 var metadata = typeof contentSize === 'number' ? new Workspace.UISourceCodeM etadata(null, contentSize) : null;
195 this._addUISourceCodeWithProvider(uiSourceCode, contentProvider, metadata); 195 this._addUISourceCodeWithProvider(uiSourceCode, contentProvider, metadata);
196 return uiSourceCode; 196 return uiSourceCode;
197 } 197 }
198 198
199 /** 199 /**
200 * @param {?SDK.ResourceTreeFrame} frame 200 * @param {?SDK.ResourceTreeFrame} frame
201 * @param {string} url 201 * @param {string} url
202 */ 202 */
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 return workspace.uiSourceCode(Bindings.NetworkProject.projectId(header.targe t(), frame, false), url); 428 return workspace.uiSourceCode(Bindings.NetworkProject.projectId(header.targe t(), frame, false), url);
429 } 429 }
430 }; 430 };
431 431
432 Bindings.NetworkProject._networkProjectSymbol = Symbol('networkProject'); 432 Bindings.NetworkProject._networkProjectSymbol = Symbol('networkProject');
433 Bindings.NetworkProject._resourceSymbol = Symbol('resource'); 433 Bindings.NetworkProject._resourceSymbol = Symbol('resource');
434 Bindings.NetworkProject._scriptSymbol = Symbol('script'); 434 Bindings.NetworkProject._scriptSymbol = Symbol('script');
435 Bindings.NetworkProject._styleSheetSymbol = Symbol('styleSheet'); 435 Bindings.NetworkProject._styleSheetSymbol = Symbol('styleSheet');
436 Bindings.NetworkProject._targetSymbol = Symbol('target'); 436 Bindings.NetworkProject._targetSymbol = Symbol('target');
437 Bindings.NetworkProject._frameSymbol = Symbol('frame'); 437 Bindings.NetworkProject._frameSymbol = Symbol('frame');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698