X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fcore.js;h=7ef2ad7e2a8ad2cdd560fd82d87aa508b80bb6bf;hb=50170e618059d10132a5319c64660a631b095f44;hp=d83f667dc194a38591e44dc52e5e7f99fcdcdd7d;hpb=97b42492bb391bab346d265b70dc62e9d90ecd3d;p=jquery.git diff --git a/test/unit/core.js b/test/unit/core.js index d83f667..7ef2ad7 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -219,7 +219,7 @@ test("trim", function() { }); test("type", function() { - expect(18); + expect(23); equals( jQuery.type(null), "null", "null" ); equals( jQuery.type(undefined), "undefined", "undefined" ); @@ -239,6 +239,11 @@ test("type", function() { equals( jQuery.type(new Date()), "date", "Date" ); 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" ); }); test("isPlainObject", function() {