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
3 // found in the LICENSE file.
6 * Fixture for ChromeOs WebUI OOBE testing.
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
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
12 * off-screen without being disabled, for example.
15 function OobeWebUITest() {}
17 OobeWebUITest.prototype = {
18 __proto__: testing.Test.prototype,
20 browsePreload: 'chrome://oobe/oobe',
25 TEST_F('OobeWebUITest', 'EmptyOobe', function() {
28 TEST_F('OobeWebUITest', 'OobeConnect', function() {
29 Oobe.getInstance().showScreen({'id':'connect'});
32 TEST_F('OobeWebUITest', 'OobeEula', function() {
33 Oobe.getInstance().showScreen({'id':'eula'});
36 TEST_F('OobeWebUITest', 'OobeUpdate', function() {
37 Oobe.getInstance().showScreen({'id':'update'});
40 TEST_F('OobeWebUITest', 'OobeGaiaSignIn', function() {
41 Oobe.getInstance().showScreen({'id':'gaia-signin'});
44 // TODO: this either needs a WebUILoginDisplay instance or some
45 // other way to initialize the appropriate C++ handlers.
46 TEST_F('OobeWebUITest', 'DISABLED_OobeUserImage', function() {
47 Oobe.getInstance().showScreen({'id':'user-image'});
50 // TODO: figure out what state to mock in order for this
52 TEST_F('OobeWebUITest', 'DISABLED_OobeAccountPicker', function() {
53 Oobe.getInstance().showScreen({'id':'account-picker'});