diff options
Diffstat (limited to 'test/jqLiteSpec.js')
| -rw-r--r-- | test/jqLiteSpec.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js index de9c74da..24920273 100644 --- a/test/jqLiteSpec.js +++ b/test/jqLiteSpec.js @@ -493,6 +493,16 @@ describe('jqLite', function() { }); + it('should ignore comment elements', function() { + var comment = jqLite(document.createComment('something')); + + comment.addClass('whatever'); + comment.hasClass('whatever'); + comment.toggleClass('whatever'); + comment.removeClass('whatever'); + }); + + describe('hasClass', function() { it('should check class', function() { var selector = jqLite([a, b]); |
