diff options
author | Jordan Boesch <jboesch26@gmail.com> | 2011-03-05 09:59:25 -0600 |
---|---|---|
committer | Jordan Boesch <jboesch26@gmail.com> | 2011-03-05 09:59:25 -0600 |
commit | dd100bf5ac56d5d44afe45d73fe1824bd0135872 (patch) | |
tree | 545c8f10ef72ad124a324fe46a70510b41d0cac3 /test/unit/manipulation.js | |
parent | c9ef09c800ba7b6510d9e3a68f053ae29409f621 (diff) | |
download | jquery-dd100bf5ac56d5d44afe45d73fe1824bd0135872.tar.gz jquery-dd100bf5ac56d5d44afe45d73fe1824bd0135872.zip |
bug 6158; fixing replaceWith from throwing errors on non existant elements; fixing semicolon
Diffstat (limited to 'test/unit/manipulation.js')
-rw-r--r-- | test/unit/manipulation.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 1169032ce..ff3dff164 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -799,9 +799,9 @@ var testReplaceWith = function(val) { var set = jQuery("<div/>").replaceWith(val("<span>test</span>")); 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("<b>should not throw an error</b>") ); - equals( non_existant.length, 0, "Length of non existant element." ) + equals( non_existant.length, 0, "Length of non existant element." ); var $div = jQuery("<div class='replacewith'></div>").appendTo("body"); // TODO: Work on jQuery(...) inline script execution |