X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Fdata.js;h=79b23c6936b884b3e2095b824602357d9d3ac2f3;hb=eed69eccc54d010889b5d8495320538d7ceb4e51;hp=fd03c54fab8f25bbc1f935b75975aab8bb5cfc7e;hpb=942f8f7f75a55a36e6b9745030d3b3c983518aa8;p=jquery.git diff --git a/test/unit/data.js b/test/unit/data.js index fd03c54..79b23c6 100644 --- a/test/unit/data.js +++ b/test/unit/data.js @@ -1,20 +1,19 @@ module("data"); test("expando", function(){ - expect(7); + expect(6); equals("expando" in jQuery, true, "jQuery is exposing the expando"); var obj = {}; jQuery.data(obj); - equals( jQuery.expando in obj, false, "jQuery.data did not add an expando to the object" ); - - jQuery.data(obj, true); - equals( jQuery.expando in obj, false, "jQuery.data did not add an expando to the object" ); - + equals( jQuery.expando in obj, true, "jQuery.data adds an expando to the object" ); + + obj = {}; jQuery.data(obj, 'test'); equals( jQuery.expando in obj, false, "jQuery.data did not add an expando to the object" ); - + + obj = {}; jQuery.data(obj, "foo", "bar"); equals( jQuery.expando in obj, true, "jQuery.data added an expando to the object" );