rem: test("expressions - attributes", function() { expect(16); 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( "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"]); 
add: test("expressions - 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"] ); 
context: test("expressions - attributes", function() {	expect(16);	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( "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"]);});
meta: 1471	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1471/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/buggy/src/jquery/coreTest.js