Skip to content

Commit

Permalink
Wrote test for special html fragments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter Loftis committed Jul 7, 2011
1 parent a67b28a commit 0753f50
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/zepto.html
Original file line number Diff line number Diff line change
Expand Up @@ -1321,6 +1321,16 @@ <h1>Zepto DOM unit tests</h1>
t.assertEqual($els.slice().length, 3);
t.assertEqual(typeof $els.slice().ready, 'function');
t.assertEqual($els.slice(-1)[0].className, 'slice3');
},

testCreateSpecialFragment: function(t) {
var el;
el = $('<th></th>');
t.assertEqual(el.size(), 1);
t.assertEqual(typeof el.get(0), 'object');
el = $('<td></td>');
t.assertEqual(el.size(), 1);
t.assertEqual(typeof el.get(0), 'object');
}
});
</script>
Expand Down

0 comments on commit 0753f50

Please sign in to comment.