Skip to content

Commit

Permalink
Added a test for bug 1095 for animations (animations don't clear chec…
Browse files Browse the repository at this point in the history
…k boxes)
  • Loading branch information
Yehuda Katz authored and Yehuda Katz committed Dec 5, 2009
1 parent 74f457d commit c7d640f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/unit/fx.js
Expand Up @@ -525,3 +525,18 @@ jQuery.makeTest = function( text ){
}

jQuery.makeTest.id = 1;

test("jQuery.show('fast') doesn't clear radio buttons (bug #1095)", function () {
expect(4);
stop();

var $checkedtest = jQuery("#checkedtest");
// IE6 was clearing "checked" in jQuery(elem).show("fast");
$checkedtest.hide().show("fast", function() {
ok( !! jQuery(":radio:first", $checkedtest).attr("checked"), "Check first radio still checked." );
ok( ! jQuery(":radio:last", $checkedtest).attr("checked"), "Check last radio still NOT checked." );
ok( !! jQuery(":checkbox:first", $checkedtest).attr("checked"), "Check first checkbox still checked." );
ok( ! jQuery(":checkbox:last", $checkedtest).attr("checked"), "Check last checkbox still NOT checked." );
start();
});
});

0 comments on commit c7d640f

Please sign in to comment.