Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

Fixture test: allow anything falsy in test as getAttribute in oldIE will return empty...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 15 Feb 2012 13:52:42 +0000 (14:52 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 15 Feb 2012 13:52:42 +0000 (14:52 +0100)
test/test.js

index 08cbf98..d9de476 100644 (file)
@@ -317,7 +317,7 @@ test("setup", function() {
 });
 test("basics", function() {
        equal( document.getElementById("qunit-fixture").innerHTML, "test markup", "automatically reset" );
-       equal( document.getElementById("qunit-fixture").getAttribute('title'), null, "properties automatically reset" );
+       ok( !document.getElementById("qunit-fixture").getAttribute('title'), "properties automatically reset" );
 });
 
 }
@@ -331,7 +331,7 @@ module("custom assertions");
        test("mod2", function() {
                mod2(2, 0, "2 % 2 == 0");
                mod2(3, 1, "3 % 2 == 1");
-       })
+       });
 })();
 
 

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