aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2012-01-30 22:38:37 -0500
committerDave Methvin <dave.methvin@gmail.com>2012-01-30 22:38:37 -0500
commit0944be058e0995d6da066587366fd9ab655764d2 (patch)
tree1804cd96582d1e14cfa97425f0f10d47f2283dd8
parenteefead3d9629d68407600831a23c58a25163489e (diff)
downloadjquery-0944be058e0995d6da066587366fd9ab655764d2.tar.gz
jquery-0944be058e0995d6da066587366fd9ab655764d2.zip
Fix #11257. Correct path to source files.
-rw-r--r--test/data/include_js.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/data/include_js.php b/test/data/include_js.php
index 467a6b2be..9390ca33c 100644
--- a/test/data/include_js.php
+++ b/test/data/include_js.php
@@ -70,8 +70,7 @@ die();
*/
// javascript fallback using src files in case this is not run on a PHP server!
-var baseURL = document.location.href.replace( /\/test\/.+/, "/"),
- files = [
+var files = [
"core",
"callbacks",
"deferred",
@@ -98,5 +97,5 @@ var baseURL = document.location.href.replace( /\/test\/.+/, "/"),
i = 0;
for ( ; i < len; i++ ) {
- document.write("<script src=\"" + baseURL + "src/" + files[ i ] + ".js\"><"+"/script>");
+ document.write("<script src=\"../src/" + files[ i ] + ".js\"><"+"/script>");
}