Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / date-multiple-fields / date-multiple-fields-focus.html
blobaa1cfa3a6b02d298922f228726d4f79e4c4111d8
1 <!DOCTYPE html>
2 <body>
3 <script src="../../../resources/js-test.js"></script>
4 <script>
5 description('Check if element.focus() does not focus on disabled sub-fields.');
6 if (window.internals)
7 internals.settings.setLangAttributeAwareFormControlUIEnabled(true);
8 else
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"
19 dateInput.focus();
20 // Because the year field is fixed, the first focusable element is the
21 // month field.
22 shouldBeEqualToString('internals.shadowPseudoId(internals.youngestShadowRoot(dateInput).activeElement)', '-webkit-datetime-edit-month-field');
23 dateInput.blur();
24 dateInput.focus();
25 shouldBeEqualToString('internals.shadowPseudoId(internals.youngestShadowRoot(dateInput).activeElement)', '-webkit-datetime-edit-month-field');
27 dateInput.remove();
28 </script>
29 </body>