UNPKG

spm

Version:

Static Package Manager

57 lines (49 loc) 1.61 kB
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>{% block title %}{{config.package.name|title}} Mocha Runner{% endblock %}</title> <link href="{{static_url('css/mocha.css')}}" type="text/css" rel="stylesheet" charset="utf-8"> </head> <body> <script src="{{static_url('js/mocha.js')}}?nowrap"></script> <script src="{{static_url('js/sinon.js')}}?nowrap"></script> <div id="mocha"></div> <script> mocha.ui('bdd'); mocha.reporter('html'); </script> <script> // polyfill for phantomjs 1.x // https://github.com/webpack/style-loader/issues/31 if (typeof Function.prototype.bind != 'function') { Function.prototype.bind = function bind(obj) { var args = Array.prototype.slice.call(arguments, 1), self = this, nop = function() { }, bound = function() { return self.apply( this instanceof nop ? this : (obj || {}), args.concat( Array.prototype.slice.call(arguments) ) ); }; nop.prototype = this.prototype || {}; bound.prototype = new nop(); return bound; }; } </script> <script src="../dist/test.js?nowrap"></script> <script> if (window.mochaPhantomJS) { mochaPhantomJS.run(); } else { mocha.run(); } </script> </body> </html>