Skip to content
Permalink
Browse files

Test jQuery.type also with document.

  • Loading branch information
rkatic authored and jeresig committed Sep 10, 2010
1 parent 484cc6e commit 894bd02a06fc10cfa9cb3ebd1a17d8ede533b919
Showing with 2 additions and 1 deletion.
  1. +2 −1 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" );

0 comments on commit 894bd02

Please sign in to comment.
You can’t perform that action at this time.