Permalink
Browse files

Add a test case for commit eea08ab. Closes #141.

  • Loading branch information...
hardbap committed Apr 18, 2011
1 parent 67118cb commit 4d6dc98b662d78a24d1f259352eccd1f13745032
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/zepto.html
View
@@ -284,6 +284,12 @@ <h1>Zepto DOM unit tests</h1>
t.assertEqual("<span>world</span>", fragment.get(2).outerHTML);
},
+ testDollarWithTextNode: function(t){
+ var textNode = $(document.createTextNode('hi there'));
+ t.assertLength(1, textNode);
+ t.assertEqual(Node.TEXT_NODE, textNode.get(0).nodeType);
+ },
+
testReady: function(t){
t.assertEqual('hi!', globalVarSetFromReady);
t.assertEqual('hi!', globalVarSetFromReady2);

0 comments on commit 4d6dc98

Please sign in to comment.