QUnit.reset();
var pass = true;
try {
- jQuery( jQuery("#iframe")[0].contentWindow.document.body ).append(valueObj( "<div>test</div>" ));
- } catch(e) {
+ var body = jQuery("#iframe")[0].contentWindow.document.body;
+
pass = false;
- }
+ jQuery( document.body ).append(valueObj( "<div>test</div>" ));
+ pass = true;
+ } catch(e) {}
ok( pass, "Test for appending a DOM node to the contents of an IFrame" );
jQuery('#sap').append(function(i, val){
equals( val, old, "Make sure the incoming value is correct." );
- return jQuery("#first, #yahoo");
+ return jQuery("#yahoo, #first");
});
equals( expected, jQuery('#sap').text(), "Check for appending of jQuery object" );
QUnit.reset();
expected = "This link has class=\"blog\": Simon Willison's WeblogYahooTry them out:";
- jQuery("#first, #yahoo").appendTo('#sap');
+ jQuery("#yahoo, #first").appendTo('#sap');
equals( expected, jQuery('#sap').text(), "Check for appending of jQuery object" );
QUnit.reset();
QUnit.reset();
expected = "YahooTry them out:This link has class=\"blog\": Simon Willison's Weblog";
- jQuery('#sap').prepend(val( jQuery("#first, #yahoo") ));
+ jQuery('#sap').prepend(val( jQuery("#yahoo, #first") ));
equals( expected, jQuery('#sap').text(), "Check for prepending of jQuery object" );
};
jQuery('#sap').prepend(function(i, val) {
equals( val, old, "Make sure the incoming value is correct." );
- return jQuery("#first, #yahoo");
+ return jQuery("#yahoo, #first");
});
equals( expected, jQuery('#sap').text(), "Check for prepending of jQuery object" );
QUnit.reset();
expected = "YahooTry them out:This link has class=\"blog\": Simon Willison's Weblog";
- jQuery("#first, #yahoo").prependTo('#sap');
+ jQuery("#yahoo, #first").prependTo('#sap');
equals( expected, jQuery('#sap').text(), "Check for prepending of jQuery object" );
QUnit.reset();