diff --git a/test/jquery.js b/test/jquery.js index e337a7940..d8eaf8629 100644 --- a/test/jquery.js +++ b/test/jquery.js @@ -2,7 +2,8 @@ ( function() { /* global loadTests: false */ - var path = window.location.pathname.split( "test" )[ 0 ], + var pathname = window.location.pathname, + path = pathname.slice( 0, pathname.lastIndexOf( "test" ) ), QUnit = window.QUnit || parent.QUnit, require = window.require || parent.require,