blob: 10150d9d4e99aa0fd721ac4a1e0f80ee665b8138 [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 deriveBits operation with malformed parameters");
// Not enough arguments.
shouldReject('crypto.subtle.deriveBits()');
shouldReject('crypto.subtle.deriveBits(1)');
shouldReject('crypto.subtle.deriveBits(1, 2)');
// Not support.
shouldReject('crypto.subtle.deriveBits("ECDH", 2, 3)');
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>