Closed
Bug 712518
Opened 13 years ago
Closed 13 years ago
Improve MockFilePicker.jsm
Categories
(Testing :: Mochitest, defect)
Testing
Mochitest
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla12
People
(Reporter: darktrojan, Assigned: darktrojan)
References
Details
Attachments
(1 file)
19.07 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
There's some things that could be improved about the MockFilePicker, namely:
* create separate methods for setup and cleanup
* unregister the class when finished
* use the result of showCallback, if there is one, instead of returnValue
Anything else?
Assignee | ||
Comment 2•13 years ago
|
||
Attachment #584147 -
Flags: review?(jmaher)
Comment 3•13 years ago
|
||
Comment on attachment 584147 [details] [diff] [review]
patch
Review of attachment 584147 [details] [diff] [review]:
-----------------------------------------------------------------
My only question is we are replacing reset() with init() at the beginning of most of the test cases. With init() we assigned default values to variables. Is that not needed now?
Attachment #584147 -
Flags: review?(jmaher) → review+
Assignee | ||
Comment 4•13 years ago
|
||
(In reply to Joel Maher (:jmaher) from comment #3)
> My only question is we are replacing reset() with init() at the beginning of
> most of the test cases. With init() we assigned default values to
> variables. Is that not needed now?
ITYM "With reset() we ...".
They still get set, init() calls reset().
Assignee | ||
Comment 5•13 years ago
|
||
Flags: in-testsuite-
Target Milestone: --- → mozilla12
Comment 6•13 years ago
|
||
oh, I overlooked that, that one line hidden in there:)
Comment 7•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•