git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
We removed deleteExpando after 1.4.2, for some reason. This caused problems with...
[jquery.git]
/
test
/
unit
/
data.js
diff --git
a/test/unit/data.js
b/test/unit/data.js
index
81f5e61
..
b0c9f3f
100644
(file)
--- a/
test/unit/data.js
+++ b/
test/unit/data.js
@@
-284,11
+284,16
@@
test(".data(Object)", function() {
});
test("jQuery.removeData", function() {
});
test("jQuery.removeData", function() {
- expect(5);
+ expect(7);
var div = jQuery("#foo")[0];
jQuery.data(div, "test", "testing");
jQuery.removeData(div, "test");
equals( jQuery.data(div, "test"), undefined, "Check removal of data" );
var div = jQuery("#foo")[0];
jQuery.data(div, "test", "testing");
jQuery.removeData(div, "test");
equals( jQuery.data(div, "test"), undefined, "Check removal of data" );
+
+ jQuery.data(div, "test2", "testing");
+ jQuery.removeData( div );
+ ok( !jQuery.data(div, "test2"), "Make sure that the data property no longer exists." );
+ ok( !div[ jQuery.expando ], "Make sure the expando no longer exists, as well." );
var obj = {};
jQuery.data(obj, "test", "testing");
var obj = {};
jQuery.data(obj, "test", "testing");