[iOS] Add iOS-specific tests and consolidate iOS-specific accessibility tests
[WebKit-https.git] / LayoutTests / platform / ios-simulator / ios / fast / forms / date-input-decorations.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <title>Date Input Test</title>
5     <style>
6     .fixed-width input {
7         width: 200px;
8     }
9     .flavored input {
10         letter-spacing: 8px;
11         border-color: green;
12         color: green;
13         font-size: 15px;
14         font-family: georgia, serif;
15         font-weight: bold;
16     }
17     </style>
18 </head>
19 <body>
20     <form method="get" action="#">
21         <div class="regular">
22             <input type="date"><br>
23             <input type="datetime"><br>
24             <input type="datetime-local"><br>
25             <input type="month"><br>
26             <input type="time"><br>
27             <input type="week"><br>
28         </div>
29         <br>
30         <div class="fixed-width">
31             <input type="date"><br>
32             <input type="datetime"><br>
33             <input type="datetime-local"><br>
34             <input type="month"><br>
35             <input type="time"><br>
36             <input type="week"><br>
37         </div>
38         <br>
39         <div class="flavored">
40             <input type="date"><br>
41             <input type="datetime"><br>
42             <input type="datetime-local"><br>
43             <input type="month"><br>
44             <input type="time"><br>
45             <input type="week"><br>
46         </div>
47         <br>
48         <input type="submit" value="Submit">
49     </form>
50     <script>
51     // Tue Apr 26 2011 18:56:20 GMT-0700 (PDT) which is Wed Apr 27 2011 01:56:20 GMT.
52     var date = new Date(1303869380391);
53     var dateAsNumber = +date;
54     var inputs = document.getElementsByTagName('input');
55     for (var i=0, len=inputs.length; i<len; ++i) {
56         var input = inputs[i];
57         if (input.type === "submit")
58             continue;
59         input.name = i;
60         if ("valueAsNumber" in input && input.type !== "month")
61             input.valueAsNumber = dateAsNumber;
62         else if ("valueAsDate" in input)
63             input.valueAsDate = date;
64     }
65     </script>
66 </body>
67 </html>