OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <body> |
| 3 <script src="../../../resources/js-test.js"></script> |
| 4 <input type="number" id="input"></input> |
| 5 <script> |
| 6 description('should skip spaces from user input number'); |
| 7 var input = document.getElementById('input'); |
| 8 input.onblur = function() |
| 9 { |
| 10 shouldBe('input.valueAsNumber', '123456'); |
| 11 shouldBeEqualToString('input.value', '123456'); |
| 12 } |
| 13 window.onload = function() |
| 14 { |
| 15 input.focus(); |
| 16 document.execCommand('InsertText', false, ' 123 456 ') |
| 17 input.blur(); |
| 18 } |
| 19 </script> |
| 20 </body> |
| 21 </html> |
| 22 |
OLD | NEW |