aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2012-06-11 21:04:34 +0200
committerjaubourg <j@ubourg.net>2012-06-11 21:04:34 +0200
commitcac5b08f7215159ccd8ee328b02a7e2355aeb5bb (patch)
tree726621042ae841b8fff46ced41c36173af4c1f7c /test
parent801768386b9fd44f1282834449b4cd1ae1e8d593 (diff)
downloadjquery-cac5b08f7215159ccd8ee328b02a7e2355aeb5bb.tar.gz
jquery-cac5b08f7215159ccd8ee328b02a7e2355aeb5bb.zip
Here is hoping everything works with the full build and the build without ajax... looking at you @dmethvin ;)
Diffstat (limited to 'test')
-rw-r--r--test/data/testinit.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/data/testinit.js b/test/data/testinit.js
index 3e0402c8f..7d340acee 100644
--- a/test/data/testinit.js
+++ b/test/data/testinit.js
@@ -132,7 +132,7 @@ function url( value ) {
var oldCacheLength = 0,
oldFragmentsLength = 0,
oldTimersLength = 0,
- oldActive = jQuery.active || 0;
+ oldActive = 0;
/**
* Ensures that tests have cleaned up properly after themselves. Should be passed as the
@@ -168,7 +168,7 @@ function url( value ) {
equal( jQuery.timers.length, oldTimersLength, "No timers are still running" );
oldTimersLength = jQuery.timers.length;
}
- if ( jQuery.active !== oldActive ) {
+ if ( jQuery.active !== undefined && jQuery.active !== oldActive ) {
equal( jQuery.active, 0, "No AJAX requests are still active" );
oldActive = jQuery.active;
}