Closed
Bug 1137643
Opened 9 years ago
Closed 8 years ago
waitForEvents has errors
Categories
(Thunderbird :: Testing Infrastructure, defect)
Thunderbird
Testing Infrastructure
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 52.0
People
(Reporter: Taraman, Assigned: Taraman, Mentored)
References
()
Details
(Whiteboard: [lang=js][mozmill-2.0.10])
Attachments
(1 file)
1.11 KB,
patch
|
Fallen
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1118012 +++ In the TB-Version of Mozmill, the function waitForEvents.wait() produces 2 errors: - ex is not defined - this.node is not defined The Problem is in [1], which is the copy, Thunderbird uses for its Mozmill. first error is caused by a typo (ex ISO e) second error is caused by this.node not being in scope. This is addressed by using "self". The Bug is already fixed in Mozmill (see bug 118012). Since Thunderbird uses an old version witch will not get updated, this fixes it here. Patch for comm-central is attached. [1]: http://mxr.mozilla.org/comm-central/source/mail/test/resources/mozmill/mozmill/extension/resource/modules/controller.js#133
Attachment #8570396 -
Flags: review?(standard8)
Comment 1•9 years ago
|
||
Comment on attachment 8570396 [details] [diff] [review] fix_waitForEvents.diff Given this is calendar related, I think Philipp can review this.
Attachment #8570396 -
Flags: review?(standard8) → review?(philipp)
Comment 2•9 years ago
|
||
Comment on attachment 8570396 [details] [diff] [review] fix_waitForEvents.diff Review of attachment 8570396 [details] [diff] [review]: ----------------------------------------------------------------- ::: mail/test/resources/mozmill/mozmill/extension/resource/modules/controller.js @@ +132,3 @@ > utils.waitFor(function() { > + return self.node.firedEvents[e] == true; > + }, "Timeout happened before event '" + e +"' was fired.", timeout, interval); Can we use latest ES6 here? If so, you could just use an arrow function and keep |this|. I don't really mind either way though, r=philipp
Attachment #8570396 -
Flags: review?(philipp) → review+
Assignee | ||
Comment 3•9 years ago
|
||
Actually this is a general testing issue. But since the calendar mozmill tests are the only ones right now who use this function, I'll go with the review of Philipp. I'll have a look at the -> in ES6 But the patch went into Mozmill 2 already as is.
Assignee | ||
Comment 4•8 years ago
|
||
This patch is lying around now for some time. If it's ok, I like to check it in as is, since as mentioned in the previous post, it is in Mozmill 2.0 exactly the same way.
Flags: needinfo?(philipp)
Assignee | ||
Comment 6•8 years ago
|
||
pushed to comm-central -> https://hg.mozilla.org/comm-central/rev/7744a4fe857d4e5297a3a9312b1c6370ef294eac
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 52.0
You need to log in
before you can comment on or make changes to this bug.
Description
•