| 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.
|
|
|