blob: 9a7b991011397c4f2aae01fb7da2542fb8159f53 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
<script src="../resources/common.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description("Test digest with malformed parameters");
var message = asciiToUint8Array("Hello, World!");
// Not enough arguments.
shouldReject('crypto.subtle.digest()');
shouldReject('crypto.subtle.digest(1)');
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>