Closed
Bug 627378
Opened 13 years ago
Closed 13 years ago
Remove tearDownModule is not defined error
Categories
(Testing Graveyard :: Mozmill, defect)
Testing Graveyard
Mozmill
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: aaronmt, Assigned: whimboo)
Details
Attachments
(1 file)
16.90 KB,
patch
|
aaronmt
:
review+
|
Details | Diff | Splinter Review |
In consensus via e-mail thread it was determined that tearDown function declaration is deemed unnecessary should the test not require one. Thus, it makes sense to remove the error found in the Error Console. Example below. Tested with 1.5.1 Error: teardownModule is not defined Source File: resource://mozmill/modules/frame.js -> testThemeInstallUninstall/test2.js Line: 95
Reporter | ||
Updated•13 years ago
|
Whiteboard: [mozmill-1.5.2+]
Assignee | ||
Comment 1•13 years ago
|
||
In Mozmill 1.5.2 this would cause our test to fail, because we have a console listener attached. Andrew, we should make sure to not call the teardownModule function if none exists.
No longer blocks: 608139
Whiteboard: [mozmill-1.5.2+] → [mozmill-1.5.2?]
Comment 2•13 years ago
|
||
(In reply to comment #1) > In Mozmill 1.5.2 this would cause our test to fail, because we have a console > listener attached. > > Andrew, we should make sure to not call the teardownModule function if none > exists. Yesterday we decided to remove the console listener completely (see bug 608139) due to the problem of printing out errors twice and went with Heather's method instead. I don't think this is an immediate problem for 1.5.2.
Assignee | ||
Comment 3•13 years ago
|
||
Ah, haven't known that. That sounds good then. Aaron, how do you start Mozmill to get this failure? Somehow I don't see it.
Assignee | ||
Comment 4•13 years ago
|
||
I think there is no need for mozmill-1.5.2 then.
No longer blocks: 608139
Whiteboard: [mozmill-1.5.2?]
Reporter | ||
Comment 5•13 years ago
|
||
(In reply to comment #3) > Ah, haven't known that. That sounds good then. Aaron, how do you start Mozmill > to get this failure? Somehow I don't see it. Run with --debug on a test without a tearDownModule and it should appear in Error Console -- tested on 1.5.1
Assignee | ||
Comment 6•13 years ago
|
||
I cannot see this problem with Mzomill 1.5.1 and a function without a teardownModule function.
Reporter | ||
Comment 7•13 years ago
|
||
mozmill-restart -t firefox/restartTests/ -b "../default/firefox" --debug Console output, TEST-START | /home/aaronmt/Mozilla/mozmill-tests/firefox/restartTests/testThemeInstallUninstall/test1.js | setupModule WARNING | setupModule | (SKIP) Bug 569813: New add-ons manager not supported yet TEST-START | /home/aaronmt/Mozilla/mozmill-tests/firefox/restartTests/testThemeInstallUninstall/test1.js | testInstallTheme WARNING | testInstallTheme | (SKIP) setupModule failed. TEST-START | /home/aaronmt/Mozilla/mozmill-tests/firefox/restartTests/testThemeInstallUninstall/test2.js | setupModule In the console I get Error: teardownModule is not defined Source File: resource://mozmill/modules/frame.js -> testThemeInstallUninstall/test2.js Line: 95
Assignee | ||
Comment 8•13 years ago
|
||
That's a failure in the test, when I have marked all add-ons manager tests as skipped. We should simply remove the skipped line for teardownModule. Are other tests also affected?
Reporter | ||
Comment 9•13 years ago
|
||
(In reply to comment #8) > That's a failure in the test, when I have marked all add-ons manager tests as > skipped. We should simply remove the skipped line for teardownModule. Are other > tests also affected? Interesting. No, as far as I can see, no other tests are affected that do not have tear downs but are not skipped. The error was misleading.
Assignee | ||
Comment 10•13 years ago
|
||
Reporter | ||
Updated•13 years ago
|
Attachment #506257 -
Flags: review?(aaron.train) → review+
Assignee | ||
Comment 11•13 years ago
|
||
Landed as: http://hg.mozilla.org/qa/mozmill-tests/rev/e6ce2dd0e5d6
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•