diff options
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r-- | test/unit/ajax.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 0132085c8..528d3a496 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -14,6 +14,10 @@ module( "ajax", { }); (function() { + test("Unit Testing Environment", 2, function () { + ok( hasPHP, "Running in an environment with PHP support. The AJAX tests only run if the environment supports PHP!" ); + ok( !isLocal, "Unit tests are not ran from file:// (especially in Chrome. If you must test from file:// with Chrome, run it with the --allow-file-access-from-files flag!)" ); + }); if ( !jQuery.ajax || ( isLocal && !hasPHP ) ) { return; |