X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2FcoreTest.js;h=a793f17dc2b728eaf5a88e94480f6c1621dc5929;hb=00a2fa5f35aa46c29a568729ef6dce4a7d5959b9;hp=77fd17e52cf03fc227afaca6d97c006a204abfe2;hpb=707f23f83a59e692454eb18285a610889ce8102f;p=jquery.git diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 77fd17e..a793f17 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -834,4 +834,21 @@ test("$('') needs optional document parameter to ease cross-frame DOM wrang f.close(); $("
Testing
").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( '' ); + 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