3 <script src=
"../../../resources/js-test.js"></script>
5 description('Check if element.focus() does not focus on disabled sub-fields.');
7 internals
.settings
.setLangAttributeAwareFormControlUIEnabled(true);
9 debug('This test requires DRT/WRT.');
11 var dateInput
= document
.createElement('input');
12 dateInput
.lang
= 'ja-jp';
13 dateInput
.type
= 'date';
14 dateInput
.min
= '2013-02-01';
15 dateInput
.max
= '2013-03-30';
16 document
.body
.appendChild(dateInput
);
17 // Assume the date format is "yyyy/MM/dd"
20 // Because the year field is fixed, the first focusable element is the
22 shouldBeEqualToString('internals.shadowPseudoId(internals.youngestShadowRoot(dateInput).activeElement)', '-webkit-datetime-edit-month-field');
25 shouldBeEqualToString('internals.shadowPseudoId(internals.youngestShadowRoot(dateInput).activeElement)', '-webkit-datetime-edit-month-field');