Skip to content

Commit

Permalink
Fixed wrap test that was looking for comment values from .text().
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Nov 30, 2009
1 parent df6e02a commit c7407bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/manipulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var testWrap = function(val) {
var j = jQuery("#nonnodes").contents();
j.wrap(val( "<i></i>" ));
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
j = jQuery("<label/>").wrap(val( "<li/>" ));
Expand Down

0 comments on commit c7407bd

Please sign in to comment.