- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / chromeos / oobe_webui_browsertest.js
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.
4
5 /**
6  * Fixture for ChromeOs WebUI OOBE testing.
7  *
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.
13  * @constructor
14  */
15 function OobeWebUITest() {}
16
17 OobeWebUITest.prototype = {
18   __proto__: testing.Test.prototype,
19
20   browsePreload: 'chrome://oobe/oobe',
21
22   isAsync: false
23 };
24
25 TEST_F('OobeWebUITest', 'EmptyOobe', function() {
26 });
27
28 TEST_F('OobeWebUITest', 'OobeConnect', function() {
29   Oobe.getInstance().showScreen({'id':'connect'});
30 });
31
32 TEST_F('OobeWebUITest', 'OobeEula', function() {
33   Oobe.getInstance().showScreen({'id':'eula'});
34 });
35
36 TEST_F('OobeWebUITest', 'OobeUpdate', function() {
37   Oobe.getInstance().showScreen({'id':'update'});
38 });
39
40 TEST_F('OobeWebUITest', 'OobeGaiaSignIn', function() {
41   Oobe.getInstance().showScreen({'id':'gaia-signin'});
42 });
43
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'});
48 });
49
50 // TODO: figure out what state to mock in order for this
51 // screen to show up.
52 TEST_F('OobeWebUITest', 'DISABLED_OobeAccountPicker', function() {
53   Oobe.getInstance().showScreen({'id':'account-picker'});
54 });