aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/jquery/coreTest.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js
index 77fd17e52..a793f17dc 100644
--- a/src/jquery/coreTest.js
+++ b/src/jquery/coreTest.js
@@ -834,4 +834,21 @@ test("$('<tag>') needs optional document parameter to ease cross-frame DOM wrang
f.close();
$("<div>Testing</div>").appendTo(f.body);
ok( true, "passed" );
+});
+
+test("Checkbox's state is erased after wrap() action (IE 6), see #769", function() {
+ expect(3);
+ stop();
+ $('#check1').click(function() {
+ var checkbox = this;
+ ok( !checkbox.checked );
+ $(checkbox).wrap( '<div id="c1" style="display:none;"></div>' );
+ ok( !checkbox.checked );
+ // use a fade in to check state after this event handler has finished
+ $("#c1").fadeIn(function() {
+ ok( checkbox.checked );
+ start();
+ });
+ }).click();
+
}); \ No newline at end of file