OLD | NEW |
| (Empty) |
1 Tests RTCPeerConnection.generateCertificate RSA/ECDSA. | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
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. | |
8 PASS new Date().getTime() < certRSA.expires is true | |
9 PASS generateCertificate({ name: "ECDSA", namedCurve: "P-256" }) | |
10 PASS certECDSA is non-null. | |
11 PASS new Date().getTime() < certECDSA.expires is true | |
12 PASS certExpiresNegativeOneDay is non-null. | |
13 PASS new Date().getTime() < certExpiresNegativeOneDay.expires is true | |
14 PASS certExpiresZero is non-null. | |
15 PASS new Date().getTime() >= certExpiresZero.expires is true | |
16 PASS certExpiresPositiveOneDay is non-null. | |
17 PASS Math.abs(certExpiresPositiveOneDay.expires - (new Date().getTime() + dayInM
s)) <= minuteInMs is true | |
18 PASS successfullyParsed is true | |
19 | |
20 TEST COMPLETE | |
21 | |
OLD | NEW |