Index: LayoutTests/crypto/resources/common.js |
diff --git a/LayoutTests/crypto/resources/common.js b/LayoutTests/crypto/resources/common.js |
index c20276c686d1fe35f71577b028b68493b23ffe99..ac1bf7dc767250dbe50fe22453bc4b7fd956201e 100644 |
--- a/LayoutTests/crypto/resources/common.js |
+++ b/LayoutTests/crypto/resources/common.js |
@@ -99,8 +99,12 @@ function cloneKey(key) |
// Logging the serialized format ensures that if it changes it will break tests. |
function logSerializedKey(o) |
{ |
- if (internals) |
- debug("Serialized key bytes: " + bytesToHexString(internals.serializeObject(o))); |
+ if (internals) { |
+ // Removing the version tag from the output so serialization format changes don't need to update all the crypto tests. |
+ var serialized = internals.serializeObject(o); |
+ var serializedWithoutVersion = new Uint8Array(serialized, 2); |
+ debug("Serialized key bytes: " + bytesToHexString(serializedWithoutVersion)); |
+ } |
} |
function shouldEvaluateAs(actual, expectedValue) |