diff --git a/test/unit/selector.html b/test/unit/selector.html index 77afc4d..b908895 100644 --- a/test/unit/selector.html +++ b/test/unit/selector.html @@ -107,7 +107,11 @@ assertEnumEqual($A(document.getElementsByTagName('li')), $$('li')); assertEnumEqual([$('strong')], $$('strong')); assertEnumEqual([], $$('nonexistent')); - assertEnumEqual($A(document.getElementsByTagName('*')), $$('*')); + + var allNodes = $A(document.getElementsByTagName('*')).select( function() { + return node.tagName !== '!'; + }); + assertEnumEqual(allNodes, $$('*')); }}, testSelectorWithId: function() {with(this) {