| 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 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1131 __proto__: CrSettingsBrowserTest.prototype, | 1131 __proto__: CrSettingsBrowserTest.prototype, |
| 1132 | 1132 |
| 1133 /** @override */ | 1133 /** @override */ |
| 1134 browsePreload: 'chrome://md-settings/non/existent/route', | 1134 browsePreload: 'chrome://md-settings/non/existent/route', |
| 1135 | 1135 |
| 1136 /** @override */ | 1136 /** @override */ |
| 1137 runAccessibilityChecks: false, | 1137 runAccessibilityChecks: false, |
| 1138 }; | 1138 }; |
| 1139 | 1139 |
| 1140 // Failing on ChromiumOS dbg. https://crbug.com/709442 | 1140 // Failing on ChromiumOS dbg. https://crbug.com/709442 |
| 1141 GEN('#if defined(OS_CHROMEOS) && !defined(NDEBUG)'); | 1141 GEN('#if (defined(OS_WIN) || defined(OS_CHROMEOS)) && !defined(NDEBUG)'); |
| 1142 GEN('#define MAYBE_All DISABLED_All'); | 1142 GEN('#define MAYBE_All DISABLED_All'); |
| 1143 GEN('#else'); | 1143 GEN('#else'); |
| 1144 GEN('#define MAYBE_All All'); | 1144 GEN('#define MAYBE_All All'); |
| 1145 GEN('#endif'); | 1145 GEN('#endif'); |
| 1146 TEST_F('CrSettingsNonExistentRouteTest', 'MAYBE_All', function() { | 1146 TEST_F('CrSettingsNonExistentRouteTest', 'MAYBE_All', function() { |
| 1147 suite('NonExistentRoutes', function() { | 1147 suite('NonExistentRoutes', function() { |
| 1148 test('redirect to basic', function() { | 1148 test('redirect to basic', function() { |
| 1149 assertEquals(settings.Route.BASIC, settings.getCurrentRoute()); | 1149 assertEquals(settings.Route.BASIC, settings.getCurrentRoute()); |
| 1150 assertEquals('/', location.pathname); | 1150 assertEquals('/', location.pathname); |
| 1151 }); | 1151 }); |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1423 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1423 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 1424 'test_browser_proxy.js', | 1424 'test_browser_proxy.js', |
| 1425 'test_extension_control_browser_proxy.js', | 1425 'test_extension_control_browser_proxy.js', |
| 1426 'extension_controlled_indicator_tests.js', | 1426 'extension_controlled_indicator_tests.js', |
| 1427 ]), | 1427 ]), |
| 1428 }; | 1428 }; |
| 1429 | 1429 |
| 1430 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { | 1430 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { |
| 1431 mocha.run(); | 1431 mocha.run(); |
| 1432 }); | 1432 }); |
| OLD | NEW |