});\r
\r
test("append(String|Element|Array<Element>|jQuery)", function() {\r
- expect(11);\r
+ expect(12);\r
var defaultText = 'Try them out:'\r
var result = $('#first').append('<b>buga</b>');\r
ok( result.text() == defaultText + 'buga', 'Check if text appending works' );\r
reset();\r
$("#sap").append(document.getElementById('form'));\r
ok( $("#sap>form").size() == 1, "Check for appending a form" ); // Bug #910\r
+\r
+ reset();\r
+ var pass = true;\r
+ try {\r
+ $( $("iframe")[0].contentWindow.document.body ).append("<div>test</div>");\r
+ } catch(e) {\r
+ pass = false;\r
+ }\r
+\r
+ ok( pass, "Test for appending a DOM node to the contents of an IFrame" );\r
\r
});\r
\r