Skip to content

Commit

Permalink
Added test for #769
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Mar 25, 2007
1 parent eab0e57 commit 00a2fa5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/jquery/coreTest.js
Expand Up @@ -834,4 +834,21 @@ test("$('<tag>') needs optional document parameter to ease cross-frame DOM wrang
f.close(); f.close();
$("<div>Testing</div>").appendTo(f.body); $("<div>Testing</div>").appendTo(f.body);
ok( true, "passed" ); 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();

}); });

0 comments on commit 00a2fa5

Please sign in to comment.