rem: test("attributes", function() { expect(20); 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 selector using UTF8", "span[@lang=中文]", ["台北"] );  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"]); 
add: test("multiple", function() { expect(4); t( "Comma Support", "a.blog, p", ["mark","simon","firstp","ap","sndp","en","sap","first"] ); t( "Comma Support", "a.blog , p", ["mark","simon","firstp","ap","sndp","en","sap","first"] ); t( "Comma Support", "a.blog ,p", ["mark","simon","firstp","ap","sndp","en","sap","first"] ); t( "Comma Support", "a.blog,p", ["mark","simon","firstp","ap","sndp","en","sap","first"] ); 
context: test("attributes", function() {	expect(20);	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 selector using UTF8", "span[@lang=中文]", ["台北"] );		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"]);});
meta: 1375	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1375/660490e6f487332aaf10c19fd9bbb325bc9946af/selectorTest.js/clean/src/selector/selectorTest.js