X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=src%2Fjquery%2FcoreTest.js;h=5c982ee225b56eb6edb30c58d9d9686b8f785ca4;hp=896130011a7b69afd251466290a8b53199378268;hb=0f7c89cd97de6ca644a834a119dda1e057fd724e;hpb=7ad613c5e9aaf79666c5de39ebfafad5c46e13b9 diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 8961300..5c982ee 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -316,7 +316,7 @@ test("wrap(String|Element)", function() { }); test("append(String|Element|Array<Element>|jQuery)", function() { - expect(11); + expect(12); var defaultText = 'Try them out:' var result = $('#first').append('buga'); ok( result.text() == defaultText + 'buga', 'Check if text appending works' ); @@ -353,6 +353,16 @@ test("append(String|Element|Array<Element>|jQuery)", function() { reset(); $("#sap").append(document.getElementById('form')); ok( $("#sap>form").size() == 1, "Check for appending a form" ); // Bug #910 + + reset(); + var pass = true; + try { + $( $("iframe")[0].contentWindow.document.body ).append("
test
"); + } catch(e) { + pass = false; + } + + ok( pass, "Test for appending a DOM node to the contents of an IFrame" ); });