Closed
Bug 648371
Opened 13 years ago
Closed 13 years ago
Convert async tests to use run_next_test helper
Categories
(Firefox :: Sync, defect)
Firefox
Sync
Tracking
()
RESOLVED
FIXED
mozilla6
People
(Reporter: philikon, Assigned: philikon)
References
Details
(Whiteboard: [prune][qa-])
Attachments
(1 file)
46.42 KB,
patch
|
rnewman
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•13 years ago
|
||
Get rid of Utils.asyncChain in all sync tests apart from test_resource_async and test_resource_ua. Both tests should be converted eventually, but would require some more involved refactoring. Will file follow up for those, if rnewman agrees with that approach.
Comment 2•13 years ago
|
||
Comment on attachment 526767 [details] [diff] [review] v1 As discussed on IRC: > -Engines.register(BookmarksEngine); > +//Engines.register(BookmarksEngine); I'm not sure I like this approach: > +add_test(function cleanup() { > + _("Clean up."); > + Svc.History.removeAllPages(); > + run_next_test(); > +}); but I see why it's done (given the splitting of some tests into independent mini-tests). I would prefer for the underlying mechanism to support per-suite and per-test setup and teardown slots, so this cleanup function wouldn't have to pretend to be a test, but perhaps that's an rfe for another day. Otherwise, this looks good. Going to run tests locally then flip the flag.
Updated•13 years ago
|
Attachment #526767 -
Flags: review?(rnewman) → review+
Assignee | ||
Comment 3•13 years ago
|
||
http://hg.mozilla.org/services/services-central/rev/f0cbe8de70c9 Filed bug 650941 for the two left overs.
Whiteboard: [prune] → [prune][fixed in services]
Assignee | ||
Updated•13 years ago
|
Status: ASSIGNED → NEW
Whiteboard: [prune][fixed in services] → [prune][fixed in services][qa-]
Assignee | ||
Comment 4•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/f0cbe8de70c9
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [prune][fixed in services][qa-] → [prune][qa-]
Target Milestone: --- → mozilla6
Updated•6 years ago
|
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in
before you can comment on or make changes to this bug.
Description
•