Skip to content
Permalink
Browse files
Use .add() to merge two test groups together for .unwrap().
  • Loading branch information
jeresig committed Nov 30, 2009
1 parent 122e5dc commit 1a26e41
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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' );

0 comments on commit 1a26e41

Please sign in to comment.