Skip to main content

Bug Tracker

Side navigation

Ticket #1681: test-1681.diff
File test-1681.diff, 0.8 KB (added by genezys, August 15, 2008 10:51AM UTC)
Index: test/unit/core.js
===================================================================
--- test/unit/core.js	(revision 5830)
+++ test/unit/core.js	(working copy)
@@ -1388,13 +1388,19 @@
 });
 
 test("toggleClass(String)", function() {
-	expect(3);
+	expect(6);
 	var e = jQuery("#firstp");
 	ok( !e.is(".test"), "Assert class not present" );
 	e.toggleClass("test");
 	ok( e.is(".test"), "Assert class present" );
 	e.toggleClass("test");
 	ok( !e.is(".test"), "Assert class not present" );
+	e.toggleClass("test", false);
+	ok( !e.is(".test"), "Assert class not present" );
+	e.toggleClass("test", true);
+	ok( e.is(".test"), "Assert class present" );
+	e.toggleClass("test", false);
+	ok( !e.is(".test"), "Assert class not present" );
 });
 
 test("removeAttr(String", function() {

Download in other formats:

Original Format