teabag 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/assets/javascripts/teabag-mocha.js +154 -123
- data/app/assets/javascripts/teabag-qunit.js +401 -195
- data/app/assets/javascripts/teabag-teabag.js +3 -4
- data/app/assets/javascripts/teabag/mocha.coffee +1 -1
- data/app/assets/javascripts/teabag/mocha/reporters/html.coffee +1 -1
- data/app/assets/javascripts/teabag/qunit.coffee +1 -1
- data/app/assets/javascripts/teabag/qunit/reporters/html.coffee +1 -1
- data/app/assets/javascripts/teabag/teabag.coffee +1 -0
- data/lib/teabag/version.rb +1 -1
- data/spec/dummy/log/development.log +18711 -0
- data/spec/dummy/log/test.log +632 -0
- data/spec/dummy/tmp/cache/assets/C35/A30/sprockets%2F29906bf540f7d2e081088494b2554989 +0 -0
- data/spec/dummy/tmp/cache/assets/C4E/9B0/sprockets%2Fa807397434c9262c3d62da3e91152184 +0 -0
- data/spec/dummy/tmp/cache/assets/C5B/D00/sprockets%2F01f43815683089878e371a5d078d3e2c +0 -0
- data/spec/dummy/tmp/cache/assets/C72/150/sprockets%2F4194031b4b51b6422c14ac697e3455e5 +0 -0
- data/spec/dummy/tmp/cache/assets/C75/D50/sprockets%2F5302968a40e08d2c011aa38666d273f6 +0 -0
- data/spec/dummy/tmp/cache/assets/C78/F80/sprockets%2F9161622ddd251097a4ab816b8220984c +0 -0
- data/spec/dummy/tmp/cache/assets/C7C/AC0/sprockets%2F29124be1160817c61bb4878894b2ba55 +0 -0
- data/spec/dummy/tmp/cache/assets/C7D/8F0/sprockets%2Ff13d01b85f2449a4f0638ff260425906 +0 -0
- data/spec/dummy/tmp/cache/assets/C7E/E80/sprockets%2F38544f84f61bb3942d24104e39e108c4 +0 -0
- data/spec/dummy/tmp/cache/assets/C85/6E0/sprockets%2F9e583044ba9762ac39f15431ed504495 +0 -0
- data/spec/dummy/tmp/cache/assets/C8A/460/sprockets%2F77bffd9959420103906722b404ae8d59 +0 -0
- data/spec/dummy/tmp/cache/assets/C91/FA0/sprockets%2F2eb81283f5789ae91a69344552db3856 +0 -0
- data/spec/dummy/tmp/cache/assets/C97/430/sprockets%2Fc049582fd1c9178ff983323f75326f64 +0 -0
- data/spec/dummy/tmp/cache/assets/C9D/E90/sprockets%2F3045c9533f179d3e1c805d163ed002a0 +0 -0
- data/spec/dummy/tmp/cache/assets/CA3/C80/sprockets%2F00916393d1e2e947ddafa91701411a73 +0 -0
- data/spec/dummy/tmp/cache/assets/CA6/DF0/sprockets%2F7da83747ce56e49393b6b8726587f846 +0 -0
- data/spec/dummy/tmp/cache/assets/CA9/C40/sprockets%2F932b7e2cd1e067289ab51190800814df +0 -0
- data/spec/dummy/tmp/cache/assets/CAD/410/sprockets%2F651414e5c7e86f05c5108dc71626b25c +0 -0
- data/spec/dummy/tmp/cache/assets/CAF/0F0/sprockets%2F6000e67cf3f2377f860c24da7c819701 +0 -0
- data/spec/dummy/tmp/cache/assets/CB0/700/sprockets%2F006af6bf0f6b55777b03c4615c853881 +0 -0
- data/spec/dummy/tmp/cache/assets/CB1/B50/sprockets%2F44b5b96ee7652d66a217a1756431c4a8 +0 -0
- data/spec/dummy/tmp/cache/assets/CB6/120/sprockets%2F2df706e820de0f82332a613c49f47867 +0 -0
- data/spec/dummy/tmp/cache/assets/CBB/FA0/sprockets%2F74922109263bdc965b2e9567eec6d154 +0 -0
- data/spec/dummy/tmp/cache/assets/CBD/AF0/sprockets%2Fd687ec33822256e9444e8cd04f1b4873 +0 -0
- data/spec/dummy/tmp/cache/assets/CBF/630/sprockets%2F707d2db81468088470d476abff35388d +0 -0
- data/spec/dummy/tmp/cache/assets/CC2/EC0/sprockets%2F76bf80cb571ca530357f78db78167866 +0 -0
- data/spec/dummy/tmp/cache/assets/CCB/3B0/sprockets%2F9535146026add9cffa012ee220204a66 +0 -0
- data/spec/dummy/tmp/cache/assets/CCC/DB0/sprockets%2F3998958d61cda73452466f5652ed81ef +0 -0
- data/spec/dummy/tmp/cache/assets/CCE/C50/sprockets%2Fe12774c2fea852112414bb379a71f31a +0 -0
- data/spec/dummy/tmp/cache/assets/CD3/460/sprockets%2F7f3f6802b0b309ed142d0b671c9640c4 +0 -0
- data/spec/dummy/tmp/cache/assets/CD6/DD0/sprockets%2F301bd3b0e19eb866905681d03a891be3 +0 -0
- data/spec/dummy/tmp/cache/assets/CE0/090/sprockets%2F48d5d35ae87d0723318b8bc257fa2237 +0 -0
- data/spec/dummy/tmp/cache/assets/CE3/1F0/sprockets%2Fe69a515d3a9d14c669be8871012a7d07 +0 -0
- data/spec/dummy/tmp/cache/assets/CE4/190/sprockets%2F36c9ee4181433e33e07eb9748d218ae2 +0 -0
- data/spec/dummy/tmp/cache/assets/CE6/270/sprockets%2F2c98152560d18470fec8cf4c6829b4d0 +0 -0
- data/spec/dummy/tmp/cache/assets/CE6/7C0/sprockets%2Fa03a2c86ce6724be8542295e1cf24798 +0 -0
- data/spec/dummy/tmp/cache/assets/CE7/A60/sprockets%2Ff58eee249aa167d23f8220087bb46684 +0 -0
- data/spec/dummy/tmp/cache/assets/CE9/9E0/sprockets%2F135480d497ed7e4884462dc0ef0b80d7 +0 -0
- data/spec/dummy/tmp/cache/assets/CEB/680/sprockets%2F67f0794ef8c0576d5c7da34f4437305a +0 -0
- data/spec/dummy/tmp/cache/assets/CEB/B40/sprockets%2F1150bf8d912aa100a132251eefaf6045 +0 -0
- data/spec/dummy/tmp/cache/assets/CEC/360/sprockets%2F264b79dde726b36d63fee272a0609469 +0 -0
- data/spec/dummy/tmp/cache/assets/CEE/930/sprockets%2Fe196521e15fd8d33e3261d5538fe8f92 +0 -0
- data/spec/dummy/tmp/cache/assets/CEF/650/sprockets%2Fe859309c630f7637a53d381b327df8fd +0 -0
- data/spec/dummy/tmp/cache/assets/CEF/840/sprockets%2F16c7d195fa548e8343c6a4d2256ed778 +0 -0
- data/spec/dummy/tmp/cache/assets/CF1/C50/sprockets%2F57bd9ac92067ea01882feef075582758 +0 -0
- data/spec/dummy/tmp/cache/assets/CF3/3A0/sprockets%2F6571249b82eb52e7c7e035c692df9b69 +0 -0
- data/spec/dummy/tmp/cache/assets/CF3/C50/sprockets%2F892b968b622f37b988a1de81e09bf631 +0 -0
- data/spec/dummy/tmp/cache/assets/CF8/780/sprockets%2F8845b81ff27cdb57c835836c9f91a265 +0 -0
- data/spec/dummy/tmp/cache/assets/CFA/D20/sprockets%2Fb26796b39b3c5d6ed70be7989637a493 +0 -0
- data/spec/dummy/tmp/cache/assets/CFB/210/sprockets%2F9104695bfbf9a9d4b94382e6e90487a9 +0 -0
- data/spec/dummy/tmp/cache/assets/CFC/380/sprockets%2Fa7443cbd671446a589867dd5f4a4f989 +0 -0
- data/spec/dummy/tmp/cache/assets/D00/110/sprockets%2F6a6353b7723a8b21708e0fbfe04bd422 +0 -0
- data/spec/dummy/tmp/cache/assets/D00/F60/sprockets%2F42e279b52511c47d26c0adb125fd04e8 +0 -0
- data/spec/dummy/tmp/cache/assets/D02/570/sprockets%2F51fa8dc514e6256ae0836d5eb24e0312 +0 -0
- data/spec/dummy/tmp/cache/assets/D03/630/sprockets%2F5d8da32dba6a7be70426a1d554773701 +0 -0
- data/spec/dummy/tmp/cache/assets/D04/170/sprockets%2F76ab1dc02e6c7618852708a1e05a2df3 +0 -0
- data/spec/dummy/tmp/cache/assets/D04/480/sprockets%2F8bd8f10500b21d2f9d94e4cd1401c936 +0 -0
- data/spec/dummy/tmp/cache/assets/D05/8D0/sprockets%2F319f8f235f452343f1ebf03cb262d23d +0 -0
- data/spec/dummy/tmp/cache/assets/D09/BF0/sprockets%2F9e6bca5d26f50d9484385d51ba04312c +0 -0
- data/spec/dummy/tmp/cache/assets/D0B/210/sprockets%2Fb95ce127097fba0e4019f633e91b730d +0 -0
- data/spec/dummy/tmp/cache/assets/D0E/570/sprockets%2F90fe371bf8091e88a712124d9cdae260 +0 -0
- data/spec/dummy/tmp/cache/assets/D11/080/sprockets%2Fe202468befa786e2a3e7c6d5980b2333 +0 -0
- data/spec/dummy/tmp/cache/assets/D15/750/sprockets%2F8effdd3e668a4036260a3e370f3b6657 +0 -0
- data/spec/dummy/tmp/cache/assets/D17/710/sprockets%2Ffa49fb6823d466e79a195e0cd71340c5 +0 -0
- data/spec/dummy/tmp/cache/assets/D1D/560/sprockets%2F1ca784ee7ba1922465147e7f8963eae5 +0 -0
- data/spec/dummy/tmp/cache/assets/D1E/AA0/sprockets%2F5c8741a556bc955cd36e61c88582b6dc +0 -0
- data/spec/dummy/tmp/cache/assets/D22/4D0/sprockets%2Fe94f07f16b94d5cf185c48023f98f1b7 +0 -0
- data/spec/dummy/tmp/cache/assets/D2D/060/sprockets%2F545ec7a363badb5e7106e5112b53b26d +0 -0
- data/spec/dummy/tmp/cache/assets/D30/740/sprockets%2F4ac342b2e0244e90d08bac61f54f4f82 +0 -0
- data/spec/dummy/tmp/cache/assets/D31/9C0/sprockets%2Fbd102a4f5a4985c3519dd6ab0295a1c6 +0 -0
- data/spec/dummy/tmp/cache/assets/D35/7C0/sprockets%2Ff536a2606eaf7d542c0985104cb62baf +0 -0
- data/spec/dummy/tmp/cache/assets/D37/FF0/sprockets%2F96841ca4cfae32c515077f3f5fc303b2 +0 -0
- data/spec/dummy/tmp/cache/assets/D3C/840/sprockets%2Fc6202ec91d567a85bd3d46dc43ea9108 +0 -0
- data/spec/dummy/tmp/cache/assets/D44/0F0/sprockets%2Fc4d293b967c2e290deed3f3bd2271828 +0 -0
- data/spec/dummy/tmp/cache/assets/D44/E90/sprockets%2F05cfc0bf7c9938963d1d1c63248db80d +0 -0
- data/spec/dummy/tmp/cache/assets/D45/C30/sprockets%2Fcc744877558178a3adb77c441cadce70 +0 -0
- data/spec/dummy/tmp/cache/assets/D48/BA0/sprockets%2F30a5bfc94bac88df67501fc509b84694 +0 -0
- data/spec/dummy/tmp/cache/assets/D49/A10/sprockets%2Fc4656bd995a6f297c26d19b13aadb963 +0 -0
- data/spec/dummy/tmp/cache/assets/D4A/580/sprockets%2F19b8d8a9a57850de79b6c099fb2d010e +0 -0
- data/spec/dummy/tmp/cache/assets/D50/D70/sprockets%2Fe2a3e6c95b11e0801a4eebae3a026026 +0 -0
- data/spec/dummy/tmp/cache/assets/D51/400/sprockets%2Ff5e433d8a31e80985b75ce598de236be +0 -0
- data/spec/dummy/tmp/cache/assets/D54/D80/sprockets%2F631327e25ec20edc723046cdec3bb1c0 +0 -0
- data/spec/dummy/tmp/cache/assets/D5C/710/sprockets%2F9427d05cee2caa721241a25a9af1d08f +0 -0
- data/spec/dummy/tmp/cache/assets/D5C/CC0/sprockets%2Faa8bf6de211f2765b0a26f112b971f0c +0 -0
- data/spec/dummy/tmp/cache/assets/D61/1F0/sprockets%2F0c7a6176d2fc4db00bb9a74d36380fe1 +0 -0
- data/spec/dummy/tmp/cache/assets/D63/050/sprockets%2Fae26cd0ae2c0da97e49f6043b91008d5 +0 -0
- data/spec/dummy/tmp/cache/assets/D67/BC0/sprockets%2F35d2c2b45981ade5a2db2a9c7f37a615 +0 -0
- data/spec/dummy/tmp/cache/assets/D67/C20/sprockets%2F0d30bf27e5f74bbd85f313cb8d3c4623 +0 -0
- data/spec/dummy/tmp/cache/assets/D69/F90/sprockets%2F6a0795b7b38bd7e6142cd1b88211dade +0 -0
- data/spec/dummy/tmp/cache/assets/D6D/530/sprockets%2F8d52dee91bff01a8a2306d8a7c9152a9 +0 -0
- data/spec/dummy/tmp/cache/assets/D6D/DA0/sprockets%2Fac936bf40b42227a2bf9d474ae9ec149 +0 -0
- data/spec/dummy/tmp/cache/assets/D77/B30/sprockets%2F946cf2f17c7eb41037f9ee08ad67ec40 +0 -0
- data/spec/dummy/tmp/cache/assets/D78/2F0/sprockets%2F3c61f8915b8f717b1de788e6ecad122c +0 -0
- data/spec/dummy/tmp/cache/assets/D80/390/sprockets%2Fe44158f578d9ffade083a07f54eab729 +0 -0
- data/spec/dummy/tmp/cache/assets/D8C/520/sprockets%2F221cd58a042baac534d27e4cfedc1188 +0 -0
- data/spec/dummy/tmp/cache/assets/D93/BD0/sprockets%2Ff5e1b60201e08e3ddf8d3de5211f3d5e +0 -0
- data/spec/dummy/tmp/cache/assets/D9B/C20/sprockets%2F0e01606ddd95e451bc7d39ce0eeb664d +0 -0
- data/spec/dummy/tmp/cache/assets/DA0/330/sprockets%2Fcbbb4de706387d50f48a72ee6c9c1b80 +0 -0
- data/spec/dummy/tmp/cache/assets/DA5/0A0/sprockets%2F7a4b5928cec69ab65afff309a04d6b47 +0 -0
- data/spec/dummy/tmp/cache/assets/DAE/6C0/sprockets%2F77c7a8676aeefa73156c55dfcf51cc46 +0 -0
- data/spec/dummy/tmp/cache/assets/DAF/7C0/sprockets%2F8942514d59e7bffbfb33cde6fa9735c2 +0 -0
- data/spec/dummy/tmp/cache/assets/DB3/5D0/sprockets%2Fce1d4d75832c9bdeafd869f6f7b61725 +0 -0
- data/spec/dummy/tmp/cache/assets/DB3/D70/sprockets%2Fcc2f5e1f6eeb99c33881848cb1cde758 +0 -0
- data/spec/dummy/tmp/cache/assets/DB5/040/sprockets%2F9a9da5df88713663b9fbc945facca891 +0 -0
- data/spec/dummy/tmp/cache/assets/DC3/230/sprockets%2Fdf52e72eb73be91eccc60182191aed0b +0 -0
- data/spec/dummy/tmp/cache/assets/DC7/A10/sprockets%2F84a8af0fcbf401864e1ae5bf092cba94 +0 -0
- data/spec/dummy/tmp/cache/assets/DCD/EB0/sprockets%2F4f77f509126ecbced7ea2a5ab290c8d4 +0 -0
- data/spec/dummy/tmp/cache/assets/DD8/C10/sprockets%2Ffb91282efc9f16ebaf7e98e312ce0b73 +0 -0
- data/spec/dummy/tmp/cache/assets/DDB/EF0/sprockets%2Fe790bb18b64df8aa0a9fe94642a9edd8 +0 -0
- data/spec/dummy/tmp/cache/assets/DDD/A60/sprockets%2Fff948b6ffe44a3cc3d2d109a39f548fd +0 -0
- data/spec/dummy/tmp/cache/assets/DEB/110/sprockets%2F2dbdab0ce5babca645cdb5780004f875 +0 -0
- data/spec/dummy/tmp/cache/assets/DF6/0E0/sprockets%2F85b10db6e1afe643aba6d396abdd77f0 +0 -0
- data/spec/dummy/tmp/cache/assets/DF7/E10/sprockets%2F25e4253aba9a9adcefb72552fb1ff0c8 +0 -0
- data/spec/dummy/tmp/cache/assets/DF9/AD0/sprockets%2Fc700afd7cee3fe9d7ff8352b213b2c4a +0 -0
- data/spec/dummy/tmp/cache/assets/DFC/C20/sprockets%2Fd9178ad7e3b401c9fceafd64ea2b50d6 +0 -0
- data/spec/dummy/tmp/cache/assets/DFC/C30/sprockets%2Fb50a07cb30b0bd0eec8e98e5de79d65d +0 -0
- data/spec/dummy/tmp/cache/assets/E02/6E0/sprockets%2F63d6a5cdb8cefa64ef76b5c6e0fd3720 +0 -0
- data/spec/dummy/tmp/cache/assets/E08/BB0/sprockets%2Fefac99af1af28543aef6fb607faa4973 +0 -0
- data/spec/dummy/tmp/cache/assets/E0D/070/sprockets%2F0e7ef9a5978dcc6b1abce678ef836c0a +0 -0
- data/spec/dummy/tmp/cache/assets/E17/EF0/sprockets%2Fa291ad64a26afd055dfadabbdf03f154 +0 -0
- data/spec/dummy/tmp/cache/assets/E2F/790/sprockets%2F7fac280deaa7ef20a77d5c9b5b9cfc34 +0 -0
- data/spec/dummy/tmp/cache/assets/E37/9B0/sprockets%2F4defba98cf7befff81450e2b24e90b6d +0 -0
- data/spec/dummy/tmp/cache/assets/E41/250/sprockets%2F97cf8fe3d7ffaff076f655aefb36da03 +0 -0
- data/spec/dummy/tmp/cache/assets/E58/840/sprockets%2Fab7a15f76acfee8c320dd3cfc2a8c6d5 +0 -0
- data/spec/dummy/tmp/cache/assets/E64/1E0/sprockets%2F81ab4c863fbbdec8dd66afc97ebf034d +0 -0
- data/spec/dummy/tmp/cache/assets/E6E/260/sprockets%2Fd9f8ab8b91ef582cc6c99a3ba0dedfe6 +0 -0
- data/spec/dummy/tmp/cache/assets/E89/4C0/sprockets%2F68b2eedb3cde6fc01d50fead7caf8a18 +0 -0
- data/spec/dummy/tmp/cache/assets/F79/360/sprockets%2F0ce035fefee5ebdabc8efabfbdbd6ee4 +0 -0
- data/spec/javascripts/teabag/mocha/reporters/html_mspec.coffee +1 -1
- data/vendor/assets/javascripts/{mocha-1.8.1.MIT.LICENSE → mocha-1.9.1.MIT.LICENSE} +0 -0
- data/vendor/assets/javascripts/{mocha-1.8.1.js → mocha-1.9.1.js} +79 -81
- data/vendor/assets/javascripts/{qunit-1.10.0.MIT.LICENSE → qunit-1.11.0.MIT.LICENSE} +0 -0
- data/vendor/assets/javascripts/{qunit-1.10.0.js → qunit-1.11.0.js} +319 -144
- data/vendor/assets/javascripts/support/chai.js +721 -279
- data/vendor/assets/javascripts/support/jasmine-jquery.js +28 -2
- data/vendor/assets/javascripts/support/sinon.js +581 -435
- metadata +26 -8
@@ -1,6 +1,5 @@
|
|
1
1
|
;(function(){
|
2
2
|
|
3
|
-
|
4
3
|
// CommonJS require()
|
5
4
|
|
6
5
|
function require(p){
|
@@ -52,9 +51,9 @@
|
|
52
51
|
|
53
52
|
module.exports = function(type){
|
54
53
|
return function(){
|
55
|
-
|
56
54
|
}
|
57
55
|
};
|
56
|
+
|
58
57
|
}); // module: browser/debug.js
|
59
58
|
|
60
59
|
require.register("browser/diff.js", function(module, exports, require){
|
@@ -805,7 +804,6 @@
|
|
805
804
|
this._error = err;
|
806
805
|
};
|
807
806
|
|
808
|
-
|
809
807
|
}); // module: hook.js
|
810
808
|
|
811
809
|
require.register("interfaces/bdd.js", function(module, exports, require){
|
@@ -1006,6 +1004,7 @@
|
|
1006
1004
|
}
|
1007
1005
|
}
|
1008
1006
|
};
|
1007
|
+
|
1009
1008
|
}); // module: interfaces/exports.js
|
1010
1009
|
|
1011
1010
|
require.register("interfaces/index.js", function(module, exports, require){
|
@@ -1549,7 +1548,7 @@
|
|
1549
1548
|
var options = this.options;
|
1550
1549
|
var runner = new exports.Runner(suite);
|
1551
1550
|
var reporter = new this._reporter(runner);
|
1552
|
-
runner.ignoreLeaks = options.ignoreLeaks;
|
1551
|
+
runner.ignoreLeaks = false !== options.ignoreLeaks;
|
1553
1552
|
runner.asyncOnly = options.asyncOnly;
|
1554
1553
|
if (options.grep) runner.grep(options.grep, options.invert);
|
1555
1554
|
if (options.globals) runner.globals(options.globals);
|
@@ -2334,8 +2333,6 @@
|
|
2334
2333
|
});
|
2335
2334
|
|
2336
2335
|
runner.on('test end', function(test){
|
2337
|
-
window.scrollTo(0, document.body.scrollHeight);
|
2338
|
-
|
2339
2336
|
// TODO: add to stats
|
2340
2337
|
var percent = stats.tests / this.total * 100 | 0;
|
2341
2338
|
if (progress) progress.update(percent).draw(ctx);
|
@@ -3100,10 +3097,10 @@
|
|
3100
3097
|
Min.prototype = new F;
|
3101
3098
|
Min.prototype.constructor = Min;
|
3102
3099
|
|
3100
|
+
|
3103
3101
|
}); // module: reporters/min.js
|
3104
3102
|
|
3105
3103
|
require.register("reporters/nyan.js", function(module, exports, require){
|
3106
|
-
|
3107
3104
|
/**
|
3108
3105
|
* Module dependencies.
|
3109
3106
|
*/
|
@@ -3249,44 +3246,39 @@
|
|
3249
3246
|
NyanCat.prototype.drawNyanCat = function(status) {
|
3250
3247
|
var self = this;
|
3251
3248
|
var startWidth = this.scoreboardWidth + this.trajectories[0].length;
|
3249
|
+
var color = '\u001b[' + startWidth + 'C';
|
3250
|
+
var padding = '';
|
3252
3251
|
|
3253
|
-
|
3254
|
-
|
3255
|
-
|
3256
|
-
|
3257
|
-
|
3258
|
-
|
3259
|
-
|
3260
|
-
|
3261
|
-
|
3262
|
-
|
3263
|
-
|
3264
|
-
|
3265
|
-
|
3266
|
-
|
3267
|
-
|
3268
|
-
|
3269
|
-
|
3270
|
-
|
3271
|
-
|
3272
|
-
|
3273
|
-
|
3274
|
-
|
3275
|
-
|
3276
|
-
|
3277
|
-
|
3278
|
-
|
3279
|
-
|
3280
|
-
|
3281
|
-
|
3282
|
-
|
3283
|
-
case 3:
|
3284
|
-
var padding = self.tick ? ' ' : ' ';
|
3285
|
-
write(padding + '"" "" ');
|
3286
|
-
write('\n');
|
3287
|
-
break;
|
3288
|
-
}
|
3289
|
-
});
|
3252
|
+
write(color);
|
3253
|
+
write('_,------,');
|
3254
|
+
write('\n');
|
3255
|
+
|
3256
|
+
write(color);
|
3257
|
+
padding = self.tick ? ' ' : ' ';
|
3258
|
+
write('_|' + padding + '/\\_/\\ ');
|
3259
|
+
write('\n');
|
3260
|
+
|
3261
|
+
write(color);
|
3262
|
+
padding = self.tick ? '_' : '__';
|
3263
|
+
var tail = self.tick ? '~' : '^';
|
3264
|
+
var face;
|
3265
|
+
switch (status) {
|
3266
|
+
case 'pass':
|
3267
|
+
face = '( ^ .^)';
|
3268
|
+
break;
|
3269
|
+
case 'fail':
|
3270
|
+
face = '( o .o)';
|
3271
|
+
break;
|
3272
|
+
default:
|
3273
|
+
face = '( - .-)';
|
3274
|
+
}
|
3275
|
+
write(tail + '|' + padding + face + ' ');
|
3276
|
+
write('\n');
|
3277
|
+
|
3278
|
+
write(color);
|
3279
|
+
padding = self.tick ? ' ' : ' ';
|
3280
|
+
write(padding + '"" "" ');
|
3281
|
+
write('\n');
|
3290
3282
|
|
3291
3283
|
this.cursorUp(this.numberOfLines);
|
3292
3284
|
};
|
@@ -4065,8 +4057,7 @@
|
|
4065
4057
|
, Test = require('./test')
|
4066
4058
|
, utils = require('./utils')
|
4067
4059
|
, filter = utils.filter
|
4068
|
-
, keys = utils.keys
|
4069
|
-
, noop = function(){};
|
4060
|
+
, keys = utils.keys;
|
4070
4061
|
|
4071
4062
|
/**
|
4072
4063
|
* Non-enumerable globals.
|
@@ -4118,6 +4109,15 @@
|
|
4118
4109
|
this.globals(this.globalProps().concat(['errno']));
|
4119
4110
|
}
|
4120
4111
|
|
4112
|
+
/**
|
4113
|
+
* Wrapper for setImmediate, process.nextTick, or browser polyfill.
|
4114
|
+
*
|
4115
|
+
* @param {Function} fn
|
4116
|
+
* @api private
|
4117
|
+
*/
|
4118
|
+
|
4119
|
+
Runner.immediately = global.setImmediate || process.nextTick;
|
4120
|
+
|
4121
4121
|
/**
|
4122
4122
|
* Inherit from `EventEmitter.prototype`.
|
4123
4123
|
*/
|
@@ -4303,7 +4303,7 @@
|
|
4303
4303
|
});
|
4304
4304
|
}
|
4305
4305
|
|
4306
|
-
|
4306
|
+
Runner.immediately(function(){
|
4307
4307
|
next(0);
|
4308
4308
|
});
|
4309
4309
|
};
|
@@ -4546,14 +4546,16 @@
|
|
4546
4546
|
var self = this
|
4547
4547
|
, fn = fn || function(){};
|
4548
4548
|
|
4549
|
+
function uncaught(err){
|
4550
|
+
self.uncaught(err);
|
4551
|
+
}
|
4552
|
+
|
4549
4553
|
debug('start');
|
4550
4554
|
|
4551
4555
|
// callback
|
4552
4556
|
this.on('end', function(){
|
4553
4557
|
debug('end');
|
4554
|
-
process.removeListener('uncaughtException',
|
4555
|
-
self.uncaught(err);
|
4556
|
-
});
|
4558
|
+
process.removeListener('uncaughtException', uncaught);
|
4557
4559
|
fn(self.failures);
|
4558
4560
|
});
|
4559
4561
|
|
@@ -4565,9 +4567,7 @@
|
|
4565
4567
|
});
|
4566
4568
|
|
4567
4569
|
// uncaught exception
|
4568
|
-
process.on('uncaughtException',
|
4569
|
-
self.uncaught(err);
|
4570
|
-
});
|
4570
|
+
process.on('uncaughtException', uncaught);
|
4571
4571
|
|
4572
4572
|
return this;
|
4573
4573
|
};
|
@@ -5238,34 +5238,6 @@
|
|
5238
5238
|
process.stdout = {};
|
5239
5239
|
global = window;
|
5240
5240
|
|
5241
|
-
/**
|
5242
|
-
* next tick implementation.
|
5243
|
-
*/
|
5244
|
-
|
5245
|
-
process.nextTick = (function(){
|
5246
|
-
// postMessage behaves badly on IE8
|
5247
|
-
if (window.ActiveXObject || !window.postMessage) {
|
5248
|
-
return function(fn){ fn() };
|
5249
|
-
}
|
5250
|
-
|
5251
|
-
// based on setZeroTimeout by David Baron
|
5252
|
-
// - http://dbaron.org/log/20100309-faster-timeouts
|
5253
|
-
var timeouts = []
|
5254
|
-
, name = 'mocha-zero-timeout'
|
5255
|
-
|
5256
|
-
window.addEventListener('message', function(e){
|
5257
|
-
if (e.source == window && e.data == name) {
|
5258
|
-
if (e.stopPropagation) e.stopPropagation();
|
5259
|
-
if (timeouts.length) timeouts.shift()();
|
5260
|
-
}
|
5261
|
-
}, true);
|
5262
|
-
|
5263
|
-
return function(fn){
|
5264
|
-
timeouts.push(fn);
|
5265
|
-
window.postMessage(name, '*');
|
5266
|
-
}
|
5267
|
-
})();
|
5268
|
-
|
5269
5241
|
/**
|
5270
5242
|
* Remove uncaughtException listener.
|
5271
5243
|
*/
|
@@ -5298,6 +5270,32 @@
|
|
5298
5270
|
var Mocha = window.Mocha = require('mocha'),
|
5299
5271
|
mocha = window.mocha = new Mocha({ reporter: 'html' });
|
5300
5272
|
|
5273
|
+
var immediateQueue = []
|
5274
|
+
, immediateTimeout;
|
5275
|
+
|
5276
|
+
function timeslice() {
|
5277
|
+
var immediateStart = new Date().getTime();
|
5278
|
+
while (immediateQueue.length && (new Date().getTime() - immediateStart) < 100) {
|
5279
|
+
immediateQueue.shift()();
|
5280
|
+
}
|
5281
|
+
if (immediateQueue.length) {
|
5282
|
+
immediateTimeout = setTimeout(timeslice, 0);
|
5283
|
+
} else {
|
5284
|
+
immediateTimeout = null;
|
5285
|
+
}
|
5286
|
+
}
|
5287
|
+
|
5288
|
+
/**
|
5289
|
+
* High-performance override of Runner.immediately.
|
5290
|
+
*/
|
5291
|
+
|
5292
|
+
Mocha.Runner.immediately = function(callback) {
|
5293
|
+
immediateQueue.push(callback);
|
5294
|
+
if (!immediateTimeout) {
|
5295
|
+
immediateTimeout = setTimeout(timeslice, 0);
|
5296
|
+
}
|
5297
|
+
};
|
5298
|
+
|
5301
5299
|
/**
|
5302
5300
|
* Override ui to ensure that the ui functions are initialized.
|
5303
5301
|
* Normally this would happen in Mocha.prototype.loadFiles.
|
@@ -5339,9 +5337,7 @@
|
|
5339
5337
|
})();
|
5340
5338
|
})();
|
5341
5339
|
(function() {
|
5342
|
-
|
5343
5340
|
this.Teabag = (function() {
|
5344
|
-
|
5345
5341
|
function Teabag() {}
|
5346
5342
|
|
5347
5343
|
Teabag.defer = false;
|
@@ -5373,6 +5369,7 @@
|
|
5373
5369
|
|
5374
5370
|
Teabag.resolveDependenciesFromParams = function(all) {
|
5375
5371
|
var dep, deps, file, parts, path, paths, _i, _j, _len, _len1;
|
5372
|
+
|
5376
5373
|
if (all == null) {
|
5377
5374
|
all = [];
|
5378
5375
|
}
|
@@ -5398,16 +5395,20 @@
|
|
5398
5395
|
};
|
5399
5396
|
|
5400
5397
|
Teabag.log = function() {
|
5398
|
+
var e;
|
5399
|
+
|
5401
5400
|
this.messages.push(arguments[0]);
|
5402
5401
|
try {
|
5403
5402
|
return console.log.apply(console, arguments);
|
5404
|
-
} catch (
|
5403
|
+
} catch (_error) {
|
5404
|
+
e = _error;
|
5405
5405
|
throw new Error("Unable to use console.log for logging");
|
5406
5406
|
}
|
5407
5407
|
};
|
5408
5408
|
|
5409
5409
|
Teabag.getMessages = function() {
|
5410
5410
|
var messages;
|
5411
|
+
|
5411
5412
|
messages = this.messages;
|
5412
5413
|
this.messages = [];
|
5413
5414
|
return messages;
|
@@ -5419,9 +5420,7 @@
|
|
5419
5420
|
|
5420
5421
|
}).call(this);
|
5421
5422
|
(function() {
|
5422
|
-
|
5423
5423
|
Teabag.Runner = (function() {
|
5424
|
-
|
5425
5424
|
Runner.run = false;
|
5426
5425
|
|
5427
5426
|
function Runner() {
|
@@ -5436,6 +5435,7 @@
|
|
5436
5435
|
|
5437
5436
|
Runner.prototype.getParams = function() {
|
5438
5437
|
var name, param, params, value, _i, _len, _ref, _ref1;
|
5438
|
+
|
5439
5439
|
params = {};
|
5440
5440
|
_ref = Teabag.location.search.substring(1).split("&");
|
5441
5441
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
@@ -5482,6 +5482,7 @@
|
|
5482
5482
|
|
5483
5483
|
fixture.preload = function() {
|
5484
5484
|
var url, urls, _i, _len, _results;
|
5485
|
+
|
5485
5486
|
urls = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
|
5486
5487
|
_results = [];
|
5487
5488
|
for (_i = 0, _len = urls.length; _i < _len; _i++) {
|
@@ -5493,6 +5494,7 @@
|
|
5493
5494
|
|
5494
5495
|
fixture.load = function() {
|
5495
5496
|
var append, index, url, urls, _i, _j, _len, _results;
|
5497
|
+
|
5496
5498
|
urls = 2 <= arguments.length ? __slice.call(arguments, 0, _i = arguments.length - 1) : (_i = 0, []), append = arguments[_i++];
|
5497
5499
|
if (append == null) {
|
5498
5500
|
append = false;
|
@@ -5511,6 +5513,7 @@
|
|
5511
5513
|
|
5512
5514
|
fixture.set = function() {
|
5513
5515
|
var append, html, htmls, index, _i, _j, _len, _results;
|
5516
|
+
|
5514
5517
|
htmls = 2 <= arguments.length ? __slice.call(arguments, 0, _i = arguments.length - 1) : (_i = 0, []), append = arguments[_i++];
|
5515
5518
|
if (append == null) {
|
5516
5519
|
append = false;
|
@@ -5543,6 +5546,7 @@
|
|
5543
5546
|
|
5544
5547
|
load = function(url, append, preload) {
|
5545
5548
|
var cached, value;
|
5549
|
+
|
5546
5550
|
if (preload == null) {
|
5547
5551
|
preload = false;
|
5548
5552
|
}
|
@@ -5604,6 +5608,7 @@
|
|
5604
5608
|
|
5605
5609
|
create = function() {
|
5606
5610
|
var _ref;
|
5611
|
+
|
5607
5612
|
Teabag.fixture.el = document.createElement("div");
|
5608
5613
|
if (typeof window.$ === 'function') {
|
5609
5614
|
Teabag.fixture.$el = $(Teabag.fixture.el);
|
@@ -5614,6 +5619,7 @@
|
|
5614
5619
|
|
5615
5620
|
cleanup = function() {
|
5616
5621
|
var _base, _ref, _ref1;
|
5622
|
+
|
5617
5623
|
(_base = Teabag.fixture).el || (_base.el = document.getElementById("teabag-fixtures"));
|
5618
5624
|
if ((_ref = Teabag.fixture.el) != null) {
|
5619
5625
|
if ((_ref1 = _ref.parentNode) != null) {
|
@@ -5624,16 +5630,19 @@
|
|
5624
5630
|
};
|
5625
5631
|
|
5626
5632
|
xhrRequest = function(url, callback) {
|
5633
|
+
var e;
|
5634
|
+
|
5627
5635
|
if (window.XMLHttpRequest) {
|
5628
5636
|
xhr = new XMLHttpRequest();
|
5629
5637
|
} else if (window.ActiveXObject) {
|
5630
5638
|
try {
|
5631
5639
|
xhr = new ActiveXObject("Msxml2.XMLHTTP");
|
5632
|
-
} catch (
|
5640
|
+
} catch (_error) {
|
5641
|
+
e = _error;
|
5633
5642
|
try {
|
5634
5643
|
xhr = new ActiveXObject("Microsoft.XMLHTTP");
|
5635
|
-
} catch (
|
5636
|
-
|
5644
|
+
} catch (_error) {
|
5645
|
+
e = _error;
|
5637
5646
|
}
|
5638
5647
|
}
|
5639
5648
|
}
|
@@ -5651,9 +5660,7 @@
|
|
5651
5660
|
|
5652
5661
|
}).call(this);
|
5653
5662
|
(function() {
|
5654
|
-
|
5655
5663
|
Teabag.Reporters.BaseView = (function() {
|
5656
|
-
|
5657
5664
|
function BaseView() {
|
5658
5665
|
this.elements = {};
|
5659
5666
|
this.build();
|
@@ -5673,6 +5680,7 @@
|
|
5673
5680
|
|
5674
5681
|
BaseView.prototype.createEl = function(type, className) {
|
5675
5682
|
var el;
|
5683
|
+
|
5676
5684
|
if (className == null) {
|
5677
5685
|
className = "";
|
5678
5686
|
}
|
@@ -5683,18 +5691,21 @@
|
|
5683
5691
|
|
5684
5692
|
BaseView.prototype.findEl = function(id) {
|
5685
5693
|
var _base;
|
5694
|
+
|
5686
5695
|
this.elements || (this.elements = {});
|
5687
5696
|
return (_base = this.elements)[id] || (_base[id] = document.getElementById("teabag-" + id));
|
5688
5697
|
};
|
5689
5698
|
|
5690
5699
|
BaseView.prototype.setText = function(id, value) {
|
5691
5700
|
var el;
|
5701
|
+
|
5692
5702
|
el = this.findEl(id);
|
5693
5703
|
return el.innerHTML = value;
|
5694
5704
|
};
|
5695
5705
|
|
5696
5706
|
BaseView.prototype.setHtml = function(id, value, add) {
|
5697
5707
|
var el;
|
5708
|
+
|
5698
5709
|
if (add == null) {
|
5699
5710
|
add = false;
|
5700
5711
|
}
|
@@ -5708,12 +5719,14 @@
|
|
5708
5719
|
|
5709
5720
|
BaseView.prototype.setClass = function(id, value) {
|
5710
5721
|
var el;
|
5722
|
+
|
5711
5723
|
el = this.findEl(id);
|
5712
5724
|
return el.className = value;
|
5713
5725
|
};
|
5714
5726
|
|
5715
5727
|
BaseView.prototype.htmlSafe = function(str) {
|
5716
5728
|
var el;
|
5729
|
+
|
5717
5730
|
el = document.createElement("div");
|
5718
5731
|
el.appendChild(document.createTextNode(str));
|
5719
5732
|
return el.innerHTML;
|
@@ -5730,14 +5743,11 @@
|
|
5730
5743
|
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
5731
5744
|
|
5732
5745
|
Teabag.Reporters.HTML = (function(_super) {
|
5733
|
-
|
5734
5746
|
__extends(HTML, _super);
|
5735
5747
|
|
5736
5748
|
function HTML() {
|
5737
5749
|
this.toggleConfig = __bind(this.toggleConfig, this);
|
5738
|
-
|
5739
|
-
this.reportRunnerResults = __bind(this.reportRunnerResults, this);
|
5740
|
-
this.start = new Teabag.Date().getTime();
|
5750
|
+
this.reportRunnerResults = __bind(this.reportRunnerResults, this); this.start = new Teabag.Date().getTime();
|
5741
5751
|
this.config = {
|
5742
5752
|
"use-catch": true,
|
5743
5753
|
"build-full-report": false,
|
@@ -5762,6 +5772,7 @@
|
|
5762
5772
|
|
5763
5773
|
HTML.prototype.build = function() {
|
5764
5774
|
var _ref;
|
5775
|
+
|
5765
5776
|
this.buildLayout();
|
5766
5777
|
this.setText("env-info", this.envInfo());
|
5767
5778
|
this.setText("version", Teabag.version);
|
@@ -5779,6 +5790,7 @@
|
|
5779
5790
|
|
5780
5791
|
HTML.prototype.buildLayout = function() {
|
5781
5792
|
var el;
|
5793
|
+
|
5782
5794
|
el = this.createEl("div");
|
5783
5795
|
el.id = "teabag-interface";
|
5784
5796
|
el.innerHTML = Teabag.Reporters.HTML.template;
|
@@ -5787,6 +5799,7 @@
|
|
5787
5799
|
|
5788
5800
|
HTML.prototype.buildSuiteSelect = function() {
|
5789
5801
|
var options, suite, _i, _len, _ref;
|
5802
|
+
|
5790
5803
|
if (Teabag.suites.all.length === 1) {
|
5791
5804
|
return "";
|
5792
5805
|
}
|
@@ -5863,6 +5876,7 @@
|
|
5863
5876
|
|
5864
5877
|
HTML.prototype.updateStatus = function(spec) {
|
5865
5878
|
var elapsed, result, _ref, _ref1;
|
5879
|
+
|
5866
5880
|
spec = new Teabag.Spec(spec);
|
5867
5881
|
result = spec.result();
|
5868
5882
|
if (result.skipped || result.status === "pending") {
|
@@ -5891,6 +5905,7 @@
|
|
5891
5905
|
|
5892
5906
|
HTML.prototype.showConfiguration = function() {
|
5893
5907
|
var key, value, _ref, _results;
|
5908
|
+
|
5894
5909
|
_ref = this.config;
|
5895
5910
|
_results = [];
|
5896
5911
|
for (key in _ref) {
|
@@ -5906,6 +5921,7 @@
|
|
5906
5921
|
|
5907
5922
|
HTML.prototype.setFilters = function() {
|
5908
5923
|
var link;
|
5924
|
+
|
5909
5925
|
link = [Teabag.root, Teabag.suites.active].join('/');
|
5910
5926
|
if (Teabag.params["file"]) {
|
5911
5927
|
this.filters.push("<a href='" + link + "'>remove</a> by file: " + Teabag.params["file"]);
|
@@ -5917,6 +5933,7 @@
|
|
5917
5933
|
|
5918
5934
|
HTML.prototype.readConfig = function() {
|
5919
5935
|
var config;
|
5936
|
+
|
5920
5937
|
if (config = this.cookie("teabag")) {
|
5921
5938
|
return this.config = config;
|
5922
5939
|
}
|
@@ -5924,6 +5941,7 @@
|
|
5924
5941
|
|
5925
5942
|
HTML.prototype.toggleConfig = function(e) {
|
5926
5943
|
var button, name;
|
5944
|
+
|
5927
5945
|
button = e.target;
|
5928
5946
|
if (button.tagName.toLowerCase() !== "button") {
|
5929
5947
|
return;
|
@@ -5944,6 +5962,7 @@
|
|
5944
5962
|
|
5945
5963
|
HTML.prototype.cookie = function(name, value) {
|
5946
5964
|
var date, match;
|
5965
|
+
|
5947
5966
|
if (value == null) {
|
5948
5967
|
value = void 0;
|
5949
5968
|
}
|
@@ -5964,15 +5983,16 @@
|
|
5964
5983
|
|
5965
5984
|
}).call(this);
|
5966
5985
|
(function() {
|
5967
|
-
var
|
5986
|
+
var _ref, _ref1, _ref2,
|
5987
|
+
__hasProp = {}.hasOwnProperty,
|
5968
5988
|
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
5969
5989
|
|
5970
5990
|
Teabag.Reporters.HTML.ProgressView = (function(_super) {
|
5971
|
-
|
5972
5991
|
__extends(ProgressView, _super);
|
5973
5992
|
|
5974
5993
|
function ProgressView() {
|
5975
|
-
|
5994
|
+
_ref = ProgressView.__super__.constructor.apply(this, arguments);
|
5995
|
+
return _ref;
|
5976
5996
|
}
|
5977
5997
|
|
5978
5998
|
ProgressView.create = function(displayProgress) {
|
@@ -6000,11 +6020,11 @@
|
|
6000
6020
|
})(Teabag.Reporters.BaseView);
|
6001
6021
|
|
6002
6022
|
Teabag.Reporters.HTML.SimpleProgressView = (function(_super) {
|
6003
|
-
|
6004
6023
|
__extends(SimpleProgressView, _super);
|
6005
6024
|
|
6006
6025
|
function SimpleProgressView() {
|
6007
|
-
|
6026
|
+
_ref1 = SimpleProgressView.__super__.constructor.apply(this, arguments);
|
6027
|
+
return _ref1;
|
6008
6028
|
}
|
6009
6029
|
|
6010
6030
|
SimpleProgressView.prototype.build = function() {
|
@@ -6014,6 +6034,7 @@
|
|
6014
6034
|
|
6015
6035
|
SimpleProgressView.prototype.update = function(total, run) {
|
6016
6036
|
var percent;
|
6037
|
+
|
6017
6038
|
percent = total ? Math.ceil((run * 100) / total) : 0;
|
6018
6039
|
return this.setHtml("progress-percent", "" + percent + "%");
|
6019
6040
|
};
|
@@ -6023,11 +6044,11 @@
|
|
6023
6044
|
})(Teabag.Reporters.HTML.ProgressView);
|
6024
6045
|
|
6025
6046
|
Teabag.Reporters.HTML.RadialProgressView = (function(_super) {
|
6026
|
-
|
6027
6047
|
__extends(RadialProgressView, _super);
|
6028
6048
|
|
6029
6049
|
function RadialProgressView() {
|
6030
|
-
|
6050
|
+
_ref2 = RadialProgressView.__super__.constructor.apply(this, arguments);
|
6051
|
+
return _ref2;
|
6031
6052
|
}
|
6032
6053
|
|
6033
6054
|
RadialProgressView.supported = !!document.createElement("canvas").getContext;
|
@@ -6038,7 +6059,8 @@
|
|
6038
6059
|
};
|
6039
6060
|
|
6040
6061
|
RadialProgressView.prototype.appendTo = function() {
|
6041
|
-
var canvas;
|
6062
|
+
var canvas, e;
|
6063
|
+
|
6042
6064
|
RadialProgressView.__super__.appendTo.apply(this, arguments);
|
6043
6065
|
this.size = 80;
|
6044
6066
|
try {
|
@@ -6047,13 +6069,14 @@
|
|
6047
6069
|
this.ctx = canvas.getContext("2d");
|
6048
6070
|
this.ctx.strokeStyle = "#fff";
|
6049
6071
|
return this.ctx.lineWidth = 1.5;
|
6050
|
-
} catch (
|
6051
|
-
|
6072
|
+
} catch (_error) {
|
6073
|
+
e = _error;
|
6052
6074
|
}
|
6053
6075
|
};
|
6054
6076
|
|
6055
6077
|
RadialProgressView.prototype.update = function(total, run) {
|
6056
6078
|
var half, percent;
|
6079
|
+
|
6057
6080
|
percent = total ? Math.ceil((run * 100) / total) : 0;
|
6058
6081
|
this.setHtml("progress-percent", "" + percent + "%");
|
6059
6082
|
if (!this.ctx) {
|
@@ -6093,6 +6116,7 @@
|
|
6093
6116
|
|
6094
6117
|
SpecView.prototype.build = function() {
|
6095
6118
|
var classes;
|
6119
|
+
|
6096
6120
|
classes = ["spec"];
|
6097
6121
|
if (this.spec.pending) {
|
6098
6122
|
classes.push("state-pending");
|
@@ -6105,6 +6129,7 @@
|
|
6105
6129
|
|
6106
6130
|
SpecView.prototype.buildParent = function() {
|
6107
6131
|
var parent, view;
|
6132
|
+
|
6108
6133
|
parent = this.spec.parent;
|
6109
6134
|
if (parent.viewId) {
|
6110
6135
|
return this.views.suites[parent.viewId];
|
@@ -6116,6 +6141,7 @@
|
|
6116
6141
|
|
6117
6142
|
SpecView.prototype.buildErrors = function() {
|
6118
6143
|
var div, error, html, _i, _len, _ref;
|
6144
|
+
|
6119
6145
|
div = this.createEl("div");
|
6120
6146
|
html = "";
|
6121
6147
|
_ref = this.spec.errors();
|
@@ -6129,6 +6155,7 @@
|
|
6129
6155
|
|
6130
6156
|
SpecView.prototype.updateState = function(state, elapsed) {
|
6131
6157
|
var classes, result, _base;
|
6158
|
+
|
6132
6159
|
result = this.spec.result();
|
6133
6160
|
classes = ["state-" + state];
|
6134
6161
|
if (elapsed > Teabag.slow) {
|
@@ -6154,7 +6181,6 @@
|
|
6154
6181
|
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
6155
6182
|
|
6156
6183
|
Teabag.Reporters.HTML.FailureView = (function(_super) {
|
6157
|
-
|
6158
6184
|
__extends(FailureView, _super);
|
6159
6185
|
|
6160
6186
|
function FailureView(spec) {
|
@@ -6164,6 +6190,7 @@
|
|
6164
6190
|
|
6165
6191
|
FailureView.prototype.build = function() {
|
6166
6192
|
var error, html, _i, _len, _ref;
|
6193
|
+
|
6167
6194
|
FailureView.__super__.build.call(this, "spec");
|
6168
6195
|
html = "<h1 class=\"teabag-clearfix\"><a href=\"" + this.spec.link + "\">" + this.spec.fullDescription + "</a></h1>";
|
6169
6196
|
_ref = this.spec.errors();
|
@@ -6209,6 +6236,7 @@
|
|
6209
6236
|
|
6210
6237
|
SuiteView.prototype.buildParent = function() {
|
6211
6238
|
var parent, view;
|
6239
|
+
|
6212
6240
|
parent = this.suite.parent;
|
6213
6241
|
if (!parent) {
|
6214
6242
|
return this.reporter;
|
@@ -6230,6 +6258,7 @@
|
|
6230
6258
|
|
6231
6259
|
SuiteView.prototype.updateState = function(state) {
|
6232
6260
|
var _base;
|
6261
|
+
|
6233
6262
|
if (this.state === "failed") {
|
6234
6263
|
return;
|
6235
6264
|
}
|
@@ -6246,7 +6275,6 @@
|
|
6246
6275
|
|
6247
6276
|
}).call(this);
|
6248
6277
|
(function() {
|
6249
|
-
|
6250
6278
|
Teabag.Reporters.HTML.template = "<div class=\"teabag-clearfix\">\n <div id=\"teabag-title\">\n <h1><a href=\"\" id=\"teabag-root-link\">Teabag</a></h1>\n <ul>\n <li>version: <b id=\"teabag-version\"></b></li>\n <li id=\"teabag-env-info\"></li>\n </ul>\n </div>\n <div id=\"teabag-progress\"></div>\n <ul id=\"teabag-stats\">\n <li>passes: <b id=\"teabag-stats-passes\">0</b></li>\n <li>failures: <b id=\"teabag-stats-failures\">0</b></li>\n <li>skipped: <b id=\"teabag-stats-skipped\">0</b></li>\n <li>duration: <b id=\"teabag-stats-duration\">∞</b></li>\n </ul>\n</div>\n\n<div id=\"teabag-controls\" class=\"teabag-clearfix\">\n <div id=\"teabag-toggles\">\n <button id=\"teabag-use-catch\" title=\"Toggle using try/catch wrappers when possible\">Try/Catch</button>\n <button id=\"teabag-build-full-report\" title=\"Toggle building the full report\">Full Report</button>\n <button id=\"teabag-display-progress\" title=\"Toggle displaying progress as tests run\">Progress</button>\n </div>\n <div id=\"teabag-suites\"></div>\n</div>\n\n<hr/>\n\n<div id=\"teabag-filter\">\n <h1>Filtering</h1>\n <ul id=\"teabag-filter-list\"></ul>\n</div>\n\n<div id=\"teabag-report\">\n <ol id=\"teabag-report-failures\"></ol>\n <ol id=\"teabag-report-all\"></ol>\n</div>";
|
6251
6279
|
|
6252
6280
|
}).call(this);
|
@@ -6254,10 +6282,8 @@
|
|
6254
6282
|
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
|
6255
6283
|
|
6256
6284
|
Teabag.Reporters.Console = (function() {
|
6257
|
-
|
6258
6285
|
function Console() {
|
6259
|
-
this.reportRunnerResults = __bind(this.reportRunnerResults, this);
|
6260
|
-
this.start = new Teabag.Date();
|
6286
|
+
this.reportRunnerResults = __bind(this.reportRunnerResults, this); this.start = new Teabag.Date();
|
6261
6287
|
this.suites = {};
|
6262
6288
|
}
|
6263
6289
|
|
@@ -6271,6 +6297,7 @@
|
|
6271
6297
|
|
6272
6298
|
Console.prototype.reportSuites = function() {
|
6273
6299
|
var index, suite, _i, _len, _ref, _results;
|
6300
|
+
|
6274
6301
|
_ref = this.spec.getParents();
|
6275
6302
|
_results = [];
|
6276
6303
|
for (index = _i = 0, _len = _ref.length; _i < _len; index = ++_i) {
|
@@ -6290,6 +6317,7 @@
|
|
6290
6317
|
|
6291
6318
|
Console.prototype.reportSpecResults = function(spec) {
|
6292
6319
|
var result;
|
6320
|
+
|
6293
6321
|
this.spec = new Teabag.Spec(spec);
|
6294
6322
|
result = this.spec.result();
|
6295
6323
|
if (result.skipped) {
|
@@ -6314,6 +6342,7 @@
|
|
6314
6342
|
|
6315
6343
|
Console.prototype.trackPending = function() {
|
6316
6344
|
var result;
|
6345
|
+
|
6317
6346
|
result = this.spec.result();
|
6318
6347
|
return this.log({
|
6319
6348
|
type: "spec",
|
@@ -6326,6 +6355,7 @@
|
|
6326
6355
|
|
6327
6356
|
Console.prototype.trackFailure = function() {
|
6328
6357
|
var error, result, _i, _len, _ref, _results;
|
6358
|
+
|
6329
6359
|
result = this.spec.result();
|
6330
6360
|
_ref = this.spec.errors();
|
6331
6361
|
_results = [];
|
@@ -6402,17 +6432,16 @@
|
|
6402
6432
|
|
6403
6433
|
}).call(this);
|
6404
6434
|
(function() {
|
6405
|
-
var
|
6435
|
+
var _ref,
|
6436
|
+
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
|
6406
6437
|
__hasProp = {}.hasOwnProperty,
|
6407
6438
|
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
6408
6439
|
|
6409
6440
|
Teabag.Reporters.HTML = (function(_super) {
|
6410
|
-
|
6411
6441
|
__extends(HTML, _super);
|
6412
6442
|
|
6413
6443
|
function HTML(runner) {
|
6414
|
-
this.reportSpecResults = __bind(this.reportSpecResults, this);
|
6415
|
-
HTML.__super__.constructor.apply(this, arguments);
|
6444
|
+
this.reportSpecResults = __bind(this.reportSpecResults, this); HTML.__super__.constructor.apply(this, arguments);
|
6416
6445
|
this.reportRunnerStarting(runner);
|
6417
6446
|
runner.on("fail", this.reportSpecResults);
|
6418
6447
|
runner.on("test end", this.reportSpecResults);
|
@@ -6432,7 +6461,7 @@
|
|
6432
6461
|
};
|
6433
6462
|
|
6434
6463
|
HTML.prototype.envInfo = function() {
|
6435
|
-
return "mocha 1.
|
6464
|
+
return "mocha 1.9.1";
|
6436
6465
|
};
|
6437
6466
|
|
6438
6467
|
return HTML;
|
@@ -6440,11 +6469,11 @@
|
|
6440
6469
|
})(Teabag.Reporters.HTML);
|
6441
6470
|
|
6442
6471
|
Teabag.Reporters.HTML.SpecView = (function(_super) {
|
6443
|
-
|
6444
6472
|
__extends(SpecView, _super);
|
6445
6473
|
|
6446
6474
|
function SpecView() {
|
6447
|
-
|
6475
|
+
_ref = SpecView.__super__.constructor.apply(this, arguments);
|
6476
|
+
return _ref;
|
6448
6477
|
}
|
6449
6478
|
|
6450
6479
|
SpecView.prototype.updateState = function(state) {
|
@@ -6457,12 +6486,11 @@
|
|
6457
6486
|
|
6458
6487
|
}).call(this);
|
6459
6488
|
(function() {
|
6460
|
-
var env,
|
6489
|
+
var env, _ref,
|
6461
6490
|
__hasProp = {}.hasOwnProperty,
|
6462
6491
|
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
6463
6492
|
|
6464
6493
|
Teabag.Runner = (function(_super) {
|
6465
|
-
|
6466
6494
|
__extends(Runner, _super);
|
6467
6495
|
|
6468
6496
|
function Runner() {
|
@@ -6476,6 +6504,7 @@
|
|
6476
6504
|
|
6477
6505
|
Runner.prototype.setup = function() {
|
6478
6506
|
var reporter;
|
6507
|
+
|
6479
6508
|
reporter = this.getReporter();
|
6480
6509
|
return env.setup({
|
6481
6510
|
reporter: reporter
|
@@ -6487,7 +6516,6 @@
|
|
6487
6516
|
})(Teabag.Runner);
|
6488
6517
|
|
6489
6518
|
Teabag.Spec = (function() {
|
6490
|
-
|
6491
6519
|
function Spec(spec) {
|
6492
6520
|
this.spec = spec;
|
6493
6521
|
this.fullDescription = this.spec.fullTitle();
|
@@ -6508,6 +6536,7 @@
|
|
6508
6536
|
|
6509
6537
|
Spec.prototype.getParents = function() {
|
6510
6538
|
var parent;
|
6539
|
+
|
6511
6540
|
if (this.parents) {
|
6512
6541
|
return this.parents;
|
6513
6542
|
}
|
@@ -6523,6 +6552,7 @@
|
|
6523
6552
|
|
6524
6553
|
Spec.prototype.result = function() {
|
6525
6554
|
var status;
|
6555
|
+
|
6526
6556
|
status = "failed";
|
6527
6557
|
if (this.spec.state === "passed" || this.spec.state === "skipped") {
|
6528
6558
|
status = "passed";
|
@@ -6541,7 +6571,6 @@
|
|
6541
6571
|
})();
|
6542
6572
|
|
6543
6573
|
Teabag.Suite = (function() {
|
6544
|
-
|
6545
6574
|
function Suite(suite) {
|
6546
6575
|
this.suite = suite;
|
6547
6576
|
this.fullDescription = this.suite.fullTitle();
|
@@ -6556,11 +6585,11 @@
|
|
6556
6585
|
})();
|
6557
6586
|
|
6558
6587
|
Teabag.fixture = (function(_super) {
|
6559
|
-
|
6560
6588
|
__extends(fixture, _super);
|
6561
6589
|
|
6562
6590
|
function fixture() {
|
6563
|
-
|
6591
|
+
_ref = fixture.__super__.constructor.apply(this, arguments);
|
6592
|
+
return _ref;
|
6564
6593
|
}
|
6565
6594
|
|
6566
6595
|
window.fixture = fixture;
|
@@ -6568,6 +6597,7 @@
|
|
6568
6597
|
fixture.load = function() {
|
6569
6598
|
var args,
|
6570
6599
|
_this = this;
|
6600
|
+
|
6571
6601
|
args = arguments;
|
6572
6602
|
if (env.started) {
|
6573
6603
|
return fixture.__super__.constructor.load.apply(this, arguments);
|
@@ -6581,6 +6611,7 @@
|
|
6581
6611
|
fixture.set = function() {
|
6582
6612
|
var args,
|
6583
6613
|
_this = this;
|
6614
|
+
|
6584
6615
|
args = arguments;
|
6585
6616
|
if (env.started) {
|
6586
6617
|
return fixture.__super__.constructor.set.apply(this, arguments);
|