Closed Bug 651078 Opened 9 years ago Closed 9 years ago

Make content/html/content/test/test_bug613113.html non flaky

Categories

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

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla6

People

(Reporter: mounir, Assigned: mounir)

References

Details

Attachments

(1 file)

Attached patch Should workSplinter Review
No description provided.
Attachment #526952 - Flags: review?(ehsan)
Whiteboard: [needs review]
Comment on attachment 526952 [details] [diff] [review]
Should work

> output.addEventListener("invalid", function() {
>   if (invalidEvent) {
>     ok(false, "invalid event has already been caught");
>   } else {
>     invalidEvent = true;
>     ok(true, "invalid event has been caught");
>+    setTimeout(SimpleTest.finish, 0);

This will call finish with this set to window, I think.  Change this to:

setTimeout(function() {
  SimpleTest.finish();
}, 0);

r=me with that.
Attachment #526952 - Flags: review?(ehsan) → review+
Pushed:
http://hg.mozilla.org/mozilla-central/rev/13794a5bde53
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [needs review]
Target Milestone: --- → mozilla6
You need to log in before you can comment on or make changes to this bug.