1 line
208 KiB
JavaScript
1 line
208 KiB
JavaScript
|
!function o(s,a,u){function l(t,e){if(!a[t]){if(!s[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(c)return c(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var i=a[t]={exports:{}};s[t][0].call(i.exports,function(e){return l(s[t][1][e]||e)},i,i.exports,o,s,a,u)}return a[t].exports}for(var c="function"==typeof require&&require,e=0;e<u.length;e++)l(u[e]);return l}({1:[function(f,p,e){(function(e,i){"use strict";e.stdout=f("browser-stdout")({level:!1});var o=f("./lib/mocha"),s=new o({reporter:"html"}),t=i.Date,r=i.setTimeout,a=(i.setInterval,i.clearTimeout,i.clearInterval,[]),n=i.onerror;e.removeListener=function(e,t){if("uncaughtException"===e){i.onerror=n||function(){};var r=a.indexOf(t);-1!==r&&a.splice(r,1)}},e.on=function(e,n){"uncaughtException"===e&&(i.onerror=function(e,t,r){return n(new Error(e+" ("+t+":"+r+")")),!s.allowUncaught},a.push(n))},s.suite.removeAllListeners("pre-require");var u,l=[];function c(){for(var e=(new t).getTime();l.length&&(new t).getTime()-e<100;)l.shift()();u=l.length?r(c,0):null}o.Runner.immediately=function(e){l.push(e),u||(u=r(c,0))},s.throwError=function(t){throw a.forEach(function(e){e(t)}),t},s.ui=function(e){return o.prototype.ui.call(this,e),this.suite.emit("pre-require",i,null,this),this},s.setup=function(e){for(var t in"string"==typeof e&&(e={ui:e}),e)e.hasOwnProperty(t)&&this[t](e[t]);return this},s.run=function(r){var n=s.options;s.globals("location");var e=o.utils.parseQuery(i.location.search||"");return e.grep&&s.grep(e.grep),e.fgrep&&s.fgrep(e.fgrep),e.invert&&s.invert(),o.prototype.run.call(s,function(e){var t=i.document;t&&t.getElementById("mocha")&&!0!==n.noHighlighting&&o.utils.highlightTags("code"),r&&r(e)})},o.process=e,i.Mocha=o,i.mocha=s,p.exports=i}).call(this,f("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/mocha":13,_process:56,"browser-stdout":39}],2:[function(e,t,r){"use strict";t.exports=e("../utils").noop},{"../utils":36}],3:[function(e,t,r){"use strict";function n(){this.percent=0,this.size(0),this.fontSize(11),this.font("helvetica, arial, sans-serif")}(t.exports=n).prototype.size=function(e){return this._size=e,this},n.prototype.text=function(e){return this._text=e,this},n.prototype.fontSize=function(e){return this._fontSize=e,this},n.prototype.font=function(e){return this._font=e,this},n.prototype.update=function(e){return this.percent=e,this},n.prototype.draw=function(e){try{var t=Math.min(this.percent,100),r=this._size,n=r/2,i=n,o=n,s=n-1,a=this._fontSize;e.font=a+"px "+this._font;var u=2*Math.PI*(t/100);e.clearRect(0,0,r,r),e.strokeStyle="#9f9f9f",e.beginPath(),e.arc(i,o,s,0,u,!1),e.stroke(),e.strokeStyle="#eee",e.beginPath(),e.arc(i,o,s-1,0,u,!0),e.stroke();var l=this._text||(0|t)+"%",c=e.measureText(l).width;e.fillText(l,i-c/2+1,o+a/2-1)}catch(e){}return this}},{}],4:[function(e,t,r){(function(e){"use strict";r.isatty=function(){return!0},r.getWindowSize=function(){return"innerHeight"in e?[e.innerHeight,e.innerWidth]:[640,480]}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],5:[function(e,t,r){"use strict";function n(){}(t.exports=n).prototype.runnable=function(e){return arguments.length?(this.test=this._runnable=e,this):this._runnable},n.prototype.timeout=function(e){return arguments.length?(this.runnable().timeout(e),this):this.runnable().timeout()},n.prototype.enableTimeouts=function(e){return arguments.length?(this.runnable().enableTimeouts(e),this):this.runnable().enableTimeouts()},n.prototype.slow=function(e){return arguments.length?(this.runnable().slow(e),this):this.runnable().slow()},n.prototype.skip=function(){this.runnable().skip()},n.prototype.retries=function(e){return arguments.length?(this.runnable().retries(e),this):this.runnable().retries()}},{}],6:[function(e,t,r){"use strict";var n=e("./runnable");function i(e,t){n.call(this,e,t),this.type="hook"}(0,e("./utils").inherits)(t.exports=i,n),i.prototype.error=function(e){if(!argumen
|