]> source.dussan.org Git - jquery.git/commitdiff
Correct QUnit check, this might fix swarm failures
authorOleg <markelog@gmail.com>
Mon, 19 Aug 2013 18:33:52 +0000 (22:33 +0400)
committerOleg <markelog@gmail.com>
Mon, 19 Aug 2013 18:33:52 +0000 (22:33 +0400)
test/jquery.js

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