79 lines
2.6 KiB
HTML
79 lines
2.6 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Ethers Test Suite</title>
|
|
<meta charset="UTF-8">
|
|
<link href="../node_modules/mocha/mocha.css" rel="stylesheet" />
|
|
<style type="text/css">
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="mocha"></div>
|
|
<script src="../node_modules/mocha/mocha.js"></script>
|
|
|
|
<!--
|
|
Shim for PhantomJS: Promise
|
|
See: https://github.com/stefanpenner/es6-promise
|
|
-->
|
|
<script src="./dist/es6-promise.auto.js"></script>
|
|
|
|
<!--
|
|
Shim for String.prototype.normalize
|
|
See: https://github.com/walling/unorm
|
|
-->
|
|
<script src="./dist/unorm.js"></script>
|
|
|
|
<!--
|
|
Shims for PhantomJS
|
|
-->
|
|
<script type="text/javascript">
|
|
|
|
// ArrayBuffer.isView
|
|
if (!ArrayBuffer.isView) {
|
|
ArrayBuffer.isView = function(obj) {
|
|
// @TODO: This should probably check various instanceof aswell
|
|
return !!(obj.buffer);
|
|
}
|
|
}
|
|
|
|
// nextTick
|
|
if (!window.nextTick) {
|
|
window.nextTick = function (callback) { setTimeout(callback, 0); }
|
|
}
|
|
</script>
|
|
|
|
<!-- Inject the mocha describe and it functions -->
|
|
<script type="text/javascript">
|
|
// https://github.com/nathanboktae/mocha-phantomjs-core#usage
|
|
if (typeof(initMochaPhantomJS) === 'function') {
|
|
initMochaPhantomJS();
|
|
}
|
|
|
|
// Inject the mocha describe and it functions
|
|
mocha.setup({ ui: 'bdd' });
|
|
</script>
|
|
|
|
<!-- Load the browser dist ethers package -->
|
|
<script type="text/javascript" src="../dist/ethers.min.js"></script>
|
|
<script type="text/javascript" src="../dist/wordlist-es.js"></script>
|
|
<script type="text/javascript" src="../dist/wordlist-fr.js"></script>
|
|
<script type="text/javascript" src="../dist/wordlist-it.js"></script>
|
|
<script type="text/javascript" src="../dist/wordlist-ja.js"></script>
|
|
<script type="text/javascript" src="../dist/wordlist-ko.js"></script>
|
|
<script type="text/javascript" src="../dist/wordlist-zh.js"></script>
|
|
|
|
<!-- Our test cases; compiled by browserify -->
|
|
<script src="./dist/tests.js" type="text/javascript"></script>
|
|
|
|
<!-- Run the test cases! -->
|
|
<script type="text/javascript">
|
|
mocha.reporter(tests.reporter);
|
|
|
|
// Use this to focus on specific test cases
|
|
//mocha.grep(new RegExp('easyseed')).run();
|
|
mocha.run();
|
|
</script>
|
|
</body>
|
|
</html>
|