add: var ibody = $("#loadediframe").contents()[0].body; ok( ibody, "Check existance of IFrame body" );  equals( $("span", ibody).text(), "span text", "Find span in IFrame and check its text" );  $(ibody).append("<div>init text</div>"); equals( $("div", ibody).length, 2, "Check the original div and the new div are in IFrame" );  equals( $("div:last", ibody).text(), "init text", "Add text to div in IFrame" );  $("div:last", ibody).text("div text"); equals( $("div:last", ibody).text(), "div text", "Add text to div in IFrame" );  $("div:last", ibody).remove(); equals( $("div", ibody).length, 1, "Delete the div and check only one div left in IFrame" );  equals( $("div", ibody).text(), "span text", "Make sure the correct div is still left after deletion in IFrame" );  $("<table/>", ibody).append("<tr><td>cell</td></tr>").appendTo(ibody); $("table", ibody).remove(); equals( $("div", ibody).length, 1, "Check for JS error on add and delete of a table in IFrame" ); 
context: test("contents()", function() {	expect(2);	equals( $("#ap").contents().length, 9, "Check element contents" );	ok( $("#iframe").contents()[0], "Check existance of IFrame document" );	// Disabled, randomly fails	//ok( $("#iframe").contents()[0].body, "Check existance of IFrame body" );});
meta: 1471	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1471/74a132d944886379456d562990c8fb217ab332e3/core.js/clean/test/unit/core.js