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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/resources/multiple-fields-value-set-empty.js

Issue 2100243002: Remove non-standardize key code names from event_sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix inspector tests that were missed by sed Created 4 years, 5 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 var input; 1 var input;
2 var emptyText; 2 var emptyText;
3 3
4 function testSettingEmptyStringClearsSubFields(type) { 4 function testSettingEmptyStringClearsSubFields(type) {
5 description('Check if input.value="" clears an input with partially-specifie d value.'); 5 description('Check if input.value="" clears an input with partially-specifie d value.');
6 6
7 input = document.createElement('input'); 7 input = document.createElement('input');
8 input.type = type; 8 input.type = type;
9 document.body.appendChild(input); 9 document.body.appendChild(input);
10 input.focus(); 10 input.focus();
11 emptyText = getUserAgentShadowTextContent(input); 11 emptyText = getUserAgentShadowTextContent(input);
12 if (!window.eventSender) 12 if (!window.eventSender)
13 debug('This test needs to be run on DRT/WTR.'); 13 debug('This test needs to be run on DRT/WTR.');
14 else { 14 else {
15 debug('Empty text: ' + emptyText); 15 debug('Empty text: ' + emptyText);
16 shouldNotBe('eventSender.keyDown("upArrow"); getUserAgentShadowTextConte nt(input)', 'emptyText'); 16 shouldNotBe('eventSender.keyDown("ArrowUp"); getUserAgentShadowTextConte nt(input)', 'emptyText');
17 shouldBe('input.value = ""; getUserAgentShadowTextContent(input)', 'empt yText'); 17 shouldBe('input.value = ""; getUserAgentShadowTextContent(input)', 'empt yText');
18 input.remove(); 18 input.remove();
19 } 19 }
20 } 20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698