Closed Bug 589026 Opened 15 years ago Closed 15 years ago

test_bug535043.html is taking too much time for nothing

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mounir, Assigned: mounir)

References

Details

Attachments

(1 file, 1 obsolete file)

This test is simulating key press on textarea which takes a lot of times and it is simulating more than 250 key presses like 10 times... On my computer, I need 90 seconds for a test that is completely trivial.
Attached patch Patch v1 (obsolete) — Splinter Review
This is reducing the number of synthesizeKey calls and it is also doing some cleaning in the test. Now, the test is run in one second.
Attachment #467632 - Flags: review?(ehsan)
Comment on attachment 467632 [details] [diff] [review] Patch v1 You should let the test use waitForFocus. In general, tests which synthesize keystrokes will fail intermittently on Linux unless the keystroke synthesis is done inside a waitForFocus callback. The rest of the patch looks great!
Attachment #467632 - Flags: review?(ehsan) → review-
Attached patch Patch v2Splinter Review
Attachment #467632 - Attachment is obsolete: true
Attachment #467933 - Flags: review?(ehsan)
Attachment #467933 - Flags: review?(ehsan) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: