Closed Bug 521282 Opened 15 years ago Closed 15 years ago

Make sure the browser window is focused before each test

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9.3a1

People

(Reporter: dao, Assigned: dao)

References

Details

Attachments

(1 file)

Attached patch patch (deleted) — Splinter Review
I was unable to make this work with a focus event listener on Linux. I had the same problem in browser_ctrlTab.js, which lead to the setTimout pattern. That has been working quite reliably in existing tests. Everything passed on the tryserver with this patch.
Attachment #405300 - Flags: review?(gavin.sharp)
Comment on attachment 405300 [details] [diff] [review]
patch

r=mano
Attachment #405300 - Flags: review?(gavin.sharp) → review+
http://hg.mozilla.org/mozilla-central/rev/13153bb68e1b

I made this use the activate event, which didn't exist yet when I wrote the initial patch.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
OS: Linux → All
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
Blocks: 531227
Blocks: 511684
Depends on: 542928
Component: BrowserTest → Mochitest
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: