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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview Test suite for the Material Design bookmarks page. 6 * @fileoverview Test suite for the Material Design bookmarks page.
7 */ 7 */
8 var ROOT_PATH = '../../../../../'; 8 var ROOT_PATH = '../../../../../';
9 9
10 GEN_INCLUDE( 10 GEN_INCLUDE(
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([ 91 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([
92 'reducers_test.js', 92 'reducers_test.js',
93 ]), 93 ]),
94 }; 94 };
95 95
96 TEST_F('MaterialBookmarksReducersTest', 'All', function() { 96 TEST_F('MaterialBookmarksReducersTest', 'All', function() {
97 mocha.run(); 97 mocha.run();
98 }); 98 });
99 99
100 function MaterialBookmarksRouterTest() {}
101
102 MaterialBookmarksRouterTest.prototype = {
103 __proto__: MaterialBookmarksBrowserTest.prototype,
104
105 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([
106 'router_test.js',
107 ]),
108 };
109
110 TEST_F('MaterialBookmarksRouterTest', 'All', function() {
111 mocha.grep('<bookmarks-router>').run();
112 });
113
114 function MaterialBookmarksRouterOnLoadTest() {}
115
116 MaterialBookmarksRouterOnLoadTest.prototype = {
117 __proto__: MaterialBookmarksRouterTest.prototype,
118
119 browsePreload: 'chrome://bookmarks/?q=testQuery',
120
121 setUp: function() {
122 chrome.bookmarks.search = function(query) {
123 window.searchedQuery = query;
124 };
125 },
126 };
127
128 TEST_F('MaterialBookmarksRouterOnLoadTest', 'All', function() {
129 mocha.grep('URL preload').run();
130 });
131
100 function MaterialBookmarksStoreClientTest() {} 132 function MaterialBookmarksStoreClientTest() {}
101 133
102 MaterialBookmarksStoreClientTest.prototype = { 134 MaterialBookmarksStoreClientTest.prototype = {
103 __proto__: MaterialBookmarksBrowserTest.prototype, 135 __proto__: MaterialBookmarksBrowserTest.prototype,
104 136
105 // TODO(tsergeant): Remove special preload once Client is used in the page.
106 browsePreload: 'chrome://bookmarks/store_client.html',
107
108 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([ 137 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([
109 'store_client_test.js', 138 'store_client_test.js',
110 ]), 139 ]),
111 }; 140 };
112 141
113 TEST_F('MaterialBookmarksStoreClientTest', 'All', function() { 142 TEST_F('MaterialBookmarksStoreClientTest', 'All', function() {
114 mocha.run(); 143 mocha.run();
115 }); 144 });
OLDNEW
« 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