2017-02-27 09:51:27 +03:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2017-10-23 00:47:17 +03:00
|
|
|
<title>Ethers Test Suite</title>
|
2017-02-27 09:51:27 +03:00
|
|
|
<meta charset="UTF-8">
|
2017-10-23 00:47:17 +03:00
|
|
|
<link href="../node_modules/mocha/mocha.css" rel="stylesheet" />
|
2017-02-27 09:51:27 +03:00
|
|
|
<style type="text/css">
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2017-10-23 00:47:17 +03:00
|
|
|
<div id="mocha"></div>
|
|
|
|
<script src="../node_modules/mocha/mocha.js"></script>
|
2017-11-09 11:14:48 +03:00
|
|
|
|
2017-10-23 00:47:17 +03:00
|
|
|
<!--
|
|
|
|
Shim for PhantomJS: Promise
|
|
|
|
See: https://github.com/stefanpenner/es6-promise
|
|
|
|
-->
|
|
|
|
<script src="./dist/es6-promise.auto.js"></script>
|
|
|
|
|
2018-06-21 03:29:54 +03:00
|
|
|
<!--
|
|
|
|
Shim for String.prototype.normalize
|
|
|
|
See: https://github.com/walling/unorm
|
|
|
|
-->
|
|
|
|
<script src="./dist/unorm.js"></script>
|
|
|
|
|
2017-10-23 00:47:17 +03:00
|
|
|
<!--
|
2018-06-03 09:42:53 +03:00
|
|
|
Shims for PhantomJS
|
2017-10-23 00:47:17 +03:00
|
|
|
-->
|
|
|
|
<script type="text/javascript">
|
2018-06-03 09:42:53 +03:00
|
|
|
|
|
|
|
// ArrayBuffer.isView
|
2017-10-23 00:47:17 +03:00
|
|
|
if (!ArrayBuffer.isView) {
|
|
|
|
ArrayBuffer.isView = function(obj) {
|
|
|
|
// @TODO: This should probably check various instanceof aswell
|
|
|
|
return !!(obj.buffer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-03 09:42:53 +03:00
|
|
|
// nextTick
|
|
|
|
if (!window.nextTick) {
|
|
|
|
window.nextTick = function (callback) { setTimeout(callback, 0); }
|
|
|
|
}
|
|
|
|
|
2017-10-23 00:47:17 +03:00
|
|
|
// https://github.com/nathanboktae/mocha-phantomjs-core#usage
|
|
|
|
if (typeof(initMochaPhantomJS) === 'function') {
|
|
|
|
initMochaPhantomJS();
|
|
|
|
}
|
2018-03-05 03:31:09 +03:00
|
|
|
|
2017-10-23 00:47:17 +03:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<!-- Inject the mocha describe and it functions -->
|
|
|
|
<script type="text/javascript">mocha.setup('bdd')</script>
|
|
|
|
|
2018-03-05 03:31:09 +03:00
|
|
|
<!-- Load the browser dist ethers package -->
|
2018-06-14 09:25:56 +03:00
|
|
|
<script type="text/javascript" src="../dist/ethers.min.js"></script>
|
2018-07-16 07:19:50 +03:00
|
|
|
<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>
|
2018-03-05 03:31:09 +03:00
|
|
|
|
2017-10-23 00:47:17 +03:00
|
|
|
<!-- Our test cases; compiled by browserify -->
|
|
|
|
<script src="./dist/tests.js" type="text/javascript"></script>
|
|
|
|
|
|
|
|
<!-- Run the test cases! -->
|
|
|
|
<script type="text/javascript">
|
2018-06-03 09:42:53 +03:00
|
|
|
// Use this to focus on specific test cases
|
2018-07-16 07:19:50 +03:00
|
|
|
//mocha.grep(new RegExp('wordlists')).run();
|
2017-10-23 00:47:17 +03:00
|
|
|
mocha.run();
|
2017-02-27 09:51:27 +03:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|