]> source.dussan.org Git - jquery.git/commitdiff
Build: Move test to appropriate module
authorOleg Gaidarenko <markelog@gmail.com>
Sat, 14 Jun 2014 16:31:08 +0000 (20:31 +0400)
committerOleg Gaidarenko <markelog@gmail.com>
Sun, 15 Jun 2014 23:21:58 +0000 (03:21 +0400)
Ref fbdbb6fd431a3f598b581079b0ca37c399d369d4

test/unit/ajax.js
test/unit/core.js

index d2059bd36d214c2aa68a6a6b28f0fc7206480f38..868f19bc824a170d5eacc5dd9cf224c7e898989c 100644 (file)
@@ -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;
index d59c4b0fa51eb267ae71ebe49b33c44112977004..2fefb3725990a7ec808f133497865e20660f54a2 100644 (file)
@@ -1,11 +1,5 @@
 module("core", { teardown: moduleTeardown });
 
-test("Unit Testing Environment", function () {
-       expect(2);
-       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!)" );
-});
-
 test("Basic requirements", function() {
        expect(7);
        ok( Array.prototype.push, "Array.push()" );