]> source.dussan.org Git - jquery.git/commitdiff
Fix tests for testswarm
authorTimmy Willison <timmywillisn@gmail.com>
Mon, 19 Aug 2013 19:01:00 +0000 (15:01 -0400)
committerTimmy Willison <timmywillisn@gmail.com>
Mon, 19 Aug 2013 19:01:41 +0000 (15:01 -0400)
test/jquery.js

index faebaaed0e5ed07f2cdd7713c97dda3cdcf1de7a..1f59f15110ee0ae271c072254dd394d0cbf60c43 100644 (file)
@@ -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({