X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fcore.js;h=7ef2ad7e2a8ad2cdd560fd82d87aa508b80bb6bf;hb=cb811c04b035eb2d652b0831e20ea1d3a4d9c448;hp=85b8da64fd6b3ed849a62b49fe733ad224ffda2a;hpb=484cc6e22000aaa6cefab5752b165f6ebd62ffe1;p=jquery.git diff --git a/test/unit/core.js b/test/unit/core.js index 85b8da6..7ef2ad7 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -219,7 +219,7 @@ test("trim", function() { }); test("type", function() { - expect(22); + expect(23); equals( jQuery.type(null), "null", "null" ); equals( jQuery.type(undefined), "undefined", "undefined" ); @@ -240,6 +240,7 @@ test("type", function() { equals( jQuery.type(new Function("return;")), "function", "Function" ); equals( jQuery.type(function(){}), "function", "Function" ); equals( jQuery.type(window), "object", "Window" ); + equals( jQuery.type(document), "object", "Document" ); equals( jQuery.type(document.body), "object", "Element" ); equals( jQuery.type(document.createTextNode("foo")), "object", "TextNode" ); equals( jQuery.type(document.getElementsByTagName("*")), "object", "NodeList" );