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

Unified Diff: chrome/test/data/webui/md_bookmarks/md_bookmarks_browsertest.js

Issue 2745993002: MD Bookmarks: Update URL router to work in new data binding system (Closed)
Patch Set: calamity@ review Created 3 years, 9 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_bookmarks/md_bookmarks_browsertest.js
diff --git a/chrome/test/data/webui/md_bookmarks/md_bookmarks_browsertest.js b/chrome/test/data/webui/md_bookmarks/md_bookmarks_browsertest.js
index 459d5ea8827b5a2475542c591479a446854ac7d1..02f230a4150d3c268a814880e26d83fffde7fd83 100644
--- a/chrome/test/data/webui/md_bookmarks/md_bookmarks_browsertest.js
+++ b/chrome/test/data/webui/md_bookmarks/md_bookmarks_browsertest.js
@@ -97,14 +97,43 @@ TEST_F('MaterialBookmarksReducersTest', 'All', function() {
mocha.run();
});
+function MaterialBookmarksRouterTest() {}
+
+MaterialBookmarksRouterTest.prototype = {
+ __proto__: MaterialBookmarksBrowserTest.prototype,
+
+ extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([
+ 'router_test.js',
+ ]),
+};
+
+TEST_F('MaterialBookmarksRouterTest', 'All', function() {
+ mocha.grep('<bookmarks-router>').run();
+});
+
+function MaterialBookmarksRouterOnLoadTest() {}
+
+MaterialBookmarksRouterOnLoadTest.prototype = {
+ __proto__: MaterialBookmarksRouterTest.prototype,
+
+ browsePreload: 'chrome://bookmarks/?q=testQuery',
+
+ setUp: function() {
+ chrome.bookmarks.search = function(query) {
+ window.searchedQuery = query;
+ };
+ },
+};
+
+TEST_F('MaterialBookmarksRouterOnLoadTest', 'All', function() {
+ mocha.grep('URL preload').run();
+});
+
function MaterialBookmarksStoreClientTest() {}
MaterialBookmarksStoreClientTest.prototype = {
__proto__: MaterialBookmarksBrowserTest.prototype,
- // TODO(tsergeant): Remove special preload once Client is used in the page.
- browsePreload: 'chrome://bookmarks/store_client.html',
-
extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([
'store_client_test.js',
]),
« no previous file with comments | « chrome/browser/resources/md_bookmarks/toolbar.js ('k') | chrome/test/data/webui/md_bookmarks/router_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698