From 1d5d959ee0c03ceb938b85576d130b7b3c510845 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Mon, 11 Feb 2013 12:39:44 -0500 Subject: Optimized Data rewrite --- test/unit/data.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/unit/data.js b/test/unit/data.js index 840014fd8..4307ac2dc 100644 --- a/test/unit/data.js +++ b/test/unit/data.js @@ -126,6 +126,12 @@ test("jQuery.data(document)", 25, function() { QUnit.expectJqData(document, "foo"); }); + +/* +// Since the new data system does not rely on expandos, limiting the type of +// nodes that can have data is no longer necessary. jQuery.acceptData is now irrelevant +// and should eventually be removed from the library. + test("Data is not being set on comment and text nodes", function() { expect(2); @@ -133,10 +139,7 @@ test("Data is not being set on comment and text nodes", function() { ok( !jQuery.hasData( jQuery("text").contents().data("foo", 0) ) ); }); -/* -// Since the new data system does not rely on exandos, limiting the type of -// nodes that can have data is no longer necessary. jQuery.acceptData is now irrelevant -// and should be removed from the library. + test("jQuery.acceptData", function() { expect(9); -- cgit v1.2.3