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

Unified Diff: chrome/test/data/webui/md_history/history_synced_tabs_test.js

Issue 2122823002: [MD History] Fix issues caused by refactor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@funky_fresh
Patch Set: fix nit Created 4 years, 5 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/test/data/webui/md_history/history_grouped_list_test.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/md_history/history_synced_tabs_test.js
diff --git a/chrome/test/data/webui/md_history/history_synced_tabs_test.js b/chrome/test/data/webui/md_history/history_synced_tabs_test.js
index 5d73ff8a9334bbbf20e26f0c422e94e274328da0..c1b0301d35d54d482cceabd5832e7bfa35362a07 100644
--- a/chrome/test/data/webui/md_history/history_synced_tabs_test.js
+++ b/chrome/test/data/webui/md_history/history_synced_tabs_test.js
@@ -65,6 +65,11 @@ cr.define('md_history.history_synced_tabs_test', function() {
return flush().then(function() {
var card = element.$$('history-synced-device-card');
+ assertEquals(
+ 'http://www.google.com',
+ Polymer.dom(card.root)
+ .querySelectorAll('.website-title')[0].children[0].$.container
+ .textContent.trim());
assertEquals(2, card.tabs.length);
});
});
@@ -171,6 +176,13 @@ cr.define('md_history.history_synced_tabs_test', function() {
assertEquals('http://www.gmail.com', cards[1].tabs[0].title);
assertEquals('http://www.gmail.com', cards[1].tabs[1].title);
assertEquals('http://bagssl.com', cards[1].tabs[2].title);
+
+ // Ensure the title text is rendered during searches.
+ assertEquals(
+ 'http://www.google.com',
+ Polymer.dom(cards[0].root)
+ .querySelectorAll('.website-title')[0].children[0].$.container
+ .textContent.trim());
});
});
« no previous file with comments | « chrome/test/data/webui/md_history/history_grouped_list_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698