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

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

Issue 2204833003: MD History: Add menu to cards on Synced Tabs page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@history_improve_collapse_button
Patch Set: Fix tests Created 4 years, 4 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/ui/webui/md_history_ui.cc ('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 17b0c4ebefaa60e25b7555211793709d80fe556b..f4545fa1d19bac0c2003770853637a693f67a1b8 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
@@ -96,8 +96,8 @@ cr.define('md_history.history_synced_tabs_test', function() {
assertEquals(2, cards.length);
// Ensure separators between windows are added appropriately.
- assertEquals(1, numWindowSeparators(cards[0]));
- assertEquals(2, numWindowSeparators(cards[1]));
+ assertEquals(0, numWindowSeparators(cards[0]));
+ assertEquals(1, numWindowSeparators(cards[1]));
});
});
@@ -128,7 +128,7 @@ cr.define('md_history.history_synced_tabs_test', function() {
assertEquals(2, cards.length);
// There are now 2 windows in the first device.
- assertEquals(2, numWindowSeparators(cards[0]));
+ assertEquals(1, numWindowSeparators(cards[0]));
// Check that the actual link changes.
assertEquals(
@@ -161,18 +161,18 @@ cr.define('md_history.history_synced_tabs_test', function() {
assertEquals(2, cards.length);
// Ensure separators between windows are added appropriately.
- assertEquals(1, numWindowSeparators(cards[0]));
- assertEquals(3, numWindowSeparators(cards[1]));
+ assertEquals(0, numWindowSeparators(cards[0]));
+ assertEquals(2, numWindowSeparators(cards[1]));
element.searchTerm = 'g';
return flush();
}).then(function() {
var cards = getCards();
- assertEquals(1, numWindowSeparators(cards[0]));
+ assertEquals(0, numWindowSeparators(cards[0]));
assertEquals(1, cards[0].tabs.length);
assertEquals('http://www.google.com', cards[0].tabs[0].title);
- assertEquals(2, numWindowSeparators(cards[1]));
+ assertEquals(1, numWindowSeparators(cards[1]));
assertEquals(3, cards[1].tabs.length);
assertEquals('http://www.gmail.com', cards[1].tabs[0].title);
assertEquals('http://www.gmail.com', cards[1].tabs[1].title);
« no previous file with comments | « chrome/browser/ui/webui/md_history_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698