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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js

Issue 2958403002: [WIP] DevTools: move UISourceCode creation into ResourceScriptMapping
Patch Set: pass everything but breakpointmanager Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
index e1941aba25a8ed00d17888dd3ce55cdf48db2067..a48e10a377a4af9de06ed202cd9d9a9a1f240256 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
@@ -59,7 +59,7 @@ InspectorTest.addScriptUISourceCode = function(url, content, isContentScript, wo
if (isContentScript)
content = `testRunner.evaluateScriptInIsolatedWorld(${worldId}, \`${content}\`)`;
InspectorTest.evaluateInPagePromise(content);
- return InspectorTest.waitForUISourceCode(url);
+ return InspectorTest.waitForUISourceCode(url, isContentScript ? Workspace.projectTypes.ContentScripts : Workspace.projectTypes.Network);
}
InspectorTest.addScriptForFrame = function(url, content, frame) {
@@ -465,6 +465,7 @@ InspectorTest.waitForUISourceCode = function(urlSuffix, projectType)
return true;
}
+ projectType = projectType || Workspace.projectTypes.Network;
for (var uiSourceCode of Workspace.workspace.uiSourceCodes()) {
if (urlSuffix && matches(uiSourceCode))
return Promise.resolve(uiSourceCode);

Powered by Google App Engine
This is Rietveld 408576698