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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/resources/common.js

Issue 2536993002: Remove support for the keygen tag (Closed)
Patch Set: Rebased Created 3 years, 12 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
OLDNEW
1 function $(id) { 1 function $(id) {
2 return document.getElementById(id); 2 return document.getElementById(id);
3 } 3 }
4 4
5 function createFormControlDataSet() { 5 function createFormControlDataSet() {
6 // A list of labelable elements resides in http://www.whatwg.org/specs/web-a pps/current-work/multipage/forms.html#category-label 6 // A list of labelable elements resides in http://www.whatwg.org/specs/web-a pps/current-work/multipage/forms.html#category-label
7 var formControlClassNames = [ 7 var formControlClassNames = [
8 'HTMLButtonElement', 8 'HTMLButtonElement',
9 'HTMLDataListElement', 9 'HTMLDataListElement',
10 'HTMLFieldSetElement', 10 'HTMLFieldSetElement',
11 'HTMLInputElement', 11 'HTMLInputElement',
12 'HTMLKeygenElement',
13 'HTMLLabelElement', 12 'HTMLLabelElement',
14 'HTMLLegendElement', 13 'HTMLLegendElement',
15 'HTMLMeterElement', 14 'HTMLMeterElement',
16 'HTMLObjectElement', 15 'HTMLObjectElement',
17 'HTMLOptGroupElement', 16 'HTMLOptGroupElement',
18 'HTMLOptionElement', 17 'HTMLOptionElement',
19 'HTMLOutputElement', 18 'HTMLOutputElement',
20 'HTMLProgressElement', 19 'HTMLProgressElement',
21 'HTMLSelectElement', 20 'HTMLSelectElement',
22 'HTMLTextAreaElement' 21 'HTMLTextAreaElement'
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 return; 230 return;
232 } 231 }
233 for (var i = 0; i < str.length; ++i) { 232 for (var i = 0; i < str.length; ++i) {
234 var key = str.charAt(i); 233 var key = str.charAt(i);
235 if (key == '\n') 234 if (key == '\n')
236 key = 'Enter'; 235 key = 'Enter';
237 eventSender.keyDown(key); 236 eventSender.keyDown(key);
238 } 237 }
239 } 238 }
240 239
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698