Open Bug 1252721 Opened 10 years ago Updated 3 years ago

Use Assert.jsm numeric comparison functions in PSM tests

Categories

(Core :: Security: PSM, defect, P3)

defect

Tracking

()

People

(Reporter: Cykesiopka, Unassigned)

Details

(Whiteboard: [psm-cleanup])

Attachments

(1 obsolete file)

This pattern can be seen in some PSM tests: > Assert.ok(foo < bar, "foo should be less than bar"); > Assert.ok(foo > bar, "foo should be more than bar"); See https://hg.mozilla.org/mozilla-central/annotate/04db0fb529b9/security/manager/ssl/tests/unit/test_ocsp_timeout.js#l73 for an example. Bug 1147751 added support for numeric comparison functions to Assert.jsm, so we should replace that sort of pattern with something like: > Assert.less(foo, bar, "foo should be less than bar"); > Assert.greater(foo, bar, "foo should be more than bar"); See Bug 1147751 comment 0 for why the currently used pattern isn't as nice.
Whiteboard: [psm-cleanup]
Priority: -- → P3

Comment on attachment 9082975 [details]
Bug 1252721 - Use Assert.jsm numeric comparison functions in PSM tests

Revision D40614 was moved to bug 1571656. Setting attachment 9082975 [details] to obsolete.

Attachment #9082975 - Attachment is obsolete: true
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: