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)
Core
Security: PSM
Tracking
()
NEW
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.
Updated•9 years ago
|
Whiteboard: [psm-cleanup]
Updated•8 years ago
|
Priority: -- → P3
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
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
Updated•3 years ago
|
Severity: minor → S4
You need to log in
before you can comment on or make changes to this bug.
Description
•