X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fselector.js;h=11112a5c79e1165cb36b5bc1fc282ec9278d444b;hb=d1a34f79081dfcfcfe851412dafd172428a6d92a;hp=07671c6bee49c13b45a5dd34d02d54bed43ab098;hpb=7d9d2105406fe7fcdc196df860ca155c3e4c8453;p=jquery.git diff --git a/test/unit/selector.js b/test/unit/selector.js index 07671c6..11112a5 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -28,8 +28,8 @@ if ( location.protocol != "file:" ) { equals( jQuery("foo_bar", xml).length, 1, "Element Selector with underscore" ); equals( jQuery("property[name=prop2]", xml).length, 1, "Attribute selector with name" ); equals( jQuery("[name=prop2]", xml).length, 1, "Attribute selector with name" ); - equals( jQuery("#seite1", xml).length, 1, "Attribute selector with name" ); - equals( jQuery("component#seite1", xml).length, 1, "Attribute selector with name" ); + equals( jQuery("#seite1", xml).length, 1, "Attribute selector with ID" ); + equals( jQuery("component#seite1", xml).length, 1, "Attribute selector with ID" ); start(); }); }); @@ -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"] );