OLD | NEW |
---|---|
1 Tests RTCPeerConnection.generateCertificate RSA/ECDSA. | 1 Tests RTCPeerConnection.generateCertificate RSA/ECDSA. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". |
4 | 4 |
5 | 5 |
6 PASS generateCertificate({ name: "RSASSA-PKCS1-v1_5", modulusLength: 2048, publi cExponent: new Uint8Array([1, 0, 1]), hash: "SHA-256" }) | 6 PASS generateCertificate({ name: "RSASSA-PKCS1-v1_5", modulusLength: 2048, publi cExponent: new Uint8Array([1, 0, 1]), hash: "SHA-256" }) |
7 PASS certRSA is non-null. | 7 PASS certRSA is non-null. |
8 PASS new Date().getTime() < certRSA.expires is true | 8 PASS new Date().getTime() < certRSA.expires is true |
9 PASS certRSA.getFingerprints().length == 1 is true | |
10 PASS certRSA.getFingerprints()[0].algorithm === "sha-256" is true | |
11 PASS isFingerprintValue(certRSA.getFingerprints()[0].value) is true | |
12 FAIL (function(){ fingerprints[0] = null; return fingerprints[0] != null; })() s hould be true. Was false. | |
Guido Urdaneta
2017/05/03 15:54:15
Are these FAIL intended?
hbos_chromium
2017/05/05 13:05:19
Oops, nope, good catch. Done.
| |
13 FAIL (function(){ fingerprints[0].value = "garbage"; return fingerprints[0].valu e === "garbage"; })() should be true. Threw exception TypeError: Cannot set prop erty 'value' of null | |
14 PASS certRSA.getFingerprints()[0] != certRSA.getFingerprints()[0] is true | |
9 PASS generateCertificate({ name: "ECDSA", namedCurve: "P-256" }) | 15 PASS generateCertificate({ name: "ECDSA", namedCurve: "P-256" }) |
10 PASS certECDSA is non-null. | 16 PASS certECDSA is non-null. |
11 PASS new Date().getTime() < certECDSA.expires is true | 17 PASS new Date().getTime() < certECDSA.expires is true |
18 PASS certECDSA.getFingerprints().length == 1 is true | |
19 PASS certECDSA.getFingerprints()[0].algorithm === "sha-256" is true | |
20 PASS isFingerprintValue(certECDSA.getFingerprints()[0].value) is true | |
21 FAIL (function(){ fingerprints[0] = null; return fingerprints[0] != null; })() s hould be true. Was false. | |
22 FAIL (function(){ fingerprints[0].value = "garbage"; return fingerprints[0].valu e === "garbage"; })() should be true. Threw exception TypeError: Cannot set prop erty 'value' of null | |
23 PASS certECDSA.getFingerprints()[0] != certECDSA.getFingerprints()[0] is true | |
12 PASS certExpiresNegativeOneDay is non-null. | 24 PASS certExpiresNegativeOneDay is non-null. |
13 PASS new Date().getTime() < certExpiresNegativeOneDay.expires is true | 25 PASS new Date().getTime() < certExpiresNegativeOneDay.expires is true |
26 PASS certExpiresNegativeOneDay.getFingerprints().length == 1 is true | |
27 PASS certExpiresNegativeOneDay.getFingerprints()[0].algorithm === "sha-256" is t rue | |
28 PASS isFingerprintValue(certExpiresNegativeOneDay.getFingerprints()[0].value) is true | |
29 FAIL (function(){ fingerprints[0] = null; return fingerprints[0] != null; })() s hould be true. Was false. | |
30 FAIL (function(){ fingerprints[0].value = "garbage"; return fingerprints[0].valu e === "garbage"; })() should be true. Threw exception TypeError: Cannot set prop erty 'value' of null | |
31 PASS certExpiresNegativeOneDay.getFingerprints()[0] != certExpiresNegativeOneDay .getFingerprints()[0] is true | |
14 PASS certExpiresZero is non-null. | 32 PASS certExpiresZero is non-null. |
15 PASS new Date().getTime() >= certExpiresZero.expires is true | 33 PASS new Date().getTime() >= certExpiresZero.expires is true |
16 PASS certExpiresPositiveOneDay is non-null. | 34 PASS certExpiresPositiveOneDay is non-null. |
17 PASS Math.abs(certExpiresPositiveOneDay.expires - (new Date().getTime() + dayInM s)) <= minuteInMs is true | 35 PASS Math.abs(certExpiresPositiveOneDay.expires - (new Date().getTime() + dayInM s)) <= minuteInMs is true |
18 PASS successfullyParsed is true | 36 PASS successfullyParsed is true |
19 | 37 |
20 TEST COMPLETE | 38 TEST COMPLETE |
21 | 39 |
OLD | NEW |