1 Tests if value selection by calendar picker dispatches correct events.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Choosing a new value from the calendar picker. "input" and "change" events should be dispatched in this order.
7 ==> "input" event was dispatched.
8 ==> "change" event was dispatched.
9 PASS date1.value is "2000-01-03"
10 PASS eventsCounter.input is 1
11 PASS eventsCounter.change is 1
12 Choosing the same value from the calendar picker. No events should be dispatched.
13 PASS date1.value is "2000-01-03"
14 PASS eventsCounter.input is undefined.
15 PASS eventsCounter.change is undefined.
16 PASS successfullyParsed is true