diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2013-02-11 12:39:44 -0500 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2013-02-11 12:39:44 -0500 |
commit | 1d5d959ee0c03ceb938b85576d130b7b3c510845 (patch) | |
tree | ab38571cf35efc87728a9242dce09664d2d893d7 /test | |
parent | 6a0ee2d9ed34b81d4ad0662423bf815a3110990f (diff) | |
download | jquery-1d5d959ee0c03ceb938b85576d130b7b3c510845.tar.gz jquery-1d5d959ee0c03ceb938b85576d130b7b3c510845.zip |
Optimized Data rewrite
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/data.js | 11 |
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); |