]> 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)
committerTimmy Willison <timmywillisn@gmail.com>
Mon, 19 Aug 2013 19:39:37 +0000 (15:39 -0400)
Conflicts:
test/jquery.js

test/jquery.js

index 1f59f15110ee0ae271c072254dd394d0cbf60c43..33fa293d933d3f98c92934d7ea95dcda7c0aa506 100644 (file)
@@ -4,7 +4,7 @@
        /* jshint eqeqeq: false */
 
        var i, len,
-               src = /^(.*)test\//.exec( window.location.pathname )[1],
+               src = window.location.pathname.split( "test" )[ 0 ],
                QUnit = window.QUnit || parent.QUnit,
                require = window.require || parent.require;