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

Unified Diff: LayoutTests/crypto/resources/common.js

Issue 256483004: Remove serialization version tags from crypto LayoutTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « LayoutTests/crypto/clone-rsaKey-public-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « LayoutTests/crypto/clone-rsaKey-public-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698