Permalink
Browse files

Build: Move test to appropriate module

  • Loading branch information...
markelog committed Jun 14, 2014
1 parent 708764f commit fbdbb6fd431a3f598b581079b0ca37c399d369d4
Showing with 4 additions and 6 deletions.
  1. +4 −0 test/unit/ajax.js
  2. +0 −6 test/unit/core.js
View
@@ -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;
View
@@ -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()" );

0 comments on commit fbdbb6f

Please sign in to comment.