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

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

Issue 11421028: Merge 135131 - input.value="" should clear date/time input elements with partial values (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 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 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("upArrow"); 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