Files
Yi-Cyuan Chen 05de50a022 * Added support for web worker. #5
* Changed throw error if input type is incorrect.
2017-10-07 09:27:54 +08:00

28 lines
757 B
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SHA512</title>
<link rel="stylesheet" href="../node_modules/mocha/mocha.css">
<script src="../node_modules/mocha/mocha.js"></script>
<script src="../node_modules/expect.js/index.js"></script>
<script src="../node_modules/requirejs/require.js"></script>
</head>
<body>
<div id="mocha"></div>
<script>
mocha.setup('bdd');
require(['../src/sha512.js'], function (sha512) {
window.sha512 = sha512;
window.sha384 = sha512.sha384;
window.sha512_256 = sha512.sha512_256;
window.sha512_224 = sha512.sha512_224;
require(['test.js'], function () {
mocha.checkLeaks();
mocha.run();
});
});
</script>
</body>
</html>