Closed Bug 1167254 Opened 9 years ago Closed 9 years ago

convert the test added in bug 234856 to an xpcshell test

Categories

(Core :: Security: PSM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla41
Tracking Status
firefox41 --- fixed

People

(Reporter: keeler, Assigned: Cykesiopka)

References

Details

Attachments

(1 file, 1 obsolete file)

Bug 234856 added a mochitest-chrome test to ensure that some properties of a certificate are decoded properly. However, I can determine no compelling reason for it to be a mochitest-chrome test rather than an xpcshell test. Since mochitests require more test resources, we should just convert it to an xpcshell test.
/r/9423 - Bug 1167254 - Convert test_bug234856.html mochitest to an xpcshell test.

Pull down this commit:

hg pull -r 9194594f4e2f36d7955a16775bb615c9780ac34a https://reviewboard-hg.mozilla.org/gecko/
Attachment #8611085 - Flags: review?(dkeeler)
https://reviewboard.mozilla.org/r/9421/#review8173

I didn't do a |hg rename| because I touch every single line, and because no changes have been made to test_bug234856.html since it landed.
However, I can redo the patch using |hg rename| if preferred.

::: security/manager/ssl/tests/unit/test_nsIX509Cert_utf8.js:45
(Diff revision 1)
> +  equal(cert.nickname, "(no nickname)",

I left out the first five checks before this one, because I don't see how they are relevant to what this test is supposed to be testing.
https://reviewboard.mozilla.org/r/9423/#review8219

Great - thanks. The new file should have a license, though.

::: security/manager/ssl/tests/unit/test_nsIX509Cert_utf8.js:1
(Diff revision 1)
> +// -*- indent-tabs-mode: nil; js-indent-level: 2 -*-

nit: this file needs a license, I think. Either MPL 2.0 or public domain should work.
Comment on attachment 8611085 [details]
MozReview Request: bz://1167254/Cykesiopka

https://reviewboard.mozilla.org/r/9421/#review8225
Attachment #8611085 - Flags: review?(dkeeler) → review+
https://reviewboard.mozilla.org/r/9423/#review8309

> nit: this file needs a license, I think. Either MPL 2.0 or public domain should work.

The original file was added before 2014-09-23 (see "PD Test Code" in https://www.mozilla.org/MPL/license-policy.html ), so just to be safe, MPL it is.
+ Add license header
Assignee: nobody → cykesiopka.bmo
Attachment #8611085 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8612180 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/43ac1e38b7ac
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Blocks: 1174286
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: