diff options
author | Oleg <markelog@gmail.com> | 2013-08-19 22:33:52 +0400 |
---|---|---|
committer | Oleg <markelog@gmail.com> | 2013-08-19 22:33:52 +0400 |
commit | 42cd19fb8f29db6fb06f49e5b94829ea7036c3c5 (patch) | |
tree | 97e4012befba742e90d775a71e81c7d796105b74 /test/jquery.js | |
parent | f92a446ee8d6e98c43b87f185e73240fabec5ae4 (diff) | |
download | jquery-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.js | 4 |
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 |