rem: test("id", function() { expect(24); t( "ID Selector", "#body", ["body"] ); t( "ID Selector w/ Element", "body#body", ["body"] ); t( "ID Selector w/ Element", "ul#first", [] ); t( "ID selector with existing ID descendant", "#firstp #simon1", ["simon1"] ); t( "ID selector with non-existant descendant", "#firstp #foobar", [] ); t( "ID selector using UTF8", "#台北Táiběi", ["台北Táiběi"] ); t( "Multiple ID selectors using UTF8", "#台北Táiběi, #台北", ["台北Táiběi","台北"] ); t( "Descendant ID selector using UTF8", "div #台北", ["台北"] ); t( "Child ID selector using UTF8", "form > #台北", ["台北"] );  t( "Escaped ID", "#foo\\:bar", ["foo:bar"] ); t( "Escaped ID", "#test\\.foo\\[5\\]bar", ["test.foo[5]bar"] ); t( "Descendant escaped ID", "div #foo\\:bar", ["foo:bar"] ); t( "Descendant escaped ID", "div #test\\.foo\\[5\\]bar", ["test.foo[5]bar"] ); t( "Child escaped ID", "form > #foo\\:bar", ["foo:bar"] ); t( "Child escaped ID", "form > #test\\.foo\\[5\\]bar", ["test.foo[5]bar"] );  t( "ID Selector, child ID present", "#form > #radio1", ["radio1"] ); t( "ID Selector, not an ancestor ID", "#form  #first", [] ); 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/*", [] );  $('<a name="tName1">tName1 A</a><a name="tName2">tName2 A</a><div id="tName1">tName1 Div</div>').appendTo('#main'); ok( $("#tName1")[0].id == 'tName1', "ID selector with same value for a name attribute" ); ok( $("#tName2").length == 0, "ID selector non-existing but name attribute on an A tag" ); t( "ID Selector on Form with an input that has a name of 'id'", "#lengthtest", ["lengthtest"] );  t( "ID selector with non-existant ancestor", "#asdfasdf #foobar", [] ); }); 
add: $.get("data/with_fries.xml", function(xml) { ok( $("foo_bar", xml).length == 1, "Element Selector with underscore" ); start(); }); 
context: test("id", function() {	expect(24);	t( "ID Selector", "#body", ["body"] );	t( "ID Selector w/ Element", "body#body", ["body"] );	t( "ID Selector w/ Element", "ul#first", [] );	t( "ID selector with existing ID descendant", "#firstp #simon1", ["simon1"] );	t( "ID selector with non-existant descendant", "#firstp #foobar", [] );	t( "ID selector using UTF8", "#台北Táiběi", ["台北Táiběi"] );	t( "Multiple ID selectors using UTF8", "#台北Táiběi, #台北", ["台北Táiběi","台北"] );	t( "Descendant ID selector using UTF8", "div #台北", ["台北"] );	t( "Child ID selector using UTF8", "form > #台北", ["台北"] );		t( "Escaped ID", "#foo\\:bar", ["foo:bar"] );	t( "Escaped ID", "#test\\.foo\\[5\\]bar", ["test.foo[5]bar"] );	t( "Descendant escaped ID", "div #foo\\:bar", ["foo:bar"] );	t( "Descendant escaped ID", "div #test\\.foo\\[5\\]bar", ["test.foo[5]bar"] );	t( "Child escaped ID", "form > #foo\\:bar", ["foo:bar"] );	t( "Child escaped ID", "form > #test\\.foo\\[5\\]bar", ["test.foo[5]bar"] );		t( "ID Selector, child ID present", "#form > #radio1", ["radio1"] );  // bug #267	t( "ID Selector, not an ancestor ID", "#form  #first", [] );	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/*", [] );		$('<a name="tName1">tName1 A</a><a name="tName2">tName2 A</a><div id="tName1">tName1 Div</div>').appendTo('#main');	ok( $("#tName1")[0].id == 'tName1', "ID selector with same value for a name attribute" );	ok( $("#tName2").length == 0, "ID selector non-existing but name attribute on an A tag" );	t( "ID Selector on Form with an input that has a name of 'id'", "#lengthtest", ["lengthtest"] );		t( "ID selector with non-existant ancestor", "#asdfasdf #foobar", [] ); // bug #986});
meta: 1307	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1307/660490e6f487332aaf10c19fd9bbb325bc9946af/selectorTest.js/clean/src/selector/selectorTest.js