aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2009-11-30 14:39:34 -0500
committerjeresig <jeresig@gmail.com>2009-11-30 14:39:34 -0500
commit1a26e41917300708d817e96ca2141a01c982c096 (patch)
tree6bdda12c1c888ad0a3434b318af85540d05d7ec0
parent122e5dcf14291bfbaec23505c68e28b7f82aef85 (diff)
downloadjquery-1a26e41917300708d817e96ca2141a01c982c096.tar.gz
jquery-1a26e41917300708d817e96ca2141a01c982c096.zip
Use .add() to merge two test groups together for .unwrap().
-rw-r--r--test/unit/manipulation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index a0ce30281..21ab6afbc 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -127,7 +127,7 @@ var testUnwrap = function() {
var abcd = jQuery('#unwrap1 > span, #unwrap2 > span').get(),
abcdef = jQuery('#unwrap span').get();
- equals( jQuery('#unwrap1 span, #unwrap2 span:first').unwrap().length, 3, 'make #unwrap1 and #unwrap2 go away' );
+ equals( jQuery('#unwrap1 span').add('#unwrap2 span:first').unwrap().length, 3, 'make #unwrap1 and #unwrap2 go away' );
same( jQuery('#unwrap > span').get(), abcd, 'all four spans should still exist' );
same( jQuery('#unwrap3 span').unwrap().get(), jQuery('#unwrap3 > span').get(), 'make all b in #unwrap3 go away' );