From: Andy Monat Date: Sun, 4 Mar 2012 17:54:33 +0000 (-0500) Subject: Fix #11435. Remove obsolete test code. X-Git-Tag: 1.8b1~226 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dc337f628c0d2a4f6d691851eb95a622599e38b2;p=jquery.git Fix #11435. Remove obsolete test code. --- diff --git a/test/unit/data.js b/test/unit/data.js index 7598ba8be..89869f795 100644 --- a/test/unit/data.js +++ b/test/unit/data.js @@ -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)" ); });