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

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

Issue 1932413003: [MD History] Refactor history.html into a history-app element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix_test Created 4 years, 8 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: 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 dc2f6d182c365d3419a50fbf40cd35f1ebea970e..794a60761adb027c64f219a323b34b5dd6d12ba5 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
@@ -28,18 +28,20 @@ cr.define('md_history.history_synced_tabs_test', function() {
function registerTests() {
suite('synced-tabs', function() {
+ var app;
var element;
var sidebarElement;
suiteSetup(function() {
- element = $('history-synced-device-manager');
- sidebarElement = $('history-side-bar');
+ app = $('history-app');
+ element = app.$['history-synced-device-manager'];
+ sidebarElement = app.$['history-side-bar'];
});
test('sidebar displayed', function() {
- setForeignSessions([], false);
+ app.setForeignSessions([], false);
assertTrue(sidebarElement.hidden);
- setForeignSessions([], true);
+ app.setForeignSessions([], true);
assertFalse(sidebarElement.hidden);
});
@@ -50,7 +52,7 @@ cr.define('md_history.history_synced_tabs_test', function() {
[createWindow(['http://www.google.com', 'http://example.com'])]
)
];
- setForeignSessions(sessionList, true);
+ app.setForeignSessions(sessionList, true);
flush(function() {
var card = element.$$('history-synced-device-card');
@@ -73,7 +75,7 @@ cr.define('md_history.history_synced_tabs_test', function() {
]
),
];
- setForeignSessions(sessionList, true);
+ app.setForeignSessions(sessionList, true);
flush(function() {
var cards = Polymer.dom(element.root)
@@ -102,7 +104,7 @@ cr.define('md_history.history_synced_tabs_test', function() {
var session2 =
createSession('Nexus 5', [createWindow(['http://www.google.com'])]);
- setForeignSessions([session1, session2], true);
+ app.setForeignSessions([session1, session2], true);
flush(function() {
var session1updated = createSession('Chromebook', [
@@ -111,7 +113,7 @@ cr.define('md_history.history_synced_tabs_test', function() {
]);
session1updated.timestamp = 1234;
- setForeignSessions([session1updated, session2], true);
+ app.setForeignSessions([session1updated, session2], true);
flush(function() {
// There should only be two cards.

Powered by Google App Engine
This is Rietveld 408576698