diff options
author | Rick Waldron waldron.rick@gmail.com <waldron.rick@gmail.com> | 2012-04-18 13:49:37 -0400 |
---|---|---|
committer | Rick Waldron waldron.rick@gmail.com <waldron.rick@gmail.com> | 2012-04-18 13:49:37 -0400 |
commit | 247d824d35e81ec96e1a8913674c97fb45dd40ae (patch) | |
tree | e35343a252d755f9c5b8295a77f9e8ad5ff27e12 /test/unit/data.js | |
parent | 532ba250a9f6c5b0f51ec53d68aef9fb148e8dd6 (diff) | |
download | jquery-247d824d35e81ec96e1a8913674c97fb45dd40ae.tar.gz jquery-247d824d35e81ec96e1a8913674c97fb45dd40ae.zip |
Revert "Closes #741: Remove $("body") case in favor of $(document.body)."
This reverts commit 532ba250a9f6c5b0f51ec53d68aef9fb148e8dd6.
Diffstat (limited to 'test/unit/data.js')
-rw-r--r-- | test/unit/data.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/data.js b/test/unit/data.js index 89869f795..7598ba8be 100644 --- a/test/unit/data.js +++ b/test/unit/data.js @@ -184,6 +184,9 @@ 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" ); @@ -195,6 +198,9 @@ 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)" ); }); |