☕️ Classic, reliable, trusted test framework for Node.js and the browser
1.16.2
Travis Jeffery1b5024b77e33
diff --git a/History.md b/History.mdindex 198e4d39..6e98ef7d 100644--- a/History.md+++ b/History.md@@ -1,3 +1,11 @@+1.16.2 / 2013-12-23+==================++ * fix: couple issues with ie 8 (#1082, #1081)+ * fix: issue running the xunit reporter in browsers (#1068)+ * fix: issue with firefox < 3.5 (#725)++1.16.1 / 2013-12-19==================diff --git a/bower.json b/bower.jsonindex 472ca8c8..6e7d52d9 100644--- a/bower.json+++ b/bower.json@@ -1,6 +1,6 @@{"name": "mocha",- "version": "1.16.1",+ "version": "1.16.2","main": "mocha.js","ignore": ["bin",diff --git a/component.json b/component.jsonindex 02e40792..d200b2d5 100644--- a/component.json+++ b/component.json@@ -1,6 +1,6 @@{"name": "mocha",- "version": "1.16.1",+ "version": "1.16.2","repo": "visionmedia/mocha","description": "simple, flexible, fun test framework","keywords": [diff --git a/mocha.js b/mocha.jsindex 0e568b46..07ae9266 100644--- a/mocha.js+++ b/mocha.js@@ -604,7 +604,6 @@ require.register("browser/path.js", function(module, exports, require){}); // module: browser/path.jsrequire.register("browser/progress.js", function(module, exports, require){-/*** Expose `Progress`.*/@@ -693,40 +692,41 @@ Progress.prototype.update = function(n){*/Progress.prototype.draw = function(ctx){- var percent = Math.min(this.percent, 100)- , size = this._size- , half = size / 2- , x = half- , y = half- , rad = half - 1- , fontSize = this._fontSize;-- ctx.font = fontSize + 'px ' + this._font;-- var angle = Math.PI * 2 * (percent / 100);- ctx.clearRect(0, 0, size, size);-- // outer circle- ctx.strokeStyle = '#9f9f9f';- ctx.beginPath();- ctx.arc(x, y, rad, 0, angle, false);- ctx.stroke();-- // inner circle- ctx.strokeStyle = '#eee';- ctx.beginPath();- ctx.arc(x, y, rad - 1, 0, angle, true);- ctx.stroke();-- // text- var text = this._text || (percent | 0) + '%'- , w = ctx.measureText(text).width;-- ctx.fillText(- text- , x - w / 2 + 1- , y + fontSize / 2 - 1);-+ try {+ var percent = Math.min(this.percent, 100)+ , size = this._size+ , half = size / 2+ , x = half+ , y = half+ , rad = half - 1+ , fontSize = this._fontSize;++ ctx.font = fontSize + 'px ' + this._font;++ var angle = Math.PI * 2 * (percent / 100);+ ctx.clearRect(0, 0, size, size);++ // outer circle+ ctx.strokeStyle = '#9f9f9f';+ ctx.beginPath();+ ctx.arc(x, y, rad, 0, angle, false);+ ctx.stroke();++ // inner circle+ ctx.strokeStyle = '#eee';+ ctx.beginPath();+ ctx.arc(x, y, rad - 1, 0, angle, true);+ ctx.stroke();++ // text+ var text = this._text || (percent | 0) + '%'+ , w = ctx.measureText(text).width;++ ctx.fillText(+ text+ , x - w / 2 + 1+ , y + fontSize / 2 - 1);+ } catch (ex) {} //don't fail if we can't render progressreturn this;};diff --git a/package.json b/package.jsonindex ed6cf700..99d3425f 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "mocha",- "version": "1.16.1",+ "version": "1.16.2","description": "simple, flexible, fun test framework","keywords": ["mocha",