| Index: chrome/test/data/webui/md_history/history_list_test.js
|
| diff --git a/chrome/test/data/webui/md_history/history_list_test.js b/chrome/test/data/webui/md_history/history_list_test.js
|
| index 0b69f6eaead76a052d213965fd3a72d1f879ac10..1d862a6d90b5dadb68cea9760557dd9f4b5a92d7 100644
|
| --- a/chrome/test/data/webui/md_history/history_list_test.js
|
| +++ b/chrome/test/data/webui/md_history/history_list_test.js
|
| @@ -143,6 +143,7 @@ cr.define('md_history.history_list_test', function() {
|
| });
|
|
|
| test('updating history results', function() {
|
| + app.queryState_.incremental = true;
|
| app.historyResult(createHistoryInfo(), TEST_HISTORY_RESULTS);
|
| app.historyResult(createHistoryInfo(), ADDITIONAL_RESULTS);
|
|
|
| @@ -157,10 +158,12 @@ cr.define('md_history.history_list_test', function() {
|
|
|
| assertTrue(items[7].isCardStart);
|
| assertTrue(items[7].isCardEnd);
|
| + app.queryState_.incremental = false;
|
| });
|
| });
|
|
|
| test('deleting multiple items from view', function() {
|
| + app.queryState_.incremental = true;
|
| app.historyResult(createHistoryInfo(), TEST_HISTORY_RESULTS);
|
| app.historyResult(createHistoryInfo(), ADDITIONAL_RESULTS);
|
| return flush().then(function() {
|
| @@ -185,7 +188,9 @@ cr.define('md_history.history_list_test', function() {
|
| assertTrue(items[2].isCardStart);
|
| assertTrue(items[3].isCardEnd);
|
| assertTrue(items[4].isCardStart);
|
| - assertTrue(items[4].isCardEnd)
|
| + assertTrue(items[4].isCardEnd);
|
| +
|
| + app.queryState_.incremental = false;
|
| });
|
| });
|
|
|
| @@ -248,6 +253,7 @@ cr.define('md_history.history_list_test', function() {
|
| });
|
|
|
| test('scrolling history list closes overflow menu', function() {
|
| + app.queryState_.incremental = true;
|
| var lazyMenu = app.$.history.$.sharedMenu;
|
| for (var i = 0; i < 10; i++)
|
| app.historyResult(createHistoryInfo(), TEST_HISTORY_RESULTS);
|
| @@ -262,6 +268,8 @@ cr.define('md_history.history_list_test', function() {
|
| return waitForEvent(lazyMenu.getIfExists(), 'menu-open-changed');
|
| }).then(function() {
|
| assertFalse(lazyMenu.getIfExists().menuOpen);
|
| +
|
| + app.queryState_.incremental = false;
|
| });
|
| });
|
|
|
| @@ -283,6 +291,7 @@ cr.define('md_history.history_list_test', function() {
|
| });
|
|
|
| test('delete items end to end', function(done) {
|
| + app.queryState_.incremental = true;
|
| var listContainer = app.$.history;
|
| app.historyResult(createHistoryInfo(), TEST_HISTORY_RESULTS);
|
| app.historyResult(createHistoryInfo(), ADDITIONAL_RESULTS);
|
| @@ -337,6 +346,8 @@ cr.define('md_history.history_list_test', function() {
|
| // Confirmation dialog should appear.
|
| assertTrue(dialog.open);
|
| MockInteractions.tap(listContainer.$$('.action-button'));
|
| +
|
| + app.queryState_.incremental = false;
|
| });
|
| });
|
|
|
| @@ -415,6 +426,7 @@ cr.define('md_history.history_list_test', function() {
|
| });
|
|
|
| test('delete dialog closed on url change', function() {
|
| + app.queryState_.incremental = true;
|
| app.queryState_.queryingDisabled = false;
|
| var listContainer = app.$.history;
|
| app.historyResult(createHistoryInfo(), TEST_HISTORY_RESULTS);
|
| @@ -433,6 +445,7 @@ cr.define('md_history.history_list_test', function() {
|
|
|
| app.set('queryState_.searchTerm', 'something else');
|
| assertFalse(listContainer.$.dialog.getIfExists().open);
|
| + app.queryState_.incremental = false;
|
| });
|
| });
|
|
|
|
|