test("expressions - attributes", function() { expect(19); t( "Attribute Exists", "a[@title]", ["google"] ); t( "Attribute Exists", "*[@title]", ["google"] ); t( "Attribute Exists", "[@title]", ["google"] );  t( "Attribute Equals", "a[@rel='bookmark']", ["simon1"] ); t( "Attribute Equals", 'a[@rel="bookmark"]', ["simon1"] ); t( "Attribute Equals", "a[@rel=bookmark]", ["simon1"] ); t( "Multiple Attribute Equals", "input[@type='hidden'],input[@type='radio']", ["hidden1","radio1","radio2"] ); t( "Multiple Attribute Equals", "input[@type=\"hidden\"],input[@type='radio']", ["hidden1","radio1","radio2"] ); t( "Multiple Attribute Equals", "input[@type=hidden],input[@type=radio]", ["hidden1","radio1","radio2"] );  t( "Attribute Begins With", "a[@href ^= 'http: 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"]); t( ":not() Equals attribute", "select:not([@name=select1])", ["select2", "select3"]); t( ":not() Equals quoted attribute", "select:not([@name='select1'])", ["select2", "select3"]); 
test("child and adjacent", function() { expect(14); t( "Child", "p > a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p> a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p >a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p>a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child w/ Class", "p > a.blog", ["mark","simon"] ); t( "All Children", "code > *", ["anchor1","anchor2"] ); t( "All Grandchildren", "p > * > *", ["anchor1","anchor2"] ); t( "Adjacent", "a + a", ["groups"] ); t( "Adjacent", "a +a", ["groups"] ); t( "Adjacent", "a+ a", ["groups"] ); t( "Adjacent", "a+a", ["groups"] ); t( "Adjacent", "p + p", ["ap","en","sap"] ); t( "Comma, Child, and Adjacent", "a + a, code > a", ["groups","anchor1","anchor2"] ); t( "First Child", "p:first-child", ["firstp","sndp"] ); 
test("expressions - attributes", function() {	expect(19);	t( "Attribute Exists", "a[@title]", ["google"] );	t( "Attribute Exists", "*[@title]", ["google"] );	t( "Attribute Exists", "[@title]", ["google"] );		t( "Attribute Equals", "a[@rel='bookmark']", ["simon1"] );	t( "Attribute Equals", 'a[@rel="bookmark"]', ["simon1"] );	t( "Attribute Equals", "a[@rel=bookmark]", ["simon1"] );	t( "Multiple Attribute Equals", "input[@type='hidden'],input[@type='radio']", ["hidden1","radio1","radio2"] );	t( "Multiple Attribute Equals", "input[@type=\"hidden\"],input[@type='radio']", ["hidden1","radio1","radio2"] );	t( "Multiple Attribute Equals", "input[@type=hidden],input[@type=radio]", ["hidden1","radio1","radio2"] );		t( "Attribute Begins With", "a[@href ^= 'http://www']", ["google","yahoo"] );	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"]);	t( ":not() Equals attribute", "select:not([@name=select1])", ["select2", "select3"]);	t( ":not() Equals quoted attribute", "select:not([@name='select1'])", ["select2", "select3"]);});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/af79bb1f255433d553d8d9dde0306cc340903c1a/selectorTest.js/buggy/src/selector/selectorTest.js