Commit dc337f62 authored by Andy Monat's avatar Andy Monat Committed by Dave Methvin

Fix #11435. Remove obsolete test code.

parent 203a1689
...@@ -184,9 +184,6 @@ test(".data()", function() { ...@@ -184,9 +184,6 @@ test(".data()", function() {
var dataObj = div.data(); 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" ); deepEqual( dataObj, {test: "success"}, "data() get the entire data object" );
strictEqual( div.data("foo"), undefined, "Make sure that missing result is still undefined" ); strictEqual( div.data("foo"), undefined, "Make sure that missing result is still undefined" );
...@@ -198,9 +195,6 @@ test(".data()", function() { ...@@ -198,9 +195,6 @@ test(".data()", function() {
dataObj = jQuery.extend(true, {}, jQuery(obj).data()); 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)" ); deepEqual( dataObj, { foo: "baz" }, "Retrieve data object from a wrapped JS object (#7524)" );
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment