Permalink
Browse files

added tests

  • Loading branch information...
1 parent a767cc9 commit d5fc9c364d98e36674dcbb86d7daab80824f6f5f @drewlesueur drewlesueur committed Dec 18, 2010
Showing with 14 additions and 0 deletions.
  1. +14 −0 test/zepto.html
View
14 test/zepto.html
@@ -685,6 +685,20 @@
'<div>append</div></div><div>after</div>',
$('#beforeafter_container').html()
);
+
+ $('#beforeafter_container').html('<div id="beforeafter"></div>');
+
+ //testing with Zepto object as parameter
+ $('#beforeafter').append($(div('append')));
+ $('#beforeafter').prepend($(div('prepend')));
+ $('#beforeafter').before($(div('before')));
+ $('#beforeafter').after($(div('after')));
+
+ t.assertEqual(
+ '<div>before</div><div id="beforeafter"><div>prepend</div>'+
+ '<div>append</div></div><div>after</div>',
+ $('#beforeafter_container').html()
+ );
},
testAddRemoveClass: function(t){

0 comments on commit d5fc9c3

Please sign in to comment.