| 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 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <script> | 7 <script> |
| 8 description('Test for a capturing bug of spin buttons in a type=numnber input.')
; | 8 description('Test for a capturing bug of spin buttons in a type=numnber input.')
; |
| 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 min=0 max=100><input ty
pe=number id=another value=1 min=0 max=100>'; | 12 parent.innerHTML = '<input type=number id=number value=0 min=0 max=100><input ty
pe=number id=another value=1 min=0 max=100>'; |
| 13 var numberInput = document.getElementById('number'); | 13 var numberInput = document.getElementById('number'); |
| 14 var anotherInput = document.getElementById('another'); | 14 var anotherInput = document.getElementById('another'); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 29 eventSender.mouseUp(); | 29 eventSender.mouseUp(); |
| 30 shouldBe('anotherInput.value', '"2"'); | 30 shouldBe('anotherInput.value', '"2"'); |
| 31 | 31 |
| 32 parent.innerHTML = ''; | 32 parent.innerHTML = ''; |
| 33 } else { | 33 } else { |
| 34 document.getElementById('console').innerHTML = '<p>No eventSender. <p>Manual
test instruction: Click the upper button of the first input field, then click t
he upper button of the second input field. Confirm that the second input field
value is changed.'; | 34 document.getElementById('console').innerHTML = '<p>No eventSender. <p>Manual
test instruction: Click the upper button of the first input field, then click t
he upper button of the second input field. Confirm that the second input field
value is changed.'; |
| 35 } | 35 } |
| 36 </script> | 36 </script> |
| 37 </body> | 37 </body> |
| 38 </html> | 38 </html> |
| OLD | NEW |