Tweaked one of the selector tests.
authorJohn Resig <jeresig@gmail.com>
Thu, 22 Jan 2009 00:11:11 +0000 (00:11 +0000)
committerJohn Resig <jeresig@gmail.com>
Thu, 22 Jan 2009 00:11:11 +0000 (00:11 +0000)
test/unit/selector.js

index a648e33..11112a5 100644 (file)
@@ -295,7 +295,7 @@ test("pseudo (:) selectors", function() {
        t( "Check position filtering", "select:lt(2) :not(:first)", ["option1b", "option1c", "option1d", "option2a", "option2b", "option2c", "option2d"] );
        t( "Check position filtering", "div.nothiddendiv:eq(0)", ["nothiddendiv"] );
        t( "Check position filtering", "div.nothiddendiv:last", ["nothiddendiv"] );
-       t( "Check position filtering", "div.nothiddendiv:not(:gt(0))", ["nothiddendiv"] );
+       t( "Check position filtering", "div.nothiddendiv:not(:lt(0))", ["nothiddendiv"] );
 
        t( "Check element position", "div div:eq(0)", ["nothiddendivchild"] );
        t( "Check element position", "div div:eq(5)", ["fadeout"] );