diff options
author | Oleg <markelog@gmail.com> | 2012-11-27 21:32:59 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-11-27 21:32:59 -0500 |
commit | 9ae6b1a019553e95a6205d5c42ff7fa25e7a482e (patch) | |
tree | 817caf8131b6b1c6ed0fb8fd01b6c2918293e2ba /test/unit/manipulation.js | |
parent | 1052f9cb2bad094144fa1186b0be8f477a9d4fa1 (diff) | |
download | jquery-9ae6b1a019553e95a6205d5c42ff7fa25e7a482e.tar.gz jquery-9ae6b1a019553e95a6205d5c42ff7fa25e7a482e.zip |
Fix #12957. Simplify wrapMap, it doesn't need end tags. Close gh-1044.
Diffstat (limited to 'test/unit/manipulation.js')
-rw-r--r-- | test/unit/manipulation.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 3a1d598d2..f0cdfa346 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -356,7 +356,7 @@ var testAppendForObject = function(valueObj, isFragment) { }; var testAppend = function(valueObj) { - expect(58); + expect(59); testAppendForObject(valueObj, false); testAppendForObject(valueObj, true); @@ -440,6 +440,8 @@ var testAppend = function(valueObj) { $radioParent.wrap("<div></div>"); equal( $radioChecked[0].checked, true, "Reappending radios uphold which radio is checked" ); equal( $radioUnchecked[0].checked, false, "Reappending radios uphold not being checked" ); + + equal( jQuery("<div/>").append("option<area/>")[0].childNodes.length, 2, "HTML-string with leading text should be processed correctly" ); }; test("append(String|Element|Array<Element>|jQuery)", function() { @@ -537,11 +539,11 @@ test("replaceWith on XML document (#9960)", function () { xml2 = jQuery( xmlDoc2 ), scxml1 = jQuery( ":first", xml1 ), scxml2 = jQuery( ":first", xml2 ); - + scxml1.replaceWith( scxml2 ); - + newNode = jQuery( ":first>state[id='provisioning3']", xml1 ); - + equal( newNode.length, 1, "ReplaceWith not working on document nodes." ); }); |