aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/testsuite.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-10-22 17:41:54 -0400
committerCorey Frang <gnarf@gnarf.net>2012-10-22 17:04:08 -0500
commitd67522e3290948c0497ab7c6511e9ea29b22b851 (patch)
tree3c0e8fd9c3dae8dc2da9ea4d1bdeaa3ea2be2141 /tests/unit/testsuite.js
parent9b908878ae3a9c0fbbd9958b579f223a648c5c69 (diff)
downloadjquery-ui-d67522e3290948c0497ab7c6511e9ea29b22b851.tar.gz
jquery-ui-d67522e3290948c0497ab7c6511e9ea29b22b851.zip
Build: Upgrade to the latest Grunt and JSHint - Closes gh-786
Diffstat (limited to 'tests/unit/testsuite.js')
-rw-r--r--tests/unit/testsuite.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/unit/testsuite.js b/tests/unit/testsuite.js
index 06890d8d9..74a561c0d 100644
--- a/tests/unit/testsuite.js
+++ b/tests/unit/testsuite.js
@@ -12,6 +12,10 @@ function includeScript( url ) {
document.write( "<script src='../../../" + url + "'></script>" );
}
+function url( value ) {
+ return value + (/\?/.test(value) ? "&" : "?") + new Date().getTime() + "" + parseInt(Math.random() * 100000, 10);
+}
+
reset = QUnit.reset;
QUnit.reset = function() {
// Ensure jQuery events and data on the fixture are properly removed
@@ -65,11 +69,11 @@ TestHelpers.testJshint = function( module ) {
$.when(
$.ajax({
- url: "../../../ui/.jshintrc",
+ url: url("../../../ui/.jshintrc"),
dataType: "json"
}),
$.ajax({
- url: "../../../ui/jquery.ui." + module + ".js",
+ url: url("../../../ui/jquery.ui." + module + ".js"),
dataType: "text"
})
).done(function( hintArgs, srcArgs ) {