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

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: Change initialization, add integration test 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
132
calamity 2017/03/20 06:34:28 nit: Excessive newline.
tsergeant 2017/03/21 00:27:07 Done.
100 function MaterialBookmarksStoreClientTest() {} 133 function MaterialBookmarksStoreClientTest() {}
101 134
102 MaterialBookmarksStoreClientTest.prototype = { 135 MaterialBookmarksStoreClientTest.prototype = {
103 __proto__: MaterialBookmarksBrowserTest.prototype, 136 __proto__: MaterialBookmarksBrowserTest.prototype,
104 137
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([ 138 extraLibraries: MaterialBookmarksBrowserTest.prototype.extraLibraries.concat([
109 'store_client_test.js', 139 'store_client_test.js',
110 ]), 140 ]),
111 }; 141 };
112 142
113 TEST_F('MaterialBookmarksStoreClientTest', 'All', function() { 143 TEST_F('MaterialBookmarksStoreClientTest', 'All', function() {
114 mocha.run(); 144 mocha.run();
115 }); 145 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698