From 9953ae4c88fa2edea2c3dc7ae723912f547f5e29 Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Sat, 14 Jun 2014 20:31:08 +0400 Subject: [PATCH] Build: Move test to appropriate module Ref fbdbb6fd431a3f598b581079b0ca37c399d369d4 --- test/unit/ajax.js | 4 ++++ test/unit/core.js | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/test/unit/ajax.js b/test/unit/ajax.js index d2059bd3..868f19bc 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -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; diff --git a/test/unit/core.js b/test/unit/core.js index d59c4b0f..2fefb372 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -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()" ); -- 2.11.4.GIT