diff options
author | Yehuda Katz <wycats@mobile005.mycingular.net> | 2009-12-01 14:34:44 -0800 |
---|---|---|
committer | Yehuda Katz <wycats@Yehuda-Katz.local> | 2009-12-04 18:18:43 -0800 |
commit | c7d640f000c6945a238aa99952b4b1b378775d7e (patch) | |
tree | 3d802b89a677e8771f382c391224002ddb23165c /test | |
parent | 74f457d88093e4eca46bfd84374ec2b8dfb6f3b2 (diff) | |
download | jquery-c7d640f000c6945a238aa99952b4b1b378775d7e.tar.gz jquery-c7d640f000c6945a238aa99952b4b1b378775d7e.zip |
Added a test for bug 1095 for animations (animations don't clear check boxes)
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/fx.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/unit/fx.js b/test/unit/fx.js index da22de229..c259a3896 100644 --- a/test/unit/fx.js +++ b/test/unit/fx.js @@ -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(); + }); +}); |