From: Jordan Boesch Date: Sat, 5 Mar 2011 15:59:25 +0000 (-0600) Subject: bug 6158; fixing replaceWith from throwing errors on non existant elements; fixing... X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=dd100bf5ac56d5d44afe45d73fe1824bd0135872;p=jquery.git bug 6158; fixing replaceWith from throwing errors on non existant elements; fixing semicolon --- diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 1169032..ff3dff1 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -799,9 +799,9 @@ var testReplaceWith = function(val) { var set = jQuery("
").replaceWith(val("test")); equals( set[0].nodeName.toLowerCase(), "span", "Replace the disconnected node." ); equals( set.length, 1, "Replace the disconnected node." ); - + var non_existant = jQuery('#does-not-exist').replaceWith( val("should not throw an error") ); - equals( non_existant.length, 0, "Length of non existant element." ) + equals( non_existant.length, 0, "Length of non existant element." ); var $div = jQuery("
").appendTo("body"); // TODO: Work on jQuery(...) inline script execution