4 function testSettingEmptyStringClearsSubFields(type) {
5 description('Check if input.value="" clears an input with partially-specified value.');
7 input = document.createElement('input');
9 document.body.appendChild(input);
11 emptyText = getUserAgentShadowTextContent(input);
12 if (!window.eventSender)
13 debug('This test needs to be run on DRT/WTR.');
15 debug('Empty text: ' + emptyText);
16 shouldNotBe('eventSender.keyDown("upArrow"); getUserAgentShadowTextContent(input)', 'emptyText');
17 shouldBe('input.value = ""; getUserAgentShadowTextContent(input)', 'emptyText');