mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Build: Move test to appropriate module
This commit is contained in:
parent
708764f47b
commit
fbdbb6fd43
@ -14,6 +14,10 @@ module( "ajax", {
|
|||||||
});
|
});
|
||||||
|
|
||||||
(function() {
|
(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 ) ) {
|
if ( !jQuery.ajax || ( isLocal && !hasPHP ) ) {
|
||||||
return;
|
return;
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
module("core", { teardown: moduleTeardown });
|
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() {
|
test("Basic requirements", function() {
|
||||||
expect(7);
|
expect(7);
|
||||||
ok( Array.prototype.push, "Array.push()" );
|
ok( Array.prototype.push, "Array.push()" );
|
||||||
|
Loading…
Reference in New Issue
Block a user