aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2014-01-14 21:48:42 +0400
committerOleg <markelog@gmail.com>2014-01-14 22:02:21 +0400
commita3cd88f14bc99cbb80e6abe939576cbed093cb47 (patch)
treed426f5766b070465dd4bac28c9235cd1d56b5c38 /test
parent3fbbe933eaedf0fb2151acd5530d8216fad45126 (diff)
downloadjquery-a3cd88f14bc99cbb80e6abe939576cbed093cb47.tar.gz
jquery-a3cd88f14bc99cbb80e6abe939576cbed093cb47.zip
Tests: Remove one of the checks for memory leak
This check is redundant since jQuery.fragments object does not exist anymore (cherry-picked from 38c122a73a843a0d117d4f962cc94fda6f553086)
Diffstat (limited to 'test')
-rw-r--r--test/data/testrunner.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/data/testrunner.js b/test/data/testrunner.js
index b25c4146f..db68ffc86 100644
--- a/test/data/testrunner.js
+++ b/test/data/testrunner.js
@@ -7,7 +7,6 @@ var oldStart = window.start,
// Store the old counts so that we only assert on tests that have actually leaked,
// instead of asserting every time a test has leaked sometime in the past
oldCacheLength = 0,
- oldFragmentsLength = 0,
oldActive = 0,
expectedDataKeys = {},
@@ -118,7 +117,6 @@ QUnit.config.urlConfig.push({
window.moduleTeardown = function() {
var i,
expectedKeys, actualKeys,
- fragmentsLength = 0,
cacheLength = 0;
// Only look for jQuery data problems if this test actually
@@ -163,22 +161,12 @@ window.moduleTeardown = function() {
++cacheLength;
}
- jQuery.fragments = {};
-
- for ( i in jQuery.fragments ) {
- ++fragmentsLength;
- }
-
// Because QUnit doesn't have a mechanism for retrieving the number of expected assertions for a test,
// if we unconditionally assert any of these, the test will fail with too many assertions :|
if ( cacheLength !== oldCacheLength ) {
equal( cacheLength, oldCacheLength, "No unit tests leak memory in jQuery.cache" );
oldCacheLength = cacheLength;
}
- if ( fragmentsLength !== oldFragmentsLength ) {
- equal( fragmentsLength, oldFragmentsLength, "No unit tests leak memory in jQuery.fragments" );
- oldFragmentsLength = fragmentsLength;
- }
};
QUnit.done(function() {