Closed
Bug 815441
Opened 13 years ago
Closed 13 years ago
Errors should pre-empt emulator callback warning
Categories
(Remote Protocol :: Marionette, defect)
Remote Protocol
Marionette
Tracking
(firefox18 fixed, firefox19 fixed, firefox20 fixed)
RESOLVED
FIXED
mozilla20
People
(Reporter: jgriffin, Assigned: jgriffin)
Details
Attachments
(1 file, 2 obsolete files)
|
1.64 KB,
patch
|
jgriffin
:
review+
|
Details | Diff | Splinter Review |
Currently, if an async call fails due to some JS error that occurs during an emulator callback, the test will fail with "emulator callback still pending". This obscures the real source of the error, which is the JS error.
| Assignee | ||
Comment 1•13 years ago
|
||
Attachment #685401 -
Flags: review?(mdas)
Comment 2•13 years ago
|
||
Comment on attachment 685401 [details] [diff] [review]
Make errors pre-empt emulator callback warning,
Review of attachment 685401 [details] [diff] [review]:
-----------------------------------------------------------------
::: testing/marionette/marionette-listener.js
@@ +304,5 @@
> + value = "Emulator callback still pending when finish() called";
> + status = 500;
> + }
> + _emu_cbs = {};
> +
How about
if (status == 0) {
if (Object ....) {
}
else {
}
}
instead of checking the status again on line 309, so it's less repetitive?
Attachment #685401 -
Flags: review?(mdas) → review+
| Assignee | ||
Comment 3•13 years ago
|
||
(In reply to Malini Das [:mdas] from comment #2)
> Comment on attachment 685401 [details] [diff] [review]
> Make errors pre-empt emulator callback warning,
>
> Review of attachment 685401 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: testing/marionette/marionette-listener.js
> @@ +304,5 @@
> > + value = "Emulator callback still pending when finish() called";
> > + status = 500;
> > + }
> > + _emu_cbs = {};
> > +
>
> How about
>
> if (status == 0) {
> if (Object ....) {
> }
> else {
> }
> }
>
> instead of checking the status again on line 309, so it's less repetitive?
If we do that, then I'd have to duplicate the sendError line at http://mxr.mozilla.org/mozilla-central/source/testing/marionette/marionette-listener.js#329 in the case where emulator callbacks are still pending.
| Assignee | ||
Comment 4•13 years ago
|
||
Addressed review comments
| Assignee | ||
Updated•13 years ago
|
Attachment #685401 -
Attachment is obsolete: true
| Assignee | ||
Comment 5•13 years ago
|
||
Really address review comments (forgot to hit save previously)...
| Assignee | ||
Updated•13 years ago
|
Attachment #685827 -
Attachment is obsolete: true
| Assignee | ||
Comment 6•13 years ago
|
||
Comment on attachment 685828 [details] [diff] [review]
Make errors pre-empt emulator callback warning,
Carry r+ forward.
Attachment #685828 -
Flags: review+
| Assignee | ||
Comment 7•13 years ago
|
||
Whiteboard: [automation-needed-in-aurora][automation-needed-in-beta]
Target Milestone: --- → mozilla20
Comment 8•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 9•13 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/36c874449af9
https://hg.mozilla.org/releases/mozilla-beta/rev/c0f2bca4b970
status-firefox18:
--- → fixed
status-firefox19:
--- → fixed
status-firefox20:
--- → fixed
Whiteboard: [automation-needed-in-aurora][automation-needed-in-beta]
Updated•3 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•