jamesr@google.com | 079b9e3 | 2010-11-08 21:52:40 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <style> |
| 5 | input::-webkit-inner-spin-button { display: none; } |
| 6 | </style> |
| 7 | </head> |
| 8 | <body> |
| 9 | <input type="number" id="in"> |
| 10 | <script> |
rniwa@webkit.org | ea3cf92 | 2012-06-22 06:52:33 +0000 | [diff] [blame] | 11 | if (window.testRunner) |
| 12 | testRunner.dumpAsText(); |
jamesr@google.com | 079b9e3 | 2010-11-08 21:52:40 +0000 | [diff] [blame] | 13 | var input = document.getElementById('in'); |
| 14 | var evt = document.createEvent("MouseEvent"); |
| 15 | evt.initMouseEvent("click", true, true, window, 10, 10, 10, 10); |
| 16 | input.dispatchEvent(evt); |
| 17 | input.style.display='none'; |
| 18 | </script> |
| 19 | PASS |
| 20 | </body> |
| 21 | </html> |