Remove SnowLeopard expected results.
[WebKit-https.git] / LayoutTests / fast / forms / date-multiple-fields / date-multiple-fields-focus.html
1 <!DOCTYPE html>
2 <body>
3 <script src="../../js/resources/js-test-pre.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.');
10
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"
18
19 dateInput.focus();
20 // Because the year field is fixed, the first focusable element is the
21 // month field.
22 shouldBeEqualToString('internals.youngestShadowRoot(dateInput).activeElement.getAttribute("pseudo")', '-webkit-datetime-edit-month-field');
23 dateInput.blur();
24 dateInput.focus();
25 shouldBeEqualToString('internals.youngestShadowRoot(dateInput).activeElement.getAttribute("pseudo")', '-webkit-datetime-edit-month-field');
26
27 dateInput.remove();
28 </script>
29 <script src="../../js/resources/js-test-post.js"></script>
30 </body>