Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

is() expects lowercase types. Fixes #250 - Expected Date value is not displayed properly
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 31 May 2012 17:42:26 +0000 (19:42 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 31 May 2012 17:42:26 +0000 (19:42 +0200)
qunit/qunit.js

index 4430a77..cf46988 100644 (file)
@@ -1463,11 +1463,11 @@ QUnit.jsDump = (function() {
                                        type = "null";
                                } else if ( typeof obj === "undefined" ) {
                                        type = "undefined";
-                               } else if ( QUnit.is( "RegExp", obj) ) {
+                               } else if ( QUnit.is( "regexp", obj) ) {
                                        type = "regexp";
-                               } else if ( QUnit.is( "Date", obj) ) {
+                               } else if ( QUnit.is( "date", obj) ) {
                                        type = "date";
-                               } else if ( QUnit.is( "Function", obj) ) {
+                               } else if ( QUnit.is( "function", obj) ) {
                                        type = "function";
                                } else if ( typeof obj.setInterval !== undefined && typeof obj.document !== "undefined" && typeof obj.nodeType === "undefined" ) {
                                        type = "window";

Hosting is provided AltSPAHow to use Git
Please direct any questions on jabber alex.wolf@jabber.ru

Valid HTML 4.0 Transitional Valid CSS!

Designer Alexander Wolf