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

Unified Diff: LayoutTests/security/crypto-random-values-limits.html

Issue 16280013: Create LayoutTests/crypto for WebCrypto tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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: LayoutTests/security/crypto-random-values-limits.html
diff --git a/LayoutTests/security/crypto-random-values-limits.html b/LayoutTests/security/crypto-random-values-limits.html
deleted file mode 100644
index 95175860907e12cf8b32a8be8a9b5409a4162f44..0000000000000000000000000000000000000000
--- a/LayoutTests/security/crypto-random-values-limits.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../fast/js/resources/js-test-pre.js"></script>
-<script src="resources/utilities.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></div>
-<script>
-description("Tests the limits of crypto.randomValues.");
-
-if (!window.ArrayBuffer)
- debug("This test requres ArrayBuffers to run!");
-
-shouldBe("'crypto' in window", "true");
-shouldBe("'getRandomValues' in window.crypto", "true");
-
-try {
- var almostTooLargeArray = new Uint8Array(65536);
- var tooLargeArray = new Uint8Array(65537);
-
- shouldNotThrow("crypto.getRandomValues(almostTooLargeArray)");
- shouldThrow("crypto.getRandomValues(tooLargeArray)");
-} catch(ex) {
- debug(ex);
-}
-
-</script>
-<script src="../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>
-
-

Powered by Google App Engine
This is Rietveld 408576698