| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 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 a capturing spec change to consider .2 as valid real numbe
r for step'); | 8 description('Test for a capturing spec change to consider .2 as valid real numbe
r for step'); |
| 9 | 9 |
| 10 var parent = document.createElement('div'); | 10 var parent = document.createElement('div'); |
| 11 document.body.appendChild(parent); | 11 document.body.appendChild(parent); |
| 12 parent.innerHTML = '<input type=number id=number value=0 step=".5">'; | 12 parent.innerHTML = '<input type=number id=number value=0 step=".5">'; |
| 13 var numberInput = document.getElementById('number'); | 13 var numberInput = document.getElementById('number'); |
| 14 | 14 |
| 15 if (window.eventSender) { | 15 if (window.eventSender) { |
| 16 // Move the cursor on the upper button of the input field. | 16 // Move the cursor on the upper button of the input field. |
| 17 eventSender.mouseMoveTo(numberInput.offsetLeft + numberInput.offsetWidth - 1
0, numberInput.offsetTop + numberInput.offsetHeight / 4); | 17 eventSender.mouseMoveTo(numberInput.offsetLeft + numberInput.offsetWidth - 1
0, numberInput.offsetTop + numberInput.offsetHeight / 4); |
| 18 | 18 |
| 19 eventSender.mouseDown(); | 19 eventSender.mouseDown(); |
| 20 eventSender.mouseUp(); | 20 eventSender.mouseUp(); |
| 21 shouldBe('numberInput.value', '"0.5"'); | 21 shouldBe('numberInput.value', '"0.5"'); |
| 22 | 22 |
| 23 parent.innerHTML = ''; | 23 parent.innerHTML = ''; |
| 24 } else { | 24 } else { |
| 25 document.getElementById('console').innerHTML = '<p>No eventSender. <p>Manual
test instruction: Click the upper button of the input field. Confirm that the
input field value is 0.5'; | 25 document.getElementById('console').innerHTML = '<p>No eventSender. <p>Manual
test instruction: Click the upper button of the input field. Confirm that the
input field value is 0.5'; |
| 26 } | 26 } |
| 27 | 27 |
| 28 </script> | 28 </script> |
| 29 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| 30 </body> | 29 </body> |
| 31 </html> | 30 </html> |
| OLD | NEW |