From: Robert Katic Date: Fri, 10 Sep 2010 01:26:47 +0000 (+0200) Subject: Test jQuery.type also with document. X-Git-Tag: 1.4.3rc1~70 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=894bd02a06fc10cfa9cb3ebd1a17d8ede533b919;p=jquery.git Test jQuery.type also with document. --- diff --git a/test/unit/core.js b/test/unit/core.js index 85b8da64f..7ef2ad7e2 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" );