Closed Bug 378018 Opened 17 years ago Closed 17 years ago

Need an automated test for <textbox type="number">

Categories

(Toolkit :: UI Widgets, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta1

People

(Reporter: enndeakin, Assigned: enndeakin)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Bug 368097 has a test for generic textboxes which can be used as a basis for this.
Attached patch numberbox tests (obsolete) — Splinter Review
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
Attachment #262156 - Attachment is obsolete: true
Attachment #276786 - Flags: review?(mano)
Comment on attachment 276786 [details] [diff] [review]
updated numberbox tests

r=mano
Attachment #276786 - Flags: review?(mano) → review+
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Blocks: 474502
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: