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

RESOLVED FIXED in mozilla6

Status

()

Core
DOM: Core & HTML
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: mounir, Assigned: mounir)

Tracking

Trunk
mozilla6
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

6 years ago
Created attachment 526952 [details] [diff] [review]
Should work
Attachment #526952 - Flags: review?(ehsan)
(Assignee)

Updated

6 years ago
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+
(Assignee)

Comment 2

6 years ago
Pushed:
http://hg.mozilla.org/mozilla-central/rev/13794a5bde53
Status: ASSIGNED → RESOLVED
Last Resolved: 6 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.