1 Sub-fields in input[type=week] should be read-only in some cases. This requires window.internals.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 createWeekInput argument order: min, max, value
9 PASS isReadOnlyField(createWeekInput("", "", ""), pseudoYear) is false
10 PASS isReadOnlyField(createWeekInput("2012-W50", "", ""), pseudoYear) is false
11 PASS isReadOnlyField(createWeekInput("", "2012-W50", ""), pseudoYear) is false
12 PASS isReadOnlyField(createWeekInput("", "", "2012-W50"), pseudoYear) is false
13 PASS isReadOnlyField(createWeekInput("2012-W01", "2012-W50", ""), pseudoYear) is true
14 PASS isReadOnlyField(createWeekInput("2012-W01", "2013-W50", ""), pseudoYear) is false
15 PASS isReadOnlyField(createWeekInput("2012-W01", "2012-W50", "2012-W05"), pseudoYear) is true
16 PASS isReadOnlyField(createWeekInput("2012-W01", "2012-W50", "2013-W01"), pseudoYear) is false
18 We should not make all the fields readonly by min/max, so week field is always editable.
19 PASS isReadOnlyField(createWeekInput("", "", ""), pseudoWeek) is false
20 PASS isReadOnlyField(createWeekInput("2012-W50", "", ""), pseudoWeek) is false
21 PASS isReadOnlyField(createWeekInput("", "2012-W50", ""), pseudoWeek) is false
22 PASS isReadOnlyField(createWeekInput("", "", "2012-W50"), pseudoWeek) is false
23 PASS isReadOnlyField(createWeekInput("2012-W50", "2012-W50", ""), pseudoWeek) is false
24 PASS isReadOnlyField(createWeekInput("2012-W49", "2013-W50", ""), pseudoWeek) is false
25 PASS isReadOnlyField(createWeekInput("2012-W50", "2013-W50", ""), pseudoWeek) is false
26 PASS isReadOnlyField(createWeekInput("2012-W50", "2012-W50", "2012-W50"), pseudoWeek) is false
27 PASS isReadOnlyField(createWeekInput("2012-W50", "2012-W50", "2012-W49"), pseudoWeek) is false
28 PASS successfullyParsed is true