Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: chrome/browser/ui/webui/options/autofill_options_browsertest.js

Issue 243013004: i18n address editing in chrome://settings/autofillEditAddress. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 * TestFixture for autofill options WebUI testing. 6 * TestFixture for autofill options WebUI testing.
7 * @extends {testing.Test} 7 * @extends {testing.Test}
8 * @constructor 8 * @constructor
9 */ 9 */
10 function AutofillOptionsWebUITest() {} 10 function AutofillOptionsWebUITest() {}
(...skipping 29 matching lines...) Expand all
40 40
41 /** @override */ 41 /** @override */
42 isAsync: true, 42 isAsync: true,
43 }; 43 };
44 44
45 TEST_F('AutofillEditAddressWebUITest', 45 TEST_F('AutofillEditAddressWebUITest',
46 'testAutofillPhoneValueListDoneValidating', 46 'testAutofillPhoneValueListDoneValidating',
47 function() { 47 function() {
48 assertEquals(this.browsePreload, document.location.href); 48 assertEquals(this.browsePreload, document.location.href);
49 49
50 var phoneList = $('phone-list'); 50 var phoneList =
51 document.querySelector('#autofill-edit-address-overlay [field=phone]');
51 expectEquals(0, phoneList.validationRequests_); 52 expectEquals(0, phoneList.validationRequests_);
52 phoneList.doneValidating().then(function() { 53 phoneList.doneValidating().then(function() {
53 phoneList.focus(); 54 phoneList.focus();
54 var input = phoneList.querySelector('input'); 55 var input = phoneList.querySelector('input');
55 input.focus(); 56 input.focus();
56 document.execCommand('insertText', false, '111-222-333'); 57 document.execCommand('insertText', false, '111-222-333');
57 assertEquals('111-222-333', input.value); 58 assertEquals('111-222-333', input.value);
58 input.blur(); 59 input.blur();
59 phoneList.doneValidating().then(function() { 60 phoneList.doneValidating().then(function() {
60 testDone(); 61 testDone();
61 }); 62 });
62 }); 63 });
63 }); 64 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698