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

Unified Diff: chrome/test/data/webui/inspect_ui_test.js

Issue 560523004: DevTools: Made id unique across different remote browsers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed leak in test Created 6 years, 3 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
« no previous file with comments | « chrome/browser/resources/inspect/inspect.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/inspect_ui_test.js
diff --git a/chrome/test/data/webui/inspect_ui_test.js b/chrome/test/data/webui/inspect_ui_test.js
index 0b7d92748f01374feb9d3fd012c66bcb84616fc4..deaa57a0b1235a9ade6c7d2c82bfbc2aba1cf588 100644
--- a/chrome/test/data/webui/inspect_ui_test.js
+++ b/chrome/test/data/webui/inspect_ui_test.js
@@ -66,6 +66,15 @@ function testAdbTargetsListed() {
chromePages, 'http://www.chromium.org/', '.url');
expectNotEquals(undefined, chromiumPage);
+ var pageById = {};
+ Array.prototype.forEach.call(devices, function (device) {
+ var pages = device.querySelectorAll('.row');
+ Array.prototype.forEach.call(pages, function (page) {
+ expectEquals(undefined, pageById[page.targetId]);
+ pageById[page.targetId] = page;
+ });
+ });
+
var webView = findByContentSubstring(
browsers, 'WebView in com.sample.feed (4.0)', '.browser-name');
expectNotEquals(undefined, webView);
« no previous file with comments | « chrome/browser/resources/inspect/inspect.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698