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="../../../fast/js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description('Test for keyboard operations for <input type=number>'); | 8 description('Test for keyboard operations for <input type=number>'); |
9 var parent = document.createElement('div'); | 9 var parent = document.createElement('div'); |
10 document.body.appendChild(parent); | 10 document.body.appendChild(parent); |
(...skipping 18 matching lines...) Expand all Loading... |
29 input.disabled = true; | 29 input.disabled = true; |
30 eventSender.keyDown('upArrow'); | 30 eventSender.keyDown('upArrow'); |
31 shouldBe('input.value', '"123"'); | 31 shouldBe('input.value', '"123"'); |
32 input.removeAttribute('disabled'); | 32 input.removeAttribute('disabled'); |
33 | 33 |
34 debug('Read-only input element:'); | 34 debug('Read-only input element:'); |
35 input.readOnly = true; | 35 input.readOnly = true; |
36 eventSender.keyDown('upArrow'); | 36 eventSender.keyDown('upArrow'); |
37 shouldBe('input.value', '"123"'); | 37 shouldBe('input.value', '"123"'); |
38 </script> | 38 </script> |
39 <script src="../../../fast/js/resources/js-test-post.js"></script> | |
40 </body> | 39 </body> |
41 </html> | 40 </html> |
OLD | NEW |