aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/manipulation.js
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2013-11-11 13:13:22 -0500
committerTimmy Willison <timmywillisn@gmail.com>2015-03-04 17:26:47 -0500
commitd702b7637a61e1973e08c27b8d8de2ed24a543e2 (patch)
tree5facc46a8a1fd855112e851219c6efc1b2206eb3 /test/unit/manipulation.js
parent95fb798980d7e404c413e29e20016db9052e2bf2 (diff)
downloadjquery-d702b7637a61e1973e08c27b8d8de2ed24a543e2.tar.gz
jquery-d702b7637a61e1973e08c27b8d8de2ed24a543e2.zip
Data: move element cache to element[expando]
- avoid explicit data.discard() cleanup calls - explicitly remove the data.events property, only when private data exists - reduces code footprint Fixes gh-1734 Close gh-1428
Diffstat (limited to 'test/unit/manipulation.js')
-rw-r--r--test/unit/manipulation.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index bd324a8e2..46a9a8a52 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -64,7 +64,7 @@ test( "text(undefined)", function() {
function testText( valueObj ) {
- expect( 7 );
+ expect( 6 );
var val, j, expected, $multipleElements, $parentDiv, $childDiv;
@@ -94,8 +94,6 @@ function testText( valueObj ) {
$parentDiv = jQuery( "<div/>" );
$parentDiv.append( $childDiv );
$parentDiv.text("Dry off");
-
- equal( $childDiv.data("leak"), undefined, "Check for leaks (#11809)" );
}
test( "text(String)", function() {
@@ -1814,7 +1812,7 @@ test( "clone()/html() don't expose jQuery/Sizzle expandos (#12858)", function()
test( "remove() no filters", function() {
- expect( 3 );
+ expect( 2 );
var first = jQuery("#ap").children().first();
@@ -1823,9 +1821,6 @@ test( "remove() no filters", function() {
jQuery("#ap").children().remove();
ok( jQuery("#ap").text().length > 10, "Check text is not removed" );
equal( jQuery("#ap").children().length, 0, "Check remove" );
-
- equal( first.data("foo"), null, "first data" );
-
});
test( "remove() with filters", function() {