Closed Bug 979936 Opened 10 years ago Closed 10 years ago

delete unused `quiet' param-handling code in setup.js

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla30

People

(Reporter: froydnj, Assigned: froydnj)

Details

Attachments

(1 file, 1 obsolete file)

      No description provided.
AFAICS from mochitest_options.py or runtests.py's buildURLOptions:

http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/runtests.py#291

there's no `quiet' param that can be provided as a URL parameter.
Attachment #8386208 - Flags: review?(jmaher)
Comment on attachment 8386208 [details] [diff] [review]
delete unused `quiet' param-handling code in setup.js

Review of attachment 8386208 [details] [diff] [review]:
-----------------------------------------------------------------

good find.
Attachment #8386208 - Flags: review?(jmaher) → review+
So, thinking about this and testing this shows the previous patch to be
spectacularly wrong, since if |params.quiet| does not exist, then
|!params.quiet| is always true.  Hence, the logging listener was always added.
Deleting the logging listener, therefore, causes lots of things to go wrong,
such as TEST_{START,END,etc.} messages not being printed...

I've corrected that mistake in the attached patch, moving the addListener()
call down close to initialization code, rather than in the middle of checking
params for various values.  I don't see anything wrong with carrying over r+ on
this, though I am going to sanity-check this with Try, just to make sure.
Attachment #8386208 - Attachment is obsolete: true
Attachment #8387122 - Flags: review+
Assignee: nobody → nfroyd
https://hg.mozilla.org/mozilla-central/rev/334db4ff0617
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: