| 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 Easy Unlock within People section. */ | 5 /** @fileoverview Suite of tests for Easy Unlock within People section. */ |
| 6 | 6 |
| 7 GEN_INCLUDE(['settings_page_browsertest.js']); | 7 GEN_INCLUDE(['settings_page_browsertest.js']); |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * @constructor | 10 * @constructor |
| 11 * @extends {SettingsPageBrowserTest} | 11 * @extends {SettingsPageBrowserTest} |
| 12 */ | 12 */ |
| 13 function SettingsEasyUnlockBrowserTest() { | 13 function SettingsEasyUnlockBrowserTest() { |
| 14 } | 14 } |
| 15 | 15 |
| 16 SettingsEasyUnlockBrowserTest.prototype = { | 16 SettingsEasyUnlockBrowserTest.prototype = { |
| 17 __proto__: SettingsPageBrowserTest.prototype, | 17 __proto__: SettingsPageBrowserTest.prototype, |
| 18 | 18 |
| 19 /** @override */ | 19 /** @override */ |
| 20 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ | 20 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ |
| 21 'test_browser_proxy.js', | 21 'test_browser_proxy.js', |
| 22 ]), | 22 ]), |
| 23 | |
| 24 /** @override */ | |
| 25 preLoad: function() { | |
| 26 SettingsPageBrowserTest.prototype.preLoad.call(this); | |
| 27 settingsHidePagesByDefaultForTest = true; | |
| 28 }, | |
| 29 }; | 23 }; |
| 30 | 24 |
| 31 // Times out on debug builders and may time out on memory bots because | 25 // Times out on debug builders and may time out on memory bots because |
| 32 // the Settings page can take several seconds to load in a Release build | 26 // the Settings page can take several seconds to load in a Release build |
| 33 // and several times that in a Debug build. See https://crbug.com/558434 | 27 // and several times that in a Debug build. See https://crbug.com/558434 |
| 34 // and http://crbug.com/711256. | 28 // and http://crbug.com/711256. |
| 35 | 29 |
| 36 // Runs easy unlock tests. | 30 // Runs easy unlock tests. |
| 37 TEST_F('SettingsEasyUnlockBrowserTest', 'DISABLED_EasyUnlock', function() { | 31 TEST_F('SettingsEasyUnlockBrowserTest', 'DISABLED_EasyUnlock', function() { |
| 38 /** | 32 /** |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 .then(function() { | 215 .then(function() { |
| 222 Polymer.dom.flush(); | 216 Polymer.dom.flush(); |
| 223 expectFalse(turnOffDialog.$.dialog.open); | 217 expectFalse(turnOffDialog.$.dialog.open); |
| 224 }); | 218 }); |
| 225 }); | 219 }); |
| 226 }); | 220 }); |
| 227 | 221 |
| 228 // Run all registered tests. | 222 // Run all registered tests. |
| 229 mocha.run(); | 223 mocha.run(); |
| 230 }); | 224 }); |
| OLD | NEW |