Skip to content

Commit

Permalink
Add a test case for commit eea08ab. Closes madrobby#141.
Browse files Browse the repository at this point in the history
  • Loading branch information
hardbap committed Apr 18, 2011
1 parent 67118cb commit 4d6dc98
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/zepto.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4d6dc98

Please sign in to comment.