The addUncompressed function is for node-only, and is a temporary workaround until we expose a better crypto interface in both node and the browser. I wrote tests for this function that were node-only, but were broken in the browser. I also wrote tests for the Point class that should have worked in both node and the browser, and did, but I was using the wrong module such that it worked only in node. This update makes the tests work in the browser by using the correct module.
52 lines
1.9 KiB
HTML
52 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Mocha</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
|
|
</head>
|
|
<body>
|
|
<div id="mocha"></div>
|
|
<script src="../node_modules/mocha/mocha.js"></script>
|
|
<script src="../node_modules/chai/chai.js"></script>
|
|
<script>mocha.setup('bdd')</script>
|
|
<script src="../browser/bundle.js"></script>
|
|
<script src="../browser/testdata.js"></script>
|
|
<script src="adapter.js"></script>
|
|
|
|
<script src="test.Address.js"></script>
|
|
<script src="test.basic.js"></script>
|
|
<script src="test.BIP32.js"></script>
|
|
<script src="test.Block.js"></script>
|
|
<script src="test.Bloom.js"></script>
|
|
<script src="test.Connection.js"></script>
|
|
<script src="test.EncodedData.js"></script>
|
|
<script src="test.Key.js"></script>
|
|
<script src="test.main.js"></script>
|
|
<script src="test.misc.js"></script>
|
|
<script src="test.Opcode.js"></script>
|
|
<script src="test.Peer.js"></script>
|
|
<script src="test.PeerManager.js"></script>
|
|
<script src="test.Point.js"></script>
|
|
<script src="test.PrivateKey.js"></script>
|
|
<script src="test.RpcClient.js"></script>
|
|
<script src="test.Script.js"></script>
|
|
<script src="test.ScriptInterpreter.js"></script>
|
|
<script src="test.sighash.js"></script>
|
|
<script src="test.SIN.js"></script>
|
|
<script src="test.SINKey.js"></script>
|
|
<script src="test.Transaction.js"></script>
|
|
<script src="test.TransactionBuilder.js"></script>
|
|
<script src="test.util.js"></script>
|
|
<script src="test.VersionedData.js"></script>
|
|
<script src="test.Wallet.js"></script>
|
|
<script src="test.WalletKey.js"></script>
|
|
<!--
|
|
-->
|
|
<script>
|
|
mocha.run();
|
|
</script>
|
|
</body>
|
|
</html>
|