aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
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;
}