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

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

Issue 683813004: Fewer focusable items in chrome://settings/searchEngines (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, fix failing browser_tests, add .pak file to GN Created 6 years, 1 month 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
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 * Returns the HTML element for the |field|. 6 * Returns the HTML element for the |field|.
7 * @param {string} field The field name for the element. 7 * @param {string} field The field name for the element.
8 * @return {HTMLElement} The HTML element. 8 * @return {HTMLElement} The HTML element.
9 */ 9 */
10 function getField(field) { 10 function getField(field) {
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 assertEquals(this.browsePreload, document.location.href); 188 assertEquals(this.browsePreload, document.location.href);
189 189
190 var phoneList = getField('phone'); 190 var phoneList = getField('phone');
191 expectEquals(0, phoneList.validationRequests_); 191 expectEquals(0, phoneList.validationRequests_);
192 phoneList.doneValidating().then(function() { 192 phoneList.doneValidating().then(function() {
193 phoneList.focus(); 193 phoneList.focus();
194 var input = phoneList.querySelector('input'); 194 var input = phoneList.querySelector('input');
195 input.focus(); 195 input.focus();
196 document.execCommand('insertText', false, '111-222-333'); 196 document.execCommand('insertText', false, '111-222-333');
197 assertEquals('111-222-333', input.value); 197 assertEquals('111-222-333', input.value);
198 input.blur(); 198 phoneList.blur();
bondd 2014/11/11 23:43:24 The way that InlineEditableItem triggers validatio
Dan Beam 2014/11/11 23:59:29 this does nothing afaict: http://jsfiddle.net/6pwo
bondd 2014/11/12 00:43:56 What breaks: doneValidating() never fires, so test
Dan Beam 2014/11/12 01:02:28 that doesn't happen because you can't blur() an el
Dan Beam 2014/11/12 02:23:11 nothing is real, this code makes no sense. lgtm
199 phoneList.doneValidating().then(testDone); 199 phoneList.doneValidating().then(testDone);
200 }); 200 });
201 }); 201 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698