Tests: Update path calculation

Fixes gh-3756
Closes gh-3757
This commit is contained in:
Jordan Beland 2017-08-15 22:07:49 -07:00 committed by Richard Gibson
parent d2a380759f
commit b1b949d35e

3
test/jquery.js vendored
View File

@ -2,7 +2,8 @@
( function() { ( function() {
/* global loadTests: false */ /* 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, QUnit = window.QUnit || parent.QUnit,
require = window.require || parent.require, require = window.require || parent.require,