]> source.dussan.org Git - jquery.git/commitdiff
Fix #11435. Remove obsolete test code.
authorAndy Monat <amonat@gmail.com>
Sun, 4 Mar 2012 17:54:33 +0000 (12:54 -0500)
committerDave Methvin <dave.methvin@gmail.com>
Thu, 5 Apr 2012 01:38:47 +0000 (21:38 -0400)
test/unit/data.js

index 7598ba8bed06967ab5d4a2fd35764dd88ff7f973..89869f795a96b6de79425ab8f2fc549f2d46788b 100644 (file)
@@ -184,9 +184,6 @@ test(".data()", function() {
 
        var dataObj = div.data();
 
-       // TODO: Remove this hack which was introduced in 1.5.1
-       delete dataObj.toJSON;
-
        deepEqual( dataObj, {test: "success"}, "data() get the entire data object" );
        strictEqual( div.data("foo"), undefined, "Make sure that missing result is still undefined" );
 
@@ -198,9 +195,6 @@ test(".data()", function() {
 
        dataObj = jQuery.extend(true, {}, jQuery(obj).data());
 
-       // TODO: Remove this hack which was introduced for 1.5.1
-       delete dataObj.toJSON;
-
        deepEqual( dataObj, { foo: "baz" }, "Retrieve data object from a wrapped JS object (#7524)" );
 });