aboutsummaryrefslogtreecommitdiffstats
path: root/test/jquery.js
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2013-08-19 22:33:52 +0400
committerOleg <markelog@gmail.com>2013-08-19 22:33:52 +0400
commit42cd19fb8f29db6fb06f49e5b94829ea7036c3c5 (patch)
tree97e4012befba742e90d775a71e81c7d796105b74 /test/jquery.js
parentf92a446ee8d6e98c43b87f185e73240fabec5ae4 (diff)
downloadjquery-42cd19fb8f29db6fb06f49e5b94829ea7036c3c5.tar.gz
jquery-42cd19fb8f29db6fb06f49e5b94829ea7036c3c5.zip
Correct QUnit check, this might fix swarm failures
Diffstat (limited to 'test/jquery.js')
-rw-r--r--test/jquery.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/jquery.js b/test/jquery.js
index faebaaed0..d3ebee965 100644
--- a/test/jquery.js
+++ b/test/jquery.js
@@ -5,8 +5,8 @@
var i, len,
// Parent is the current window if not an iframe, which is fine
- src = /^(.*)test\//.exec( parent.location.pathname )[1],
- QUnit = QUnit || parent.QUnit,
+ src = window.location.pathname.split( "test" )[ 0 ],
+ QUnit = window.QUnit || parent.QUnit,
require = require || parent.require;
// Config parameter to force basic code paths