diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2012-10-24 16:47:40 -0400 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2012-10-24 16:47:40 -0400 |
commit | a7158fac1764c16e755489d376d90eea54e0f754 (patch) | |
tree | 762d056a5c5eecf45e95ada1f9883cd1df3c2801 | |
parent | 812c6087ada4a6383fd2e033d04648ec0f6691ea (diff) | |
download | jquery-a7158fac1764c16e755489d376d90eea54e0f754.tar.gz jquery-a7158fac1764c16e755489d376d90eea54e0f754.zip |
Remove .hyphen property from tests (left behind in refactoring)
-rw-r--r-- | test/unit/data.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/unit/data.js b/test/unit/data.js index 286bcc25d..fec1d7865 100644 --- a/test/unit/data.js +++ b/test/unit/data.js @@ -19,7 +19,7 @@ function dataTests (elem) { } var oldCacheLength, dataObj, internalDataObj, expected, actual; - + equal( jQuery.data(elem, "foo"), undefined, "No data exists initially" ); strictEqual( jQuery.hasData(elem), false, "jQuery.hasData agrees no data exists initially" ); @@ -655,7 +655,7 @@ test( "jQuery.fn.removeData supports interoperable removal of hyphenated propert div.data( datas ); deepEqual( div.data(), datas, "div.data() returns an object whose values match those of datas (div)" ); - div.removeData( keys.hyphen ); + div.removeData( keys ); ok( jQuery.isEmptyObject( div.data() ), "After removal by array of hyphenated keys, div.data() returns an object with no properties (div)" ); div.data( "a-a", 1 ); @@ -665,7 +665,6 @@ test( "jQuery.fn.removeData supports interoperable removal of hyphenated propert deepEqual( div.data( "b-b" ), 2, "div.data('b-b') returns value that matches the manually set value (div)" ); div.removeData([ "a-a", "b-b" ]); - ok( jQuery.isEmptyObject( div.data() ), "After removal by array of hyphenated keys, div.data() returns an object with no properties (div)" ); plain = jQuery({}); @@ -674,7 +673,6 @@ test( "jQuery.fn.removeData supports interoperable removal of hyphenated propert deepEqual( plain.data(), datas, "plain.data() returns an object whose values match those of datas (plain)" ); plain.removeData( keys ); - ok( jQuery.isEmptyObject( plain.data() ), "After removal by array of hyphenated keys, plain.data() returns an object with no properties (plain)" ); @@ -687,7 +685,6 @@ test( "jQuery.fn.removeData supports interoperable removal of hyphenated propert deepEqual( plain.data( "b-b" ), 2, "plain.data('b-b') returns value that matches the manually set value (plain)" ); plain.removeData([ "a-a", "b-b" ]); - ok( jQuery.isEmptyObject( plain.data() ), "After removal by array of hyphenated keys, plain.data() returns an object with no properties (plain)" ); }); @@ -730,4 +727,4 @@ test( "JSON data- attributes can have newlines", function() { var x = jQuery("<div data-some='{\n\"foo\":\n\t\"bar\"\n}'></div>"); equal( x.data("some").foo, "bar", "got a JSON data- attribute with spaces" ); x.remove(); -});
\ No newline at end of file +}); |