mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Tests: Update path calculation
Fixes gh-3756 Closes gh-3757
This commit is contained in:
parent
d2a380759f
commit
b1b949d35e
3
test/jquery.js
vendored
3
test/jquery.js
vendored
@ -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,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user