Closed
Bug 1143937
Opened 9 years ago
Closed 9 years ago
Make BrowserTestUtils.waitForEvent not use flaky timeouts and cover more use cases
Categories
(Testing :: General, defect)
Testing
General
Tracking
(firefox39 fixed)
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: Paolo, Assigned: Paolo)
References
Details
Attachments
(1 file, 1 obsolete file)
6.62 KB,
patch
|
smacleod
:
review+
|
Details | Diff | Splinter Review |
Similar change to bug 1142108, also removing the custom timeout since the test harness should take care of this for us.
Assignee | ||
Updated•9 years ago
|
Summary: Make TestUtils.waitForEvent not use flaky timeouts and cover more use cases → Make BrowserTestUtils.waitForEvent not use flaky timeouts and cover more use cases
Assignee | ||
Comment 1•9 years ago
|
||
Assignee: nobody → paolo.mozmail
Status: NEW → ASSIGNED
Attachment #8578342 -
Flags: review?(smacleod)
Assignee | ||
Updated•9 years ago
|
Iteration: --- → 39.2 - 23 Mar
Points: --- → 1
Flags: firefox-backlog+
Comment 2•9 years ago
|
||
Comment on attachment 8578342 [details] [diff] [review] The patch Review of attachment 8578342 [details] [diff] [review]: ----------------------------------------------------------------- Overall looks good, just the one problem with checkFn. ::: testing/mochitest/BrowserTestUtils/BrowserTestUtils.jsm @@ +115,5 @@ > + if (checkFn && !checkFn(event)) { > + return; > + } > + } finally { > + subject.removeEventListener(eventName, listener); This will run even when the "return;" is hit, so if "checkFn" gives false we'll remove the listener and never hit the event.
Attachment #8578342 -
Flags: review?(smacleod) → review-
Assignee | ||
Comment 3•9 years ago
|
||
It seems I made the same mistake in TestUtils.topicObserved.
Attachment #8578342 -
Attachment is obsolete: true
Attachment #8579597 -
Flags: review?(smacleod)
Comment 4•9 years ago
|
||
Comment on attachment 8579597 [details] [diff] [review] Updated patch Review of attachment 8579597 [details] [diff] [review]: ----------------------------------------------------------------- LGTM
Attachment #8579597 -
Flags: review?(smacleod) → review+
Assignee | ||
Comment 5•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/9d01ed5c9fc5
https://hg.mozilla.org/mozilla-central/rev/9d01ed5c9fc5
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•