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

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: address nit 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..3eec5dc67abf72853db84f7e7f4ea40cb4173ee1 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,19 +28,27 @@ 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);
- assertTrue(sidebarElement.hidden);
+ test('sidebar displayed', function(done) {
setForeignSessions([], true);
- assertFalse(sidebarElement.hidden);
+ flush(function() {
+ assertFalse(sidebarElement.hidden);
+ setForeignSessions([], false);
+ flush(function() {
+ assertTrue(sidebarElement.hidden);
+ done();
+ });
+ });
+
});
test('single card, single window', function(done) {

Powered by Google App Engine
This is Rietveld 408576698