// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * Fixture for ChromeOs WebUI OOBE testing. * * There's one test for each page in the Chrome OS Out-of-box-experience * (OOBE), so that an accessibility audit can be run automatically on * each one. This will alert a developer immediately if they accidentally * forget to label a control, or if a focusable control ends up * off-screen without being disabled, for example. * @constructor */ function OobeWebUITest() {} OobeWebUITest.prototype = { __proto__: testing.Test.prototype, browsePreload: 'chrome://oobe/oobe', isAsync: false }; TEST_F('OobeWebUITest', 'EmptyOobe', function() { }); TEST_F('OobeWebUITest', 'OobeConnect', function() { Oobe.getInstance().showScreen({'id':'connect'}); }); TEST_F('OobeWebUITest', 'OobeEula', function() { Oobe.getInstance().showScreen({'id':'eula'}); }); TEST_F('OobeWebUITest', 'OobeUpdate', function() { Oobe.getInstance().showScreen({'id':'update'}); }); TEST_F('OobeWebUITest', 'OobeGaiaSignIn', function() { Oobe.getInstance().showScreen({'id':'gaia-signin'}); }); // TODO: this either needs a WebUILoginDisplay instance or some // other way to initialize the appropriate C++ handlers. TEST_F('OobeWebUITest', 'DISABLED_OobeUserImage', function() { Oobe.getInstance().showScreen({'id':'user-image'}); }); // TODO: figure out what state to mock in order for this // screen to show up. TEST_F('OobeWebUITest', 'DISABLED_OobeAccountPicker', function() { Oobe.getInstance().showScreen({'id':'account-picker'}); });