Commit c7407bd4 authored by jeresig's avatar jeresig

Fixed wrap test that was looking for comment values from .text().

parent df6e02a4
...@@ -37,7 +37,7 @@ var testWrap = function(val) { ...@@ -37,7 +37,7 @@ var testWrap = function(val) {
var j = jQuery("#nonnodes").contents(); var j = jQuery("#nonnodes").contents();
j.wrap(val( "<i></i>" )); j.wrap(val( "<i></i>" ));
equals( jQuery("#nonnodes > i").length, 3, "Check node,textnode,comment wraps ok" ); equals( jQuery("#nonnodes > i").length, 3, "Check node,textnode,comment wraps ok" );
equals( jQuery("#nonnodes > i").text(), j.text() + j[1].nodeValue, "Check node,textnode,comment wraps doesn't hurt text" ); equals( jQuery("#nonnodes > i").text(), j.text(), "Check node,textnode,comment wraps doesn't hurt text" );
// Try wrapping a disconnected node // Try wrapping a disconnected node
j = jQuery("<label/>").wrap(val( "<li/>" )); j = jQuery("<label/>").wrap(val( "<li/>" ));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment