OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 /** | 5 /** |
6 * Fixture for ChromeOs WebUI OOBE testing. | 6 * Fixture for ChromeOs WebUI OOBE testing. |
7 * | 7 * |
8 * There's one test for each page in the Chrome OS Out-of-box-experience | 8 * There's one test for each page in the Chrome OS Out-of-box-experience |
9 * (OOBE), so that an accessibility audit can be run automatically on | 9 * (OOBE), so that an accessibility audit can be run automatically on |
10 * each one. This will alert a developer immediately if they accidentally | 10 * each one. This will alert a developer immediately if they accidentally |
11 * forget to label a control, or if a focusable control ends up | 11 * forget to label a control, or if a focusable control ends up |
12 * off-screen without being disabled, for example. | 12 * off-screen without being disabled, for example. |
13 * @constructor | 13 * @constructor |
14 */ | 14 */ |
15 function OobeWebUITest() {} | 15 function OobeWebUITest() {} |
16 | 16 |
17 OobeWebUITest.prototype = { | 17 OobeWebUITest.prototype = { |
18 __proto__: testing.Test.prototype, | 18 __proto__: testing.Test.prototype, |
19 | 19 |
20 browsePreload: 'chrome://oobe#login', | 20 browsePreload: 'chrome://oobe/oobe', |
21 | 21 |
22 isAsync: false | 22 isAsync: false |
23 }; | 23 }; |
24 | 24 |
25 TEST_F('OobeWebUITest', 'EmptyOobe', function() { | 25 TEST_F('OobeWebUITest', 'EmptyOobe', function() { |
26 }); | 26 }); |
27 | 27 |
28 TEST_F('OobeWebUITest', 'OobeConnect', function() { | 28 TEST_F('OobeWebUITest', 'OobeConnect', function() { |
29 Oobe.getInstance().showScreen({'id':'connect'}); | 29 Oobe.getInstance().showScreen({'id':'connect'}); |
30 }); | 30 }); |
(...skipping 14 matching lines...) Expand all Loading... |
45 // other way to initialize the appropriate C++ handlers. | 45 // other way to initialize the appropriate C++ handlers. |
46 TEST_F('OobeWebUITest', 'DISABLED_OobeUserImage', function() { | 46 TEST_F('OobeWebUITest', 'DISABLED_OobeUserImage', function() { |
47 Oobe.getInstance().showScreen({'id':'user-image'}); | 47 Oobe.getInstance().showScreen({'id':'user-image'}); |
48 }); | 48 }); |
49 | 49 |
50 // TODO: figure out what state to mock in order for this | 50 // TODO: figure out what state to mock in order for this |
51 // screen to show up. | 51 // screen to show up. |
52 TEST_F('OobeWebUITest', 'DISABLED_OobeAccountPicker', function() { | 52 TEST_F('OobeWebUITest', 'DISABLED_OobeAccountPicker', function() { |
53 Oobe.getInstance().showScreen({'id':'account-picker'}); | 53 Oobe.getInstance().showScreen({'id':'account-picker'}); |
54 }); | 54 }); |
OLD | NEW |