| 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);
|
|
|