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

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

Issue 2237703004: [MD History] Focus the search bar on load. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: chrome/test/data/webui/md_history/md_history_browsertest.js
diff --git a/chrome/test/data/webui/md_history/md_history_browsertest.js b/chrome/test/data/webui/md_history/md_history_browsertest.js
index ee4614022f86e048a937e64502cdf62f10f4612e..e3caca0eb185f845eb31cba2b742fcf18cdd3c9f 100644
--- a/chrome/test/data/webui/md_history/md_history_browsertest.js
+++ b/chrome/test/data/webui/md_history/md_history_browsertest.js
@@ -48,6 +48,13 @@ MaterialHistoryBrowserTest.prototype = {
// Wait for the top-level app element to be upgraded.
return waitForAppUpgrade().then(function() {
$('history-app').queryState_.queryingDisabled = true;
+
+ // Ensure the search bar is focused on load.
+ assertTrue(
+ $('history-app')
+ .$.toolbar.$['main-toolbar']
+ .getSearchField()
+ .isSearchFocused());
});
});
},

Powered by Google App Engine
This is Rietveld 408576698