Closed
Bug 715443
Opened 14 years ago
Closed 14 years ago
Robocop: fennec native tests need cleanup
Categories
(Testing :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla12
People
(Reporter: kats, Assigned: kats)
References
Details
(Whiteboard: not-fennec-11)
Attachments
(2 files, 1 obsolete file)
|
31.12 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
|
9.76 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
Lots of duplicated code in the actual test files that can be factored out and cleaned up. Patches forthcoming.
| Assignee | ||
Comment 1•14 years ago
|
||
Attachment #585997 -
Flags: review?(jmaher)
| Assignee | ||
Comment 2•14 years ago
|
||
Attachment #585998 -
Flags: review?(jmaher)
| Assignee | ||
Comment 3•14 years ago
|
||
Oops, uploaded wrong patch
Attachment #585998 -
Attachment is obsolete: true
Attachment #585998 -
Flags: review?(jmaher)
Attachment #585999 -
Flags: review?(jmaher)
Updated•14 years ago
|
Attachment #585997 -
Flags: review?(jmaher) → review+
Comment 4•14 years ago
|
||
Comment on attachment 585999 [details] [diff] [review]
(2/2) Factor out more utility functions into BaseTest
Review of attachment 585999 [details] [diff] [review]:
-----------------------------------------------------------------
my only thoughts are BaseTest might grow large with support functions, we might want to consider making a utility class or something if it gets too large.
Attachment #585999 -
Flags: review?(jmaher) → review+
| Assignee | ||
Comment 5•14 years ago
|
||
> my only thoughts are BaseTest might grow large with support functions, we
> might want to consider making a utility class or something if it gets too
> large.
True. My preferred approach in that situation would be to add additional layers to the class hierarchy; so if there are a group of tests that need a particular set of support functions (e.g. framerate monitoring) create another abstract subclass of BaseTest (FrameRateTest) with those functions and then have that set of tests derive from that.
Comment 6•14 years ago
|
||
Comment 7•14 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/262123f588e0
https://hg.mozilla.org/mozilla-central/rev/e4c773d0f228
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla12
| Assignee | ||
Updated•14 years ago
|
Whiteboard: not-fennec-11
You need to log in
before you can comment on or make changes to this bug.
Description
•