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

Side by Side Diff: chrome/test/data/webui/md_history/history_toolbar_test.js

Issue 2684693004: MD History: Remove list-container and list-behavior (Closed)
Patch Set: Rename listeners Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 suite('history-toolbar', function() { 5 suite('history-toolbar', function() {
6 var app; 6 var app;
7 var element; 7 var element;
8 var toolbar; 8 var toolbar;
9 var TEST_HISTORY_RESULTS; 9 var TEST_HISTORY_RESULTS;
10 10
11 suiteSetup(function() { 11 suiteSetup(function() {
12 TEST_HISTORY_RESULTS = 12 TEST_HISTORY_RESULTS =
13 [createHistoryEntry('2016-03-15', 'https://google.com')]; 13 [createHistoryEntry('2016-03-15', 'https://google.com')];
14 }); 14 });
15 15
16 setup(function() { 16 setup(function() {
17 app = replaceApp(); 17 app = replaceApp();
18 element = app.$['history'].$['infinite-list']; 18 element = app.$.history;
19 toolbar = app.$['toolbar']; 19 toolbar = app.$.toolbar;
20 return PolymerTest.flushTasks(); 20 return PolymerTest.flushTasks();
21 }); 21 });
22 22
23 test('selecting checkbox causes toolbar to change', function() { 23 test('selecting checkbox causes toolbar to change', function() {
24 element.addNewResults(TEST_HISTORY_RESULTS); 24 element.addNewResults(TEST_HISTORY_RESULTS);
25 25
26 return PolymerTest.flushTasks().then(function() { 26 return PolymerTest.flushTasks().then(function() {
27 var item = element.$$('history-item'); 27 var item = element.$$('history-item');
28 MockInteractions.tap(item.$.checkbox); 28 MockInteractions.tap(item.$.checkbox);
29 29
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Hiding the button hides the notice. 98 // Hiding the button hides the notice.
99 MockInteractions.tap(button); 99 MockInteractions.tap(button);
100 toolbar.showSyncNotice = false; 100 toolbar.showSyncNotice = false;
101 assertTrue(notice.hidden); 101 assertTrue(notice.hidden);
102 }); 102 });
103 103
104 teardown(function() { 104 teardown(function() {
105 registerMessageCallback('queryHistory', this, function() {}); 105 registerMessageCallback('queryHistory', this, function() {});
106 }); 106 });
107 }); 107 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698