2013-05-31 07:52:04 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
2014-01-21 21:25:09 +00:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>Mocha Tests</title>
|
|
|
|
<link rel="stylesheet" href="../bower_components/mocha/mocha.css" />
|
|
|
|
<script src="../bower_components/chai/chai.js"></script>
|
|
|
|
<script src="../bower_components/mocha/mocha.js"></script>
|
|
|
|
<script>
|
|
|
|
// Polyfill for function.bind, which PhantomJS seems to need, see
|
|
|
|
// https://gist.github.com/Daniel-Hug/5682738/raw/147ec7d72123fbef4d7471dcc88c2bc3d52de8d9/function-bind.js
|
|
|
|
Function.prototype.bind = (function () {}).bind || function (b) {
|
|
|
|
if (typeof this !== "function") {
|
|
|
|
throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
|
|
|
|
}
|
2013-05-31 07:52:04 +00:00
|
|
|
|
2014-01-21 21:25:09 +00:00
|
|
|
function c() {}
|
|
|
|
var a = [].slice,
|
|
|
|
f = a.call(arguments, 1),
|
|
|
|
e = this,
|
|
|
|
d = function () {
|
|
|
|
return e.apply(this instanceof c ? this : b || window, f.concat(a.call(arguments)));
|
|
|
|
};
|
|
|
|
c.prototype = this.prototype;
|
|
|
|
d.prototype = new c();
|
|
|
|
return d;
|
|
|
|
};
|
|
|
|
</script>
|
2013-11-27 17:18:09 +00:00
|
|
|
<script src="../lib/require.js" data-main="require-config"></script>
|
2014-01-21 21:25:09 +00:00
|
|
|
</head>
|
2013-05-31 07:52:04 +00:00
|
|
|
<body>
|
2014-01-21 21:25:09 +00:00
|
|
|
<div id="mocha"></div>
|
2013-05-31 07:52:04 +00:00
|
|
|
</body>
|
|
|
|
</html>
|