git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
df6e02a
)
Fixed wrap test that was looking for comment values from .text().
author
jeresig
<jeresig@gmail.com>
Mon, 30 Nov 2009 18:46:14 +0000
(13:46 -0500)
committer
jeresig
<jeresig@gmail.com>
Mon, 30 Nov 2009 18:46:14 +0000
(13:46 -0500)
test/unit/manipulation.js
patch
|
blob
|
history
diff --git
a/test/unit/manipulation.js
b/test/unit/manipulation.js
index
4997634
..
a0ce302
100644
(file)
--- a/
test/unit/manipulation.js
+++ b/
test/unit/manipulation.js
@@
-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" );
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/>" ));
// Try wrapping a disconnected node
j = jQuery("<label/>").wrap(val( "<li/>" ));