Skip to content

Commit

Permalink
Build: Move test to appropriate module
Browse files Browse the repository at this point in the history
  • Loading branch information
markelog committed Jun 15, 2014
1 parent 9dc29a2 commit 9953ae4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions test/unit/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 0 additions & 6 deletions test/unit/core.js
Original file line number Diff line number Diff line change
@@ -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()" );
Expand Down

0 comments on commit 9953ae4

Please sign in to comment.