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

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

Issue 2068613002: [MD History] Add URL parameter for search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@routing
Patch Set: remove_var Created 4 years, 5 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/test/data/webui/md_history/history_synced_tabs_test.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/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 6de0d2a1b4936d21bdb2bdb307d7945a97f488e9..200a0c120ead8f14c5c2986b8144c1102a65a206 100644
--- a/chrome/test/data/webui/md_history/md_history_browsertest.js
+++ b/chrome/test/data/webui/md_history/md_history_browsertest.js
@@ -109,3 +109,36 @@ TEST_F('MaterialHistoryDeletionDisabledTest', 'HistorySupervisedUserTest',
md_history.history_supervised_user_test.registerTests();
mocha.run();
});
+
+function MaterialHistoryWithQueryParamTest() {}
+
+MaterialHistoryWithQueryParamTest.prototype = {
+ __proto__: MaterialHistoryBrowserTest.prototype,
+
+ browsePreload: 'chrome://history?q=query',
+
+ /** @override */
+ setUp: function() {
+ PolymerTest.prototype.setUp.call(this);
+
+ suiteSetup(function() {
+ // This message handler needs to be registered before the test since the
+ // query can happen immediately after the element is upgraded. However,
+ // since there may be a delay as well, the test might check the global var
+ // too early as well. In this case the test will have overtaken the
+ // callback.
+ registerMessageCallback('queryHistory', this, function (info) {
+ window.historyQueryInfo = info;
+ });
+
+ // Wait for the top-level app element to be upgraded.
+ return waitForUpgrade($('history-app'));
+ });
+ },
+};
+
+TEST_F('MaterialHistoryWithQueryParamTest', 'RoutingTestWithQueryParam',
+ function() {
+ md_history.history_routing_test_with_query_param.registerTests();
+ mocha.run();
+});
« no previous file with comments | « chrome/test/data/webui/md_history/history_synced_tabs_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698