Closed Bug 760576 Opened 12 years ago Closed 12 years ago

Add do_check_null test helper

Categories

(Testing :: XPCShell Harness, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla15

People

(Reporter: gps, Assigned: gps)

References

()

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

I don't know how many times I find myself writing "do_check_eq(foo, null)". I'd really like a do_check_null() test helper.

See attached patch for simple implementation.
Attachment #629231 - Flags: review?(ted.mielczarek)
Comment on attachment 629231 [details] [diff] [review]
Define do_check_null and todo_check_null

Review of attachment 629231 [details] [diff] [review]:
-----------------------------------------------------------------

Stick a sanity test in here somewhere:
http://mxr.mozilla.org/mozilla-central/source/testing/xpcshell/example/unit/
Attachment #629231 - Flags: review?(ted.mielczarek) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/49344db27069

With a couple of tests. I didn't know that "example" directory actually contained legitimate tests.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla15
https://hg.mozilla.org/mozilla-central/rev/49344db27069
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: