aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/data.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/data.js')
-rw-r--r--test/unit/data.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/data.js b/test/unit/data.js
index 812ccd235..14483a164 100644
--- a/test/unit/data.js
+++ b/test/unit/data.js
@@ -15,6 +15,14 @@ test("jQuery.data", function() {
});
test(".data()", function() {
+ expect(1);
+
+ var div = jQuery("#foo");
+ div.data("test", "success");
+ isObj( div.data(), {test: "success"}, "data() get the entire data object" )
+})
+
+test(".data(String) and .data(String, Object)", function() {
expect(22);
var div = jQuery("#foo");
equals( div.data("test"), undefined, "Check for no data exists" );