Less deep and more strict.

This commit is contained in:
Rick Waldron
2012-10-25 08:46:53 -04:00
parent b398a68333
commit 63d72536ba

View File

@@ -681,8 +681,8 @@ test( "jQuery.fn.removeData supports interoperable removal of hyphenated propert
plain.data( "a-a", 1 );
plain.data( "b-b", 2 );
deepEqual( plain.data( "a-a" ), 1, "plain.data('a-a') returns value that matches the manually set value (plain)" );
deepEqual( plain.data( "b-b" ), 2, "plain.data('b-b') returns value that matches the manually set value (plain)" );
strictEqual( plain.data( "a-a" ), 1, "plain.data('a-a') returns value that matches the manually set value (plain)" );
strictEqual( 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)" );