Skip to content

Commit fbdbb6f

Browse files
committedJun 15, 2014
Build: Move test to appropriate module
1 parent 708764f commit fbdbb6f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed
 

‎test/unit/ajax.js

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ module( "ajax", {
1414
});
1515

1616
(function() {
17+
test("Unit Testing Environment", 2, function () {
18+
ok( hasPHP, "Running in an environment with PHP support. The AJAX tests only run if the environment supports PHP!" );
19+
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!)" );
20+
});
1721

1822
if ( !jQuery.ajax || ( isLocal && !hasPHP ) ) {
1923
return;

‎test/unit/core.js

-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
module("core", { teardown: moduleTeardown });
22

3-
test("Unit Testing Environment", function () {
4-
expect(2);
5-
ok( hasPHP, "Running in an environment with PHP support. The AJAX tests only run if the environment supports PHP!" );
6-
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!)" );
7-
});
8-
93
test("Basic requirements", function() {
104
expect(7);
115
ok( Array.prototype.push, "Array.push()" );

0 commit comments

Comments
 (0)