A test was using the old / child selector syntax - updating to the new style.
[jquery.git] / test / unit / selector.js
index c8a6e93..98fa3ca 100644 (file)
@@ -64,7 +64,7 @@ test("id", function() {
        t( "ID Selector, not a child ID", "#form > #option1a", [] );
        
        t( "All Children of ID", "#foo > *", ["sndp", "en", "sap"] );
-       t( "All Children of ID with no children", "#firstUL/*", [] );
+       t( "All Children of ID with no children", "#firstUL > *", [] );
        
        jQuery('<a name="tName1">tName1 A</a><a name="tName2">tName2 A</a><div id="tName1">tName1 Div</div>').appendTo('#main');
        equals( jQuery("#tName1")[0].id, 'tName1', "ID selector with same value for a name attribute" );
@@ -195,8 +195,8 @@ test("pseudo (:) selectors", function() {
        t( "Text Contains", "a:contains('Google Groups')", ["groups"] );
        t( "Element Preceded By", "p ~ div", ["foo","fx-queue","fx-tests", "moretests"] );
        t( "Not", "a.blog:not(.link)", ["mark"] );
-       t( "Not - multiple", "#form option:not(:contains('Nothing'),#option1b,:selected)", ["option1c", "option1d", "option2b", "option2c", "option3d"] );
-       t( "Not - complex", "#form option:not([id^='opt']:gt(0):nth-child(-n+3))", [ "option1a", "option1d", "option2d", "option3d"] );
+       t( "Not - multiple", "#form option:not(:contains('Nothing'),#option1b,:selected)", ["option1c", "option1d", "option2b", "option2c", "option3d", "option3e"] );
+       t( "Not - complex", "#form option:not([id^='opt']:gt(0):nth-child(-n+3))", [ "option1a", "option1d", "option2d", "option3d", "option3e"] );
        t( "Not - recursive", "#form option:not(:not(:selected))[id^='option3']", [ "option3b", "option3c"] );
        
        t( "nth Element", "p:nth(1)", ["ap"] );