diff options
author | Robert Katic <robert.katic@gmail.com> | 2010-09-10 03:26:47 +0200 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-09-23 12:08:54 -0400 |
commit | 894bd02a06fc10cfa9cb3ebd1a17d8ede533b919 (patch) | |
tree | 2acbf2697ad80fdc40fe68b2502f41269fd25603 | |
parent | 484cc6e22000aaa6cefab5752b165f6ebd62ffe1 (diff) | |
download | jquery-894bd02a06fc10cfa9cb3ebd1a17d8ede533b919.tar.gz jquery-894bd02a06fc10cfa9cb3ebd1a17d8ede533b919.zip |
Test jQuery.type also with document.
-rw-r--r-- | test/unit/core.js | 3 |
1 files changed, 2 insertions, 1 deletions
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" ); |