| 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.fingerprints.length == 1 is true |
| 10 PASS certRSA.fingerprints[0].algorithm === "sha-256" is true |
| 11 PASS isFingerprintValue(certRSA.fingerprints[0].value) is true |
| 12 PASS (function(){ fingerprints[0] = null; return fingerprints[0] != null; })() i
s true |
| 13 PASS (function(){ fingerprints[0].value = "garbage"; return fingerprints[0].valu
e === "garbage"; })() is true |
| 14 PASS certRSA.fingerprints[0] != certRSA.fingerprints[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.fingerprints.length == 1 is true |
| 19 PASS certECDSA.fingerprints[0].algorithm === "sha-256" is true |
| 20 PASS isFingerprintValue(certECDSA.fingerprints[0].value) is true |
| 21 PASS (function(){ fingerprints[0] = null; return fingerprints[0] != null; })() i
s true |
| 22 PASS (function(){ fingerprints[0].value = "garbage"; return fingerprints[0].valu
e === "garbage"; })() is true |
| 23 PASS certECDSA.fingerprints[0] != certECDSA.fingerprints[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.fingerprints.length == 1 is true |
| 27 PASS certExpiresNegativeOneDay.fingerprints[0].algorithm === "sha-256" is true |
| 28 PASS isFingerprintValue(certExpiresNegativeOneDay.fingerprints[0].value) is true |
| 29 PASS (function(){ fingerprints[0] = null; return fingerprints[0] != null; })() i
s true |
| 30 PASS (function(){ fingerprints[0].value = "garbage"; return fingerprints[0].valu
e === "garbage"; })() is true |
| 31 PASS certExpiresNegativeOneDay.fingerprints[0] != certExpiresNegativeOneDay.fing
erprints[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 |