OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 /** @fileoverview Runs the Polymer Settings tests. */ | 5 /** @fileoverview Runs the Polymer Settings tests. */ |
6 | 6 |
7 /** @const {string} Path to source root. */ | 7 /** @const {string} Path to source root. */ |
8 var ROOT_PATH = '../../../../../'; | 8 var ROOT_PATH = '../../../../../'; |
9 | 9 |
10 // Polymer BrowserTest fixture. | 10 // Polymer BrowserTest fixture. |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 */ | 163 */ |
164 function CrSettingsSiteSettingsTest() {} | 164 function CrSettingsSiteSettingsTest() {} |
165 | 165 |
166 CrSettingsSiteSettingsTest.prototype = { | 166 CrSettingsSiteSettingsTest.prototype = { |
167 __proto__: CrSettingsBrowserTest.prototype, | 167 __proto__: CrSettingsBrowserTest.prototype, |
168 | 168 |
169 /** @override */ | 169 /** @override */ |
170 browsePreload: 'chrome://md-settings/prefs/prefs.html', | 170 browsePreload: 'chrome://md-settings/prefs/prefs.html', |
171 | 171 |
172 /** @override */ | 172 /** @override */ |
173 preLoad: function() { | |
174 SettingsPageBrowserTest.prototype.preLoad.call(this); | |
175 | |
176 cr.exportPath('settings_test').siteCategoryNotifyForTest = true; | |
177 cr.exportPath('settings_test').siteListNotifyForTest = true; | |
178 }, | |
179 | |
180 /** @override */ | |
181 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ | 173 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ |
182 'site_details_tests.js', | 174 'site_details_tests.js', |
183 'site_details_permission_tests.js', | 175 'site_details_permission_tests.js', |
184 'site_list_tests.js', | 176 'site_list_tests.js', |
185 'site_settings_category_tests.js', | 177 'site_settings_category_tests.js', |
186 'test_browser_proxy.js', | 178 'test_browser_proxy.js', |
187 'test_site_settings_prefs_browser_proxy.js', | 179 'test_site_settings_prefs_browser_proxy.js', |
188 ]), | 180 ]), |
189 }; | 181 }; |
190 | 182 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', | 234 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', |
243 'test_browser_proxy.js', | 235 'test_browser_proxy.js', |
244 'system_page_tests.js', | 236 'system_page_tests.js', |
245 ]), | 237 ]), |
246 }; | 238 }; |
247 | 239 |
248 TEST_F('CrSettingsSystemPageTest', 'Restart', function() { | 240 TEST_F('CrSettingsSystemPageTest', 'Restart', function() { |
249 mocha.run(); | 241 mocha.run(); |
250 }); | 242 }); |
251 GEN('#endif'); | 243 GEN('#endif'); |
OLD | NEW |