INPUT_MULTIPLE_FIELDS_UI: Step-up/-down of hour field should respect min/max attributes
[WebKit-https.git] / LayoutTests / fast / forms / time-multiple-fields / time-multiple-fields-readonly-subfield-expected.txt
1 Sub-fields in input[type=time] should be read-only in some cases. This requires window.internals.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 createTimeInput argument order: min, max, step, value
7
8 Milliseconds field:
9 PASS isReadOnlyField(createTimeInput("00:00:00.500", null, step1sec, ""), pseudoMillisecond) is true
10 PASS isReadOnlyField(createTimeInput("00:00:00.500", null, step1sec, "00:00:00.500"), pseudoMillisecond) is true
11 PASS isReadOnlyField(createTimeInput("00:00:00.500", null, step1sec, "00:00:00.600"), pseudoMillisecond) is false
12 PASS isReadOnlyField(createTimeInput("00:00:00.000", null, step1sec, "00:00:00.600"), pseudoMillisecond) is false
13 Seconds field:
14 PASS isReadOnlyField(createTimeInput("00:00:30", null, step1min, ""), pseudoSecond) is true
15 PASS isReadOnlyField(createTimeInput("00:00:30", null, step1min, "00:00:30"), pseudoSecond) is true
16 PASS isReadOnlyField(createTimeInput("00:00:30.500", null, step1min, "00:00:30.600"), pseudoSecond) is true
17 PASS isReadOnlyField(createTimeInput("00:00:30", null, step1min, "00:00:35"), pseudoSecond) is false
18 PASS isReadOnlyField(createTimeInput("00:00:00", null, step1min, "00:00:35"), pseudoSecond) is false
19 Minutes field:
20 PASS isReadOnlyField(createTimeInput("00:30", null, step1hour, ""), pseudoMinute) is true
21 PASS isReadOnlyField(createTimeInput("00:30", null, step1hour, "00:30"), pseudoMinute) is true
22 PASS isReadOnlyField(createTimeInput("00:30", null, step1hour, "00:35"), pseudoMinute) is false
23 PASS isReadOnlyField(createTimeInput("00:00", null, step1hour, "00:35"), pseudoMinute) is false
24 Hour field:
25 PASS isReadOnlyField(createTimeInput("11:00", null, step1day, ""), pseudoHour) is false
26 PASS isReadOnlyField(createTimeInput("11:00", null, step1day, ""), pseudoAMPM) is false
27 PASS isReadOnlyField(createTimeInput("11:00", null, step1day, ""), pseudoMinute) is true
28 PASS isReadOnlyField(createTimeInput("11:30", null, step1day, "11:30"), pseudoHour) is false
29 PASS isReadOnlyField(createTimeInput("11:30", null, step1day, "11:30"), pseudoAMPM) is false
30 PASS isReadOnlyField(createTimeInput("11:30", null, step1day, "11:30"), pseudoMinute) is true
31 PASS isReadOnlyField(createTimeInput("11:30", null, step1day, "12:30"), pseudoHour) is false
32 PASS isReadOnlyField(createTimeInput("11:30", null, step1day, "12:30"), pseudoAMPM) is false
33 PASS isReadOnlyField(createTimeInput("11:30", null, step1day, "12:30"), pseudoMinute) is true
34 PASS isReadOnlyField(createTimeInput("00:00", null, step1day, "12:30"), pseudoHour) is false
35 PASS isReadOnlyField(createTimeInput("00:00", null, step1day, "12:30"), pseudoAMPM) is false
36 PASS isReadOnlyField(createTimeInput("00:00", null, step1day, "12:30"), pseudoMinute) is false
37 PASS isReadOnlyField(createTimeInput("00:00", "00:30", step1min, ""), pseudoHour) is true
38 PASS isReadOnlyField(createTimeInput("00:00", "00:30", step1min, ""), pseudoAMPM) is true
39 PASS isReadOnlyField(createTimeInput("00:00", "00:30", step1min, ""), pseudoMinute) is false
40 PASS isReadOnlyField(createTimeInput("00:00", "00:00", step1hour, ""), pseudoHour) is false
41 PASS isReadOnlyField(createTimeInput("00:00", "00:00", step1hour, ""), pseudoAMPM) is true
42 PASS isReadOnlyField(createTimeInput("00:00", "00:00", step1hour, ""), pseudoMinute) is true
43 AM/PM field:
44 PASS isReadOnlyField(createTimeInput("00:00", null, step1min, ""), pseudoAMPM) is false
45 PASS isReadOnlyField(createTimeInput("23:00", null, step1min, ""), pseudoAMPM) is false
46 PASS isReadOnlyField(createTimeInput(null, "01:00", step1min, ""), pseudoAMPM) is false
47 PASS isReadOnlyField(createTimeInput(null, "23:00", step1min, ""), pseudoAMPM) is false
48 PASS isReadOnlyField(createTimeInput("00:00", "11:59", step1min, ""), pseudoAMPM) is true
49 PASS isReadOnlyField(createTimeInput("00:00", "12:00", step1min, ""), pseudoAMPM) is false
50 PASS isReadOnlyField(createTimeInput("12:00", "12:00", step1min, ""), pseudoAMPM) is true
51 PASS isReadOnlyField(createTimeInput("12:00", "23:59", step1min, ""), pseudoAMPM) is true
52 PASS successfullyParsed is true
53
54 TEST COMPLETE
55