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 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1212 assertEquals('a/b', settings.getQueryParameters().get('guid')); | 1212 assertEquals('a/b', settings.getQueryParameters().get('guid')); |
1213 assertEquals('42', settings.getQueryParameters().get('foo')); | 1213 assertEquals('42', settings.getQueryParameters().get('foo')); |
1214 done(); | 1214 done(); |
1215 }); | 1215 }); |
1216 window.history.back(); | 1216 window.history.back(); |
1217 }); | 1217 }); |
1218 }); | 1218 }); |
1219 mocha.run(); | 1219 mocha.run(); |
1220 }); | 1220 }); |
1221 | 1221 |
1222 // Times out on Windows Tests (dbg). See https://crbug.com/651296. | 1222 GEN('#if !defined(NDEBUG)'); |
1223 // Times out / crashes on chromium.linux/Linux Tests (dbg) crbug.com/667882 | |
1224 GEN('#if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(OS_LINUX)' + | |
1225 ' || defined(OS_MACOSX)'); | |
1226 GEN('#define MAYBE_MainPage_All DISABLED_All'); | 1223 GEN('#define MAYBE_MainPage_All DISABLED_All'); |
1227 GEN('#else'); | 1224 GEN('#else'); |
1228 GEN('#define MAYBE_MainPage_All All'); | 1225 GEN('#define MAYBE_MainPage_All All'); |
1229 GEN('#endif'); | 1226 GEN('#endif'); |
1230 | 1227 |
1231 /** | 1228 /** |
1232 * Test fixture for chrome/browser/resources/settings/settings_main/. | 1229 * Test fixture for chrome/browser/resources/settings/settings_main/. |
1233 * @constructor | 1230 * @constructor |
1234 * @extends {CrSettingsBrowserTest} | 1231 * @extends {CrSettingsBrowserTest} |
1235 */ | 1232 */ |
1236 function CrSettingsMainPageTest() {} | 1233 function CrSettingsMainPageTest() {} |
1237 | 1234 |
1238 CrSettingsMainPageTest.prototype = { | 1235 CrSettingsMainPageTest.prototype = { |
1239 __proto__: CrSettingsBrowserTest.prototype, | 1236 __proto__: CrSettingsBrowserTest.prototype, |
1240 | 1237 |
1241 /** @override */ | 1238 /** @override */ |
1242 browsePreload: 'chrome://md-settings/settings_main/settings_main.html', | 1239 browsePreload: 'chrome://md-settings/settings_main/settings_main.html', |
1243 | 1240 |
1244 /** @override */ | 1241 /** @override */ |
1245 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1242 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 1243 '../fake_chrome_event.js', |
| 1244 'fake_settings_private.js', |
1246 'test_browser_proxy.js', | 1245 'test_browser_proxy.js', |
1247 'settings_main_test.js', | 1246 'settings_main_test.js', |
1248 ]), | 1247 ]), |
1249 }; | 1248 }; |
1250 | 1249 |
1251 TEST_F('CrSettingsMainPageTest', 'MAYBE_MainPage_All', function() { | 1250 TEST_F('CrSettingsMainPageTest', 'MAYBE_MainPage_All', function() { |
1252 settings_main_page.registerTests(); | |
1253 mocha.run(); | 1251 mocha.run(); |
1254 }); | 1252 }); |
1255 | 1253 |
1256 /** | 1254 /** |
1257 * Test fixture for chrome/browser/resources/settings/search_settings.js. | 1255 * Test fixture for chrome/browser/resources/settings/search_settings.js. |
1258 * @constructor | 1256 * @constructor |
1259 * @extends {CrSettingsBrowserTest} | 1257 * @extends {CrSettingsBrowserTest} |
1260 */ | 1258 */ |
1261 function CrSettingsSearchTest() {} | 1259 function CrSettingsSearchTest() {} |
1262 | 1260 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1444 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1442 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1445 'test_browser_proxy.js', | 1443 'test_browser_proxy.js', |
1446 'test_extension_control_browser_proxy.js', | 1444 'test_extension_control_browser_proxy.js', |
1447 'extension_controlled_indicator_tests.js', | 1445 'extension_controlled_indicator_tests.js', |
1448 ]), | 1446 ]), |
1449 }; | 1447 }; |
1450 | 1448 |
1451 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { | 1449 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { |
1452 mocha.run(); | 1450 mocha.run(); |
1453 }); | 1451 }); |
OLD | NEW |