OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 <script src="../resources/common.js"></script> | 5 <script src="../resources/common.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <p id="description"></p> | 8 <p id="description"></p> |
9 <div id="console"></div> | 9 <div id="console"></div> |
10 <input type="month" id="input" value="2000-01"> | 10 <input type="month" id="input" value="2000-01"> |
11 <script> | 11 <script> |
12 description('Test if change event fires when the user selects the default value
after the value was changed by JS.'); | 12 description('Test if change event fires when the user selects the default value
after the value was changed by JS.'); |
13 | 13 |
14 var eventsCounter = {}; | 14 var eventsCounter = {}; |
(...skipping 20 matching lines...) Expand all Loading... |
35 eventSender.keyDown('rightArrow'); | 35 eventSender.keyDown('rightArrow'); |
36 eventSender.keyDown('downArrow'); | 36 eventSender.keyDown('downArrow'); |
37 | 37 |
38 shouldBeEqualToString('input.value', '2000-01'); | 38 shouldBeEqualToString('input.value', '2000-01'); |
39 shouldBe('eventsCounter.input', '1'); | 39 shouldBe('eventsCounter.input', '1'); |
40 shouldBe('eventsCounter.change', '1'); | 40 shouldBe('eventsCounter.change', '1'); |
41 | 41 |
42 </script> | 42 </script> |
43 </body> | 43 </body> |
44 </html> | 44 </html> |
OLD | NEW |