Commit 9953ae4c authored by Oleg Gaidarenko's avatar Oleg Gaidarenko

Build: Move test to appropriate module

Ref fbdbb6fd431a3f598b581079b0ca37c399d369d4
parent 9dc29a2b
......@@ -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;
......
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()" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment