Skip to content

Commit

Permalink
Fix #11435. Remove obsolete test code.
Browse files Browse the repository at this point in the history
  • Loading branch information
amonat authored and dmethvin committed Apr 5, 2012
1 parent 203a168 commit dc337f6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/unit/data.js
Expand Up @@ -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" );

Expand All @@ -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)" );
});

Expand Down

0 comments on commit dc337f6

Please sign in to comment.