From 7226cf2800315e90b671db63f2b5f51150ad7e8e Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Tue, 14 Feb 2012 18:19:32 -0500 Subject: [PATCH] fixes #10901, PHP required for unit tests, but still allow the tests to run --- test/data/include_js.php | 11 ++++++++--- test/data/testinit.js | 3 ++- test/unit/ajax.js | 11 ++--------- test/unit/core.js | 6 ++++++ 4 files changed, 18 insertions(+), 13 deletions(-) diff --git a/test/data/include_js.php b/test/data/include_js.php index 9390ca33c..23207a9d9 100644 --- a/test/data/include_js.php +++ b/test/data/include_js.php @@ -69,8 +69,13 @@ die(); ?> */ +hasPHP = false; + // javascript fallback using src files in case this is not run on a PHP server! -var files = [ +// please note that this fallback is for convenience only, and is not fully supported +// i.e. don't expect all of the tests to work properly +var baseURL = document.location.href.replace( /\/test\/.+/, "/"), + files = [ "core", "callbacks", "deferred", @@ -97,5 +102,5 @@ var files = [ i = 0; for ( ; i < len; i++ ) { - document.write("