OLD | NEW |
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 Loading... |
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 }); |
OLD | NEW |