teabag 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- 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
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -29,7 +29,7 @@ describe "Mocha Teabag.Reporters.HTML", ->
|
|
29
29
|
describe "#envInfo", ->
|
30
30
|
|
31
31
|
it "returns the version", ->
|
32
|
-
expect(@reporter.envInfo()).to.be("mocha 1.
|
32
|
+
expect(@reporter.envInfo()).to.be("mocha 1.9.1")
|
33
33
|
|
34
34
|
|
35
35
|
describe "Mocha Teabag.Reporters.HTML.SpecView", ->
|
File without changes
|
@@ -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.
|