OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 GEN_INCLUDE(['options_browsertest_base.js']); | |
6 | |
7 /** | |
8 * TestFixture for profile settings reset WebUI testing. | |
9 * @extends {testing.Test} | |
10 * @constructor | |
11 */ | |
12 function ProfileSettingsResetWebUITest() {} | |
13 | |
14 ProfileSettingsResetWebUITest.prototype = { | |
15 __proto__: OptionsBrowsertestBase.prototype, | |
16 | |
17 /** | |
18 * Browse to the reset profile settings page. | |
19 */ | |
20 browsePreload: 'chrome://settings-frame/resetProfileSettings', | |
21 | |
22 /** @override */ | |
23 setUp: function() { | |
24 OptionsBrowsertestBase.prototype.setUp.call(this); | |
25 | |
26 // Enable when failure is resolved. | |
27 // AX_TEXT_04: http://crbug.com/570551 | |
28 this.accessibilityAuditConfig.ignoreSelectors( | |
29 'linkWithUnclearPurpose', | |
30 '#reset-profile-settings-overlay > .action-area > .hbox.stretch > A'); | |
31 }, | |
32 }; | |
33 | |
34 // Test opening the profile settings reset has correct location. | |
35 TEST_F('ProfileSettingsResetWebUITest', 'testOpenProfileSettingsReset', | |
36 function() { | |
37 assertEquals(this.browsePreload, document.location.href); | |
38 }); | |
OLD | NEW |