Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-generateCertificate-expected.txt

Issue 2828563002: RTCCertificate.getFingerprints added (exposed to the web) (Closed)
Patch Set: Changed fingerprints to getFingerprints() as per pull request Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-generateCertificate-expected.txt
diff --git a/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-generateCertificate-expected.txt b/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-generateCertificate-expected.txt
index 2cf752a34435d2327fb2305e1394857ef2771b89..f31e98cf5d809750fcaa018a7f614bf3534e523b 100644
--- a/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-generateCertificate-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-generateCertificate-expected.txt
@@ -6,11 +6,29 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
PASS generateCertificate({ name: "RSASSA-PKCS1-v1_5", modulusLength: 2048, publicExponent: new Uint8Array([1, 0, 1]), hash: "SHA-256" })
PASS certRSA is non-null.
PASS new Date().getTime() < certRSA.expires is true
+PASS certRSA.getFingerprints().length == 1 is true
+PASS certRSA.getFingerprints()[0].algorithm === "sha-256" is true
+PASS isFingerprintValue(certRSA.getFingerprints()[0].value) is true
+FAIL (function(){ fingerprints[0] = null; return fingerprints[0] != null; })() should 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.
+FAIL (function(){ fingerprints[0].value = "garbage"; return fingerprints[0].value === "garbage"; })() should be true. Threw exception TypeError: Cannot set property 'value' of null
+PASS certRSA.getFingerprints()[0] != certRSA.getFingerprints()[0] is true
PASS generateCertificate({ name: "ECDSA", namedCurve: "P-256" })
PASS certECDSA is non-null.
PASS new Date().getTime() < certECDSA.expires is true
+PASS certECDSA.getFingerprints().length == 1 is true
+PASS certECDSA.getFingerprints()[0].algorithm === "sha-256" is true
+PASS isFingerprintValue(certECDSA.getFingerprints()[0].value) is true
+FAIL (function(){ fingerprints[0] = null; return fingerprints[0] != null; })() should be true. Was false.
+FAIL (function(){ fingerprints[0].value = "garbage"; return fingerprints[0].value === "garbage"; })() should be true. Threw exception TypeError: Cannot set property 'value' of null
+PASS certECDSA.getFingerprints()[0] != certECDSA.getFingerprints()[0] is true
PASS certExpiresNegativeOneDay is non-null.
PASS new Date().getTime() < certExpiresNegativeOneDay.expires is true
+PASS certExpiresNegativeOneDay.getFingerprints().length == 1 is true
+PASS certExpiresNegativeOneDay.getFingerprints()[0].algorithm === "sha-256" is true
+PASS isFingerprintValue(certExpiresNegativeOneDay.getFingerprints()[0].value) is true
+FAIL (function(){ fingerprints[0] = null; return fingerprints[0] != null; })() should be true. Was false.
+FAIL (function(){ fingerprints[0].value = "garbage"; return fingerprints[0].value === "garbage"; })() should be true. Threw exception TypeError: Cannot set property 'value' of null
+PASS certExpiresNegativeOneDay.getFingerprints()[0] != certExpiresNegativeOneDay.getFingerprints()[0] is true
PASS certExpiresZero is non-null.
PASS new Date().getTime() >= certExpiresZero.expires is true
PASS certExpiresPositiveOneDay is non-null.

Powered by Google App Engine
This is Rietveld 408576698