aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2013-02-11 12:39:44 -0500
committerRick Waldron <waldron.rick@gmail.com>2013-02-11 12:39:44 -0500
commit1d5d959ee0c03ceb938b85576d130b7b3c510845 (patch)
treeab38571cf35efc87728a9242dce09664d2d893d7 /test
parent6a0ee2d9ed34b81d4ad0662423bf815a3110990f (diff)
downloadjquery-1d5d959ee0c03ceb938b85576d130b7b3c510845.tar.gz
jquery-1d5d959ee0c03ceb938b85576d130b7b3c510845.zip
Optimized Data rewrite
Diffstat (limited to 'test')
-rw-r--r--test/unit/data.js11
1 files changed, 7 insertions, 4 deletions
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("<span>text</span>").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);