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

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

Issue 2253083003: [MD History] Add shadow to toolbar on scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@more_stats
Patch Set: rebase Created 4 years, 4 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
« no previous file with comments | « chrome/browser/resources/md_history/synced_device_manager.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 30ff60574072219c882d2e458ecccda897715086..567bff3c63cdc2995ff39470f7b768178f4a40f3 100644
--- a/chrome/test/data/webui/md_history/history_list_test.js
+++ b/chrome/test/data/webui/md_history/history_list_test.js
@@ -301,6 +301,22 @@ cr.define('md_history.history_list_test', function() {
});
});
+ test('scrolling history list causes toolbar shadow to appear', () => {
+ for (var i = 0; i < 10; i++)
+ app.historyResult(createHistoryInfo(), TEST_HISTORY_RESULTS);
+ return flush().then(function() {
+ assertFalse(app.toolbarShadow_);
+ element.$['infinite-list'].scrollToIndex(20);
+ return waitForEvent(app, 'toolbar-shadow_-changed');
+ }).then(() => {
+ assertTrue(app.toolbarShadow_);
+ element.$['infinite-list'].scrollToIndex(0);
+ return waitForEvent(app, 'toolbar-shadow_-changed');
+ }).then(() => {
+ assertFalse(app.toolbarShadow_);
+ });
+ });
+
test('changing search deselects items', function() {
app.historyResult(
createHistoryInfo('ex'),
« no previous file with comments | « chrome/browser/resources/md_history/synced_device_manager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698