aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-08-19 15:01:00 -0400
committerTimmy Willison <timmywillisn@gmail.com>2013-08-19 15:01:41 -0400
commit04f12635c0ae020bab53f974a3691932a8ac9bbd (patch)
tree081798ea5b24c20e2572a278360cc83ea4536116 /test
parentf5f36dbd89b6d1083e0379371f6e4f6c098b15b8 (diff)
downloadjquery-04f12635c0ae020bab53f974a3691932a8ac9bbd.tar.gz
jquery-04f12635c0ae020bab53f974a3691932a8ac9bbd.zip
Fix tests for testswarm
Diffstat (limited to 'test')
-rw-r--r--test/jquery.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/jquery.js b/test/jquery.js
index faebaaed0..1f59f1511 100644
--- a/test/jquery.js
+++ b/test/jquery.js
@@ -4,10 +4,9 @@
/* jshint eqeqeq: false */
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,
- require = require || parent.require;
+ src = /^(.*)test\//.exec( window.location.pathname )[1],
+ QUnit = window.QUnit || parent.QUnit,
+ require = window.require || parent.require;
// Config parameter to force basic code paths
QUnit.config.urlConfig.push({