Closed Bug 423044 Opened 16 years ago Closed 16 years ago

random orange in test_prompt.html test

Categories

(Toolkit :: Password Manager, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta5

People

(Reporter: dbaron, Assigned: dbaron)

Details

Attachments

(1 file)

We just had a cycle of random orange in toolkit/components/passwordmgr/test/test_prompt.html.  dolske previously disabled a similar test in that test due to unexplained orange.

I suspect this is because the test is timing sensitive; it's easy for it to get the dialog in various stages of loading by lowering the timeout.

I have a patch (coming shortly) to make this test poll for the dialog being fully loaded (I don't think we display it to the user until it's fully loaded) and not do anything until it is.
Attached patch patchSplinter Review
I think we should try this.
Attachment #309555 - Flags: review?(dolske)
This passes for me on Mac, btw.
Comment on attachment 309555 [details] [diff] [review]
patch

I'm not sure this will fix the test that had previously been disabled; but having the test try again is definitely a good idea, regardless.
Attachment #309555 - Flags: review?(dolske) → review+
Assignee: dbaron → nobody
Status: ASSIGNED → NEW
Component: Satchel → Password Manager
Product: Toolkit → Firefox
QA Contact: satchel → password.manager
Version: 1.8 Branch → Trunk
Assignee: nobody → dbaron
Checked in to trunk, 2008-03-14 17:11 -0700.  We'll see what happens...
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3 beta5
Seems to have stuck, including for the test previously disabled.

I also checked in a followup removal of one line (with dolske's verbal review)  -- the ok(true, ...) saying that the timer was called -- to make it so the test doesn't produce a timing-dependent number of passes.
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: