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>
|
|
|
|
<!--
|
|
|
|
Shim for PhantomJS: Promise
|
|
|
|
See: https://github.com/stefanpenner/es6-promise
|
|
|
|
-->
|
|
|
|
<script src="./dist/es6-promise.auto.js"></script>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Shim for PhantomJS:
|
|
|
|
- Type Array prototype.slice
|
|
|
|
- ArrayBuffer.isView
|
|
|
|
- Number.MAX_SAFE_INTEGER
|
|
|
|
- Math.log10
|
|
|
|
-->
|
|
|
|
<script type="text/javascript">
|
|
|
|
if (!Uint8Array.prototype.slice) {
|
|
|
|
Uint8Array.prototype.slice = function() {
|
|
|
|
var args = Array.prototype.slice.call(arguments);
|
|
|
|
return new Uint8Array(Array.prototype.slice.apply(this, args));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!ArrayBuffer.isView) {
|
|
|
|
ArrayBuffer.isView = function(obj) {
|
|
|
|
// @TODO: This should probably check various instanceof aswell
|
|
|
|
return !!(obj.buffer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!Number.MAX_SAFE_INTEGER) {
|
|
|
|
Number.MAX_SAFE_INTEGER = 0x1fffffffffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!Math.log10) {
|
|
|
|
Math.log10 = Math.log10 || function(x) {
|
|
|
|
return Math.log(x) / Math.LN10;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
// https://github.com/nathanboktae/mocha-phantomjs-core#usage
|
|
|
|
if (typeof(initMochaPhantomJS) === 'function') {
|
|
|
|
initMochaPhantomJS();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<!-- Inject the mocha describe and it functions -->
|
|
|
|
<script type="text/javascript">mocha.setup('bdd')</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.run();
|
2017-02-27 09:51:27 +03:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|