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