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

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

Issue 2740053002: DevTools: keep selected tab as persistence binding comes in (Closed)
Patch Set: thoughtful code 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 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 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);
}

Powered by Google App Engine
This is Rietveld 408576698