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 667cb709c73cf13691336d20e155cc9c731e2d5a..7fe44929c70d94e4401a8c62f982929a0c26b0f6 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js |
@@ -409,7 +409,7 @@ InspectorTest.dumpNavigatorViewInMode = function(view, mode) |
InspectorTest.dumpNavigatorView(view); |
} |
-InspectorTest.waitForUISourceCode = function(url, projectType) |
+InspectorTest.waitForUISourceCode = function(urlSuffix, projectType) |
{ |
function matches(uiSourceCode) |
{ |
@@ -417,13 +417,13 @@ InspectorTest.waitForUISourceCode = function(url, projectType) |
return false; |
if (!projectType && uiSourceCode.project().type() === Workspace.projectTypes.Service) |
return false; |
- if (url && !uiSourceCode.url().endsWith(url)) |
+ if (urlSuffix && !uiSourceCode.url().endsWith(urlSuffix)) |
return false; |
return true; |
} |
for (var uiSourceCode of Workspace.workspace.uiSourceCodes()) { |
- if (url && matches(uiSourceCode)) |
+ if (urlSuffix && matches(uiSourceCode)) |
return Promise.resolve(uiSourceCode); |
} |