| 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 | 23 |
| 24 /** @override */ | 24 /** @override */ |
| 25 preLoad: function() { | 25 preLoad: function() { |
| 26 SettingsPageBrowserTest.prototype.preLoad.call(this); | 26 SettingsPageBrowserTest.prototype.preLoad.call(this); |
| 27 settingsHidePagesByDefaultForTest = true; | |
| 28 }, | 27 }, |
| 29 }; | 28 }; |
| 30 | 29 |
| 31 // Times out on debug builders and may time out on memory bots because | 30 // 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 | 31 // 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 | 32 // and several times that in a Debug build. See https://crbug.com/558434 |
| 34 // and http://crbug.com/711256. | 33 // and http://crbug.com/711256. |
| 35 | 34 |
| 36 // Runs easy unlock tests. | 35 // Runs easy unlock tests. |
| 37 TEST_F('SettingsEasyUnlockBrowserTest', 'DISABLED_EasyUnlock', function() { | 36 TEST_F('SettingsEasyUnlockBrowserTest', 'DISABLED_EasyUnlock', function() { |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 .then(function() { | 220 .then(function() { |
| 222 Polymer.dom.flush(); | 221 Polymer.dom.flush(); |
| 223 expectFalse(turnOffDialog.$.dialog.open); | 222 expectFalse(turnOffDialog.$.dialog.open); |
| 224 }); | 223 }); |
| 225 }); | 224 }); |
| 226 }); | 225 }); |
| 227 | 226 |
| 228 // Run all registered tests. | 227 // Run all registered tests. |
| 229 mocha.run(); | 228 mocha.run(); |
| 230 }); | 229 }); |
| OLD | NEW |