| 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 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 TEST_F('OobeWebUITest', 'OobeUpdate', function() { | 51 TEST_F('OobeWebUITest', 'OobeUpdate', function() { |
| 52 Oobe.getInstance().showScreen({'id':'update'}); | 52 Oobe.getInstance().showScreen({'id':'update'}); |
| 53 }); | 53 }); |
| 54 | 54 |
| 55 TEST_F('OobeWebUITest', 'OobeGaiaSignIn', function() { | 55 TEST_F('OobeWebUITest', 'OobeGaiaSignIn', function() { |
| 56 Oobe.getInstance().showScreen({'id':'gaia-signin'}); | 56 Oobe.getInstance().showScreen({'id':'gaia-signin'}); |
| 57 }); | 57 }); |
| 58 | 58 |
| 59 TEST_F('OobeWebUITest', 'OobeSupervisedUsers', function() { | 59 TEST_F('OobeWebUITest', 'OobeSupervisedUsers', function() { |
| 60 Oobe.getInstance().showScreen( | 60 Oobe.getInstance().showScreen( |
| 61 {'id' : 'managed-user-creation', | 61 {'id' : 'supervised-user-creation', |
| 62 'data' : createOobeWebUITestSupervisedManagerData()}); | 62 'data' : createOobeWebUITestSupervisedManagerData()}); |
| 63 }); | 63 }); |
| 64 | 64 |
| 65 TEST_F('OobeWebUITest', 'OobeSupervisedUsers2', function() { | 65 TEST_F('OobeWebUITest', 'OobeSupervisedUsers2', function() { |
| 66 Oobe.getInstance().showScreen( | 66 Oobe.getInstance().showScreen( |
| 67 {'id' : 'managed-user-creation', | 67 {'id' : 'supervised-user-creation', |
| 68 'data' : createOobeWebUITestSupervisedManagerData()}); | 68 'data' : createOobeWebUITestSupervisedManagerData()}); |
| 69 $('managed-user-creation').setVisiblePage_('manager'); | 69 $('supervised-user-creation').setVisiblePage_('manager'); |
| 70 }); | 70 }); |
| 71 | 71 |
| 72 TEST_F('OobeWebUITest', 'OobeSupervisedUsers3', function() { | 72 TEST_F('OobeWebUITest', 'OobeSupervisedUsers3', function() { |
| 73 Oobe.getInstance().showScreen( | 73 Oobe.getInstance().showScreen( |
| 74 {'id' : 'managed-user-creation', | 74 {'id' : 'supervised-user-creation', |
| 75 'data' : createOobeWebUITestSupervisedManagerData()}); | 75 'data' : createOobeWebUITestSupervisedManagerData()}); |
| 76 $('managed-user-creation').setDefaultImages( | 76 $('supervised-user-creation').setDefaultImages( |
| 77 [{'url': 'chrome://nothing/', 'title': 'None'}, | 77 [{'url': 'chrome://nothing/', 'title': 'None'}, |
| 78 {'url': 'chrome://nothing/', 'title': 'None'}]); | 78 {'url': 'chrome://nothing/', 'title': 'None'}]); |
| 79 $('managed-user-creation').setVisiblePage_('username'); | 79 $('supervised-user-creation').setVisiblePage_('username'); |
| 80 }); | 80 }); |
| 81 | 81 |
| 82 // TODO: this either needs a WebUILoginDisplay instance or some | 82 // TODO: this either needs a WebUILoginDisplay instance or some |
| 83 // other way to initialize the appropriate C++ handlers. | 83 // other way to initialize the appropriate C++ handlers. |
| 84 TEST_F('OobeWebUITest', 'DISABLED_OobeUserImage', function() { | 84 TEST_F('OobeWebUITest', 'DISABLED_OobeUserImage', function() { |
| 85 Oobe.getInstance().showScreen({'id':'user-image'}); | 85 Oobe.getInstance().showScreen({'id':'user-image'}); |
| 86 }); | 86 }); |
| 87 | 87 |
| 88 // TODO: figure out what state to mock in order for this | 88 // TODO: figure out what state to mock in order for this |
| 89 // screen to show up. | 89 // screen to show up. |
| 90 TEST_F('OobeWebUITest', 'DISABLED_OobeAccountPicker', function() { | 90 TEST_F('OobeWebUITest', 'DISABLED_OobeAccountPicker', function() { |
| 91 Oobe.getInstance().showScreen({'id':'account-picker'}); | 91 Oobe.getInstance().showScreen({'id':'account-picker'}); |
| 92 }); | 92 }); |
| OLD | NEW |