Closed Bug 668810 Opened 13 years ago Closed 13 years ago

Backport assertions module to old shared modules system

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

(Whiteboard: [lib][testday-20110701])

Attachments

(1 file)

The assertions module I have implemented on bug 634225 needs to be backported to our old shared module system to drastically enhance the way how assertions can be used. Shouldn't be too hard.
Backport was kinda easy, I only had to strip out the throw parts. Patch upcoming.
Attached patch Patch v1Splinter Review
Attachment #543449 - Flags: review?(gmealer)
Geo, I have updated the one sessionstore test too to show-off the new feature! It works like a charm and we should use this module where-ever we can and should drop assert() completely.
Comment on attachment 543449 [details] [diff] [review]
Patch v1

r+, looks fine.

A little painful to have to do the import on assert, expect manually, but likely very worth the cost until we get the init stuff going. At least the frame code will be getting a lot of exercise :D
Attachment #543449 - Flags: review?(gmealer) → review+
A Pivotal Tracker story has been created for this Bug: https://www.pivotaltracker.com/story/show/15283687
(In reply to comment #4)
> A little painful to have to do the import on assert, expect manually, but
> likely very worth the cost until we get the init stuff going. At least the
> frame code will be getting a lot of exercise :D

On the other side we would have to execute an init function in setupModule which would have the same costs. So there is no way around.

Landed as:
http://hg.mozilla.org/qa/mozmill-tests/rev/1c5e68da3df4 (default)
http://hg.mozilla.org/qa/mozmill-tests/rev/98a2b3a3f927 (aurora)
http://hg.mozilla.org/qa/mozmill-tests/rev/996847ca5b68 (beta)
http://hg.mozilla.org/qa/mozmill-tests/rev/c7ce614d1ebf (release)
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Alex and Vlad, for each new test you are writing please use the new assertion methods supplied with those patches. We will come up with a documentation shortly which should make it easier for you.
Depends on: 669728
Blocks: 672954
Component: Mozmill Tests → Mozmill Shared Modules
Component: Mozmill Shared Modules → Mozmill Tests
Whiteboard: [testday-20110701][shared module] → [lib]
Whiteboard: [lib] → [lib][testday-20110701]
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: