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

Unified Diff: LayoutTests/crypto/digest-arraybuffer.html

Issue 806913006: [WebCrypto] Move LayoutTests from crypto to crypto/subtle (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update path for deserialize legacy tests Created 6 years 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: LayoutTests/crypto/digest-arraybuffer.html
diff --git a/LayoutTests/crypto/digest-arraybuffer.html b/LayoutTests/crypto/digest-arraybuffer.html
deleted file mode 100644
index 0244d2f2879849144250afac44900cf20d3d597e..0000000000000000000000000000000000000000
--- a/LayoutTests/crypto/digest-arraybuffer.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../resources/js-test.js"></script>
-<script src="resources/common.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></div>
-
-<script>
-description("Tests the digest() method using ArrayBuffer");
-
-jsTestIsAsync = true;
-
-var algorithmName = "sha-256";
-var inputHex = "00";
-var expectedOutputHex = "6e340b9cffb37a989ca544e6bb780a2c78901d3fb33738768511a30617afa01d";
-
-// Most of the crypto LayouTests use ArrayBufferView for data input. This one
-// passes an ArrayBuffer instead.
-var input = hexStringToUint8Array(inputHex).buffer;
-
-crypto.subtle.digest({name : algorithmName}, input).then(function(result) {
- bytesShouldMatchHexString("sha-256 of [0]", expectedOutputHex, result);
-}).then(finishJSTest, failAndFinishJSTest);
-
-</script>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698