From 04f12635c0ae020bab53f974a3691932a8ac9bbd Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Mon, 19 Aug 2013 15:01:00 -0400 Subject: [PATCH] Fix tests for testswarm --- test/jquery.js | 7 +++---- 1 file 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({ -- 2.39.5