Chromium Code Reviews| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 // TODO(michaelpg): Re-enable after bringing in fix for | 47 // TODO(michaelpg): Re-enable after bringing in fix for |
| 48 // https://github.com/PolymerElements/paper-slider/issues/131. | 48 // https://github.com/PolymerElements/paper-slider/issues/131. |
| 49 this.accessibilityAuditConfig.ignoreSelectors( | 49 this.accessibilityAuditConfig.ignoreSelectors( |
| 50 'badAriaAttributeValue', 'paper-slider'); | 50 'badAriaAttributeValue', 'paper-slider'); |
| 51 }, | 51 }, |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 // Have to include command_line.h manually due to GEN calls below. | 54 // Have to include command_line.h manually due to GEN calls below. |
| 55 GEN('#include "base/command_line.h"'); | 55 GEN('#include "base/command_line.h"'); |
| 56 | 56 |
| 57 // Times out on memory bots. http://crbug.com/534718 | 57 TEST_F('CrSettingsBrowserTest', 'Checkbox', function() { |
| 58 GEN('#if defined(MEMORY_SANITIZER)'); | |
|
dpapad
2016/06/09 01:21:29
Won't removing this line make our tests fail on me
Dan Beam
2016/06/09 01:37:25
the test previously failed for 3 reasons:
a) the
michaelpg
2016/06/09 04:06:36
this is the first bullet point under "advantages"
Dan Beam
2016/06/09 04:37:08
doing more work will always take more time, BUT I
| |
| 59 GEN('#define MAYBE_CrSettingsTest DISABLED_CrSettingsTest'); | |
| 60 GEN('#else'); | |
| 61 GEN('#define MAYBE_CrSettingsTest CrSettingsTest'); | |
| 62 GEN('#endif'); | |
| 63 | |
| 64 // TODO(dbeam): these should be split into multiple TEST_F()s. | |
| 65 TEST_F('CrSettingsBrowserTest', 'MAYBE_CrSettingsTest', function() { | |
| 66 settings_checkbox.registerTests(); | 58 settings_checkbox.registerTests(); |
| 67 settings_dropdown_menu.registerTests(); | |
| 68 settings_prefUtil.registerTests(); | |
| 69 settings_prefs.registerTests(); | |
| 70 | |
| 71 // Run all registered tests. | |
| 72 mocha.run(); | 59 mocha.run(); |
| 73 }); | 60 }); |
| 74 | 61 |
| 62 TEST_F('CrSettingsBrowserTest', 'DropdownMenu', function() { | |
| 63 settings_dropdown_menu.registerTests(); | |
| 64 mocha.run(); | |
| 65 }); | |
| 66 | |
| 67 TEST_F('CrSettingsBrowserTest', 'PrefUtil', function() { | |
| 68 settings_prefUtil.registerTests(); | |
| 69 mocha.run(); | |
| 70 }); | |
| 71 | |
| 72 TEST_F('CrSettingsBrowserTest', 'Prefs', function() { | |
| 73 settings_prefs.registerTests(); | |
| 74 mocha.run(); | |
| 75 }); | |
| 76 | |
| 75 /** | 77 /** |
| 76 * @constructor | 78 * @constructor |
| 77 * @extends {CrSettingsBrowserTest} | 79 * @extends {CrSettingsBrowserTest} |
| 78 */ | 80 */ |
| 79 function CrSettingsAboutPageTest() {} | 81 function CrSettingsAboutPageTest() {} |
| 80 | 82 |
| 81 CrSettingsAboutPageTest.prototype = { | 83 CrSettingsAboutPageTest.prototype = { |
| 82 __proto__: CrSettingsBrowserTest.prototype, | 84 __proto__: CrSettingsBrowserTest.prototype, |
| 83 | 85 |
| 84 /** @override */ | 86 /** @override */ |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 549 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 551 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 550 'fake_language_settings_private.js', | 552 'fake_language_settings_private.js', |
| 551 'fake_settings_private.js', | 553 'fake_settings_private.js', |
| 552 'languages_page_tests.js', | 554 'languages_page_tests.js', |
| 553 ]), | 555 ]), |
| 554 }; | 556 }; |
| 555 | 557 |
| 556 TEST_F('CrSettingsLanguagesPageTest', 'LanguagesPage', function() { | 558 TEST_F('CrSettingsLanguagesPageTest', 'LanguagesPage', function() { |
| 557 mocha.run(); | 559 mocha.run(); |
| 558 }); | 560 }); |
| OLD | NEW |