Closed Bug 378018 Opened 13 years ago Closed 13 years ago
Need an automated test for <textbox type="number">
Bug 368097 has a test for generic textboxes which can be used as a basis for this.
Needs window to be focused to work properly. Used the DOMWindowUtils.send(Mouse/Key)Event functions here, but these calls should be put somewhere else.
sayrer, where should I add the event functions, or are there already some calls that use the DOMWindowUtils events simulation?
Status: NEW → ASSIGNED
(In reply to comment #2) > sayrer, where should I add the event functions, or are there already some calls > that use the DOMWindowUtils events simulation? > There's an EventUtils.js file in testing/mochitest/tests/SimpleTest. It has sendKey and things that predate your DOMWindowUtils code. I'm not sure if we should replace that stuff with your new method or just add to it. You and bz (who wrote the original EventUtils.js) can make a more informed decision than I can.
Yeah, I think the existing EventUtils key-sending code does what you want here (and also handles people cancelling part of the keypress, etc).
Target Milestone: --- → mozilla1.9beta2
Comment on attachment 276786 [details] [diff] [review] updated numberbox tests r=mano
Attachment #276786 - Flags: review?(mano) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.