f.close();\r
$("<div>Testing</div>").appendTo(f.body);\r
ok( true, "passed" );\r
+});\r
+\r
+test("Checkbox's state is erased after wrap() action (IE 6), see #769", function() {\r
+ expect(3);\r
+ stop();\r
+ $('#check1').click(function() { \r
+ var checkbox = this; \r
+ ok( !checkbox.checked );\r
+ $(checkbox).wrap( '<div id="c1" style="display:none;"></div>' );\r
+ ok( !checkbox.checked );\r
+ // use a fade in to check state after this event handler has finished\r
+ $("#c1").fadeIn(function() {\r
+ ok( checkbox.checked );\r
+ start();\r
+ });\r
+ }).click();\r
+ \r
});
\ No newline at end of file