From: Oleg Date: Mon, 19 Aug 2013 18:33:52 +0000 (+0400) Subject: Correct QUnit check, this might fix swarm failures X-Git-Tag: 2.1.0-beta1~74 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=42cd19fb8f29db6fb06f49e5b94829ea7036c3c5;p=jquery.git Correct QUnit check, this might fix swarm failures --- 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