| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../resources/js-test.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="week" id="input" value="2000-W01"> | 10 <input type="week" id="input" value="2000-W01"> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 input.value = '2001-W01'; | 26 input.value = '2001-W01'; |
| 27 | 27 |
| 28 shouldBeEqualToString('input.value', '2001-W01'); | 28 shouldBeEqualToString('input.value', '2001-W01'); |
| 29 shouldBeUndefined('eventsCounter.input'); | 29 shouldBeUndefined('eventsCounter.input'); |
| 30 shouldBeUndefined('eventsCounter.change'); | 30 shouldBeUndefined('eventsCounter.change'); |
| 31 | 31 |
| 32 // We assume the date format is Week ww, yyyy. | 32 // We assume the date format is Week ww, yyyy. |
| 33 | 33 |
| 34 input.focus(); | 34 input.focus(); |
| 35 eventSender.keyDown('rightArrow'); | 35 eventSender.keyDown('ArrowRight'); |
| 36 eventSender.keyDown('downArrow'); | 36 eventSender.keyDown('ArrowDown'); |
| 37 | 37 |
| 38 shouldBeEqualToString('input.value', '2000-W01'); | 38 shouldBeEqualToString('input.value', '2000-W01'); |
| 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 |