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.
6 * TestFixture for autofill options WebUI testing.
7 * @extends {testing.Test}
10 function AutofillOptionsWebUITest() {}
12 AutofillOptionsWebUITest.prototype = {
13 __proto__: testing.Test.prototype,
16 * Browse to autofill options.
18 browsePreload: 'chrome://settings-frame/autofill',
21 // Test opening the autofill options has correct location.
22 TEST_F('AutofillOptionsWebUITest', 'testOpenAutofillOptions', function() {
23 assertEquals(this.browsePreload, document.location.href);
27 * TestFixture for autofill edit address overlay WebUI testing.
28 * @extends {testing.Test}
31 function AutofillEditAddressWebUITest() {}
33 AutofillEditAddressWebUITest.prototype = {
34 __proto__: testing.Test.prototype,
37 * Browse to autofill edit address overlay.
39 browsePreload: 'chrome://settings-frame/autofillEditAddress',
45 * TODO(tkent): Fix an accessibility error.
47 runAccessibilityChecks: false,
50 TEST_F('AutofillEditAddressWebUITest',
51 'testAutofillPhoneValueListDoneValidating',
53 assertEquals(this.browsePreload, document.location.href);
55 var phoneList = $('phone-list');
56 expectEquals(0, phoneList.validationRequests_);
57 phoneList.doneValidating().then(function() {
59 var input = phoneList.querySelector('input');
61 document.execCommand('insertText', false, '111-222-333');
62 assertEquals('111-222-333', input.value);
64 phoneList.doneValidating().then(function() {