aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ajax.js
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2014-06-14 20:31:08 +0400
committerOleg Gaidarenko <markelog@gmail.com>2014-06-16 03:08:46 +0400
commitfbdbb6fd431a3f598b581079b0ca37c399d369d4 (patch)
treecfd060201b8b36e30789508f92c1644d5c78b0fe /test/unit/ajax.js
parent708764f47b0c8de152bbb444d0f608db558b76ed (diff)
downloadjquery-fbdbb6fd431a3f598b581079b0ca37c399d369d4.tar.gz
jquery-fbdbb6fd431a3f598b581079b0ca37c399d369d4.zip
Build: Move test to appropriate module
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r--test/unit/ajax.js4
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;