OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 * TestFixture for kiosk app settings WebUI testing. | 6 * TestFixture for kiosk app settings WebUI testing. |
7 * @extends {testing.Test} | 7 * @extends {testing.Test} |
8 * @constructor | 8 * @constructor |
9 **/ | 9 */ |
10 function KioskAppSettingsWebUITest() {} | 10 function KioskAppSettingsWebUITest() {} |
11 | 11 |
12 KioskAppSettingsWebUITest.prototype = { | 12 KioskAppSettingsWebUITest.prototype = { |
13 __proto__: testing.Test.prototype, | 13 __proto__: testing.Test.prototype, |
14 | 14 |
15 /** | 15 /** |
16 * Browse to the kiosk app settings page. | 16 * Browse to the kiosk app settings page. |
17 */ | 17 */ |
18 browsePreload: 'chrome://extensions-frame/', | 18 browsePreload: 'chrome://extensions-frame/', |
19 | 19 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 var checkbox = $('kiosk-disable-bailout-shortcut'); | 227 var checkbox = $('kiosk-disable-bailout-shortcut'); |
228 | 228 |
229 this.settings_.hasAutoLaunchApp = false; | 229 this.settings_.hasAutoLaunchApp = false; |
230 extensions.KioskAppsOverlay.setSettings(this.settings_); | 230 extensions.KioskAppsOverlay.setSettings(this.settings_); |
231 expectTrue(checkbox.disabled); | 231 expectTrue(checkbox.disabled); |
232 | 232 |
233 this.settings_.hasAutoLaunchApp = true; | 233 this.settings_.hasAutoLaunchApp = true; |
234 extensions.KioskAppsOverlay.setSettings(this.settings_); | 234 extensions.KioskAppsOverlay.setSettings(this.settings_); |
235 expectFalse(checkbox.disabled); | 235 expectFalse(checkbox.disabled); |
236 }); | 236 }); |
OLD | NEW |