aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/testsuite.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2013-11-22 11:43:55 -0500
committerScott González <scott.gonzalez@gmail.com>2013-11-22 11:43:55 -0500
commit8eeb0e7d88a943e3860f8492661ac8090cb8d3ac (patch)
tree95bf80206aacf9b8ae880b2df45ca51ab6743c8a /tests/unit/testsuite.js
parent161d7ee38905ea2ce425bca3baa499fada41c98d (diff)
downloadjquery-ui-8eeb0e7d88a943e3860f8492661ac8090cb8d3ac.tar.gz
jquery-ui-8eeb0e7d88a943e3860f8492661ac8090cb8d3ac.zip
Tests: Skip JSHint in browsers that don't support Function.prototype.bind() to work around a bug in JSHint.
Diffstat (limited to 'tests/unit/testsuite.js')
-rw-r--r--tests/unit/testsuite.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/testsuite.js b/tests/unit/testsuite.js
index 13daa7e66..ffd1e73de 100644
--- a/tests/unit/testsuite.js
+++ b/tests/unit/testsuite.js
@@ -59,7 +59,9 @@ QUnit.config.urlConfig.push({
jshintLoaded = false;
TestHelpers.testJshint = function( module ) {
- if ( QUnit.urlParams.nojshint ) {
+ // Function.prototype.bind check is needed because JSHint doesn't work in ES3 browsers anymore
+ // https://github.com/jshint/jshint/issues/1384
+ if ( QUnit.urlParams.nojshint || !Function.prototype.bind ) {
return;
}