| 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 /** @fileoverview Suite of tests for settings-languages-page. */ | 5 /** @fileoverview Suite of tests for settings-languages-page. */ |
| 6 | 6 |
| 7 /** @const {string} Path to root from chrome/test/data/webui/settings/. */ | 7 /** @const {string} Path to root from chrome/test/data/webui/settings/. */ |
| 8 var ROOT_PATH = '../../../../../'; | 8 var ROOT_PATH = '../../../../../'; |
| 9 | 9 |
| 10 // Polymer BrowserTest fixture. | 10 // Polymer BrowserTest fixture. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 __proto__: SettingsPageBrowserTest.prototype, | 25 __proto__: SettingsPageBrowserTest.prototype, |
| 26 | 26 |
| 27 /** @override */ | 27 /** @override */ |
| 28 preLoad: function() { | 28 preLoad: function() { |
| 29 SettingsPageBrowserTest.prototype.preLoad.call(this); | 29 SettingsPageBrowserTest.prototype.preLoad.call(this); |
| 30 settingsHidePagesByDefaultForTest = true; | 30 settingsHidePagesByDefaultForTest = true; |
| 31 }, | 31 }, |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 // Flaky on Windows. See https://crbug.com/641400. | 34 // Flaky on Windows. See https://crbug.com/641400. |
| 35 // May time out on debug builders and memory bots because | 35 // May time out on debug builders because the Settings page can take several |
| 36 // the Settings page can take several seconds to load in a Release build | 36 // seconds to load in a Release build and several times that in a Debug build. |
| 37 // and several times that in a Debug build. See https://crbug.com/558434. | 37 // See https://crbug.com/558434. |
| 38 GEN('#if defined(OS_WINDOWS) || defined(MEMORY_SANITIZER) || !defined(NDEBUG)'); | 38 GEN('#if defined(OS_WINDOWS) || !defined(NDEBUG)'); |
| 39 GEN('#define MAYBE_LanguagesPage DISABLED_LanguagesPage'); | 39 GEN('#define MAYBE_LanguagesPage DISABLED_LanguagesPage'); |
| 40 GEN('#else'); | 40 GEN('#else'); |
| 41 GEN('#define MAYBE_LanguagesPage LanguagesPage'); | 41 GEN('#define MAYBE_LanguagesPage LanguagesPage'); |
| 42 GEN('#endif'); | 42 GEN('#endif'); |
| 43 | 43 |
| 44 // Runs languages page tests. | 44 // Runs languages page tests. |
| 45 TEST_F('SettingsLanguagesPageBrowserTest', 'MAYBE_LanguagesPage', function() { | 45 TEST_F('SettingsLanguagesPageBrowserTest', 'MAYBE_LanguagesPage', function() { |
| 46 suite('languages page', function() { | 46 suite('languages page', function() { |
| 47 testing.Test.disableAnimationsAndTransitions(); | 47 testing.Test.disableAnimationsAndTransitions(); |
| 48 | 48 |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 0, triggerRow.querySelector('.secondary').textContent.length); | 449 0, triggerRow.querySelector('.secondary').textContent.length); |
| 450 } | 450 } |
| 451 }); | 451 }); |
| 452 }.bind(this)); | 452 }.bind(this)); |
| 453 | 453 |
| 454 // TODO(michaelpg): Test more aspects of the languages UI. | 454 // TODO(michaelpg): Test more aspects of the languages UI. |
| 455 | 455 |
| 456 // Run all registered tests. | 456 // Run all registered tests. |
| 457 mocha.run(); | 457 mocha.run(); |
| 458 }); | 458 }); |
| OLD | NEW |