X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2FcoreTest.js;h=7dd7a16bb789b720b634dcc020ae1ed85fa9003a;hb=ccc4c7663a117f4a9c5469f086d18133ae4f2e38;hp=25fd4dd82503c703ee8378f896dcff1fb1a8c065;hpb=0e540ec1b170c11cab11045b4965a927cb44ee34;p=jquery.git diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 25fd4dd..7dd7a16 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -379,7 +379,7 @@ test("expressions - child and adjacent", function() { }); test("expressions - attributes", function() { - expect(16); + expect(19); t( "Attribute Exists", "a[@title]", ["google"] ); t( "Attribute Exists", "*[@title]", ["google"] ); t( "Attribute Exists", "[@title]", ["google"] ); @@ -395,6 +395,10 @@ test("expressions - attributes", function() { t( "Attribute Ends With", "a[@href $= 'org/']", ["mark"] ); t( "Attribute Contains", "a[@href *= 'google']", ["google","groups"] ); + t("Select options via [@selected]", "#select1 option[@selected]", ["option1a"] ); + t("Select options via [@selected]", "#select2 option[@selected]", ["option2d"] ); + t("Select options via [@selected]", "#select3 option[@selected]", ["option3b", "option3c"] ); + t( "Grouped Form Elements", "input[@name='foo[bar]']", ["hidden2"] ); t( ":not() Existing attribute", "select:not([@multiple])", ["select1", "select2"]);