diff options
author | Jordan Beland <jordan.beland@gmail.com> | 2017-08-15 22:07:49 -0700 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2017-08-16 01:07:49 -0400 |
commit | b1b949d35ee995ee75c6968715a7f8c8ea601157 (patch) | |
tree | 65389db8ac2d1b40d26460cf11e4ea17d0c447d5 /test/jquery.js | |
parent | d2a380759f17abd54bb7576c6a1b40e2f069c3f3 (diff) | |
download | jquery-b1b949d35ee995ee75c6968715a7f8c8ea601157.tar.gz jquery-b1b949d35ee995ee75c6968715a7f8c8ea601157.zip |
Tests: Update path calculation
Fixes gh-3756
Closes gh-3757
Diffstat (limited to 'test/jquery.js')
-rw-r--r-- | test/jquery.js | 3 |
1 files changed, 2 insertions, 1 deletions
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, |