rem: test("attr(String)", function() { expect(15); ok( $('#text1').attr('value') == "Test", 'Check for value attribute' ); ok( $('#text1').attr('type') == "text", 'Check for type attribute' ); ok( $('#radio1').attr('type') == "radio", 'Check for type attribute' ); ok( $('#check1').attr('type') == "checkbox", 'Check for type attribute' ); ok( $('#simon1').attr('rel') == "bookmark", 'Check for rel attribute' ); ok( $('#google').attr('title') == "Google!", 'Check for title attribute' ); ok( $('#mark').attr('hreflang') == "en", 'Check for hreflang attribute' ); ok( $('#en').attr('lang') == "en", 'Check for lang attribute' ); ok( $('#simon').attr('class') == "blog link", 'Check for class attribute' ); ok( $('#name').attr('name') == "name", 'Check for name attribute' ); ok( $('#text1').attr('name') == "action", 'Check for name attribute' ); ok( $('#form').attr('action').indexOf("formaction") >= 0, 'Check for action attribute' );  $('<a id="tAnchor5"></a>').attr('href', '#5').appendTo('#main'); ok( $('#tAnchor5').attr('href') == "#5", 'Check for non-absolute href (an anchor)' );  stop(); $.get("data/dashboard.xml", function(xml) { ok( $("locations", xml).attr("class") == "foo", "Check class attribute in XML document" ); ok( $("location", xml).attr("for") == "bar", "Check for attribute in XML document" ); start(); }); 
add: test("each(Function)", function() { expect(1); var div = $("div"); div.each(function(){this.foo = 'zoo';}); var pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).foo != "zoo" ) pass = false; } ok( pass, "Execute a function, Relative" ); 
context: test("attr(String)", function() {	expect(15);	ok( $('#text1').attr('value') == "Test", 'Check for value attribute' );	ok( $('#text1').attr('type') == "text", 'Check for type attribute' );	ok( $('#radio1').attr('type') == "radio", 'Check for type attribute' );	ok( $('#check1').attr('type') == "checkbox", 'Check for type attribute' );	ok( $('#simon1').attr('rel') == "bookmark", 'Check for rel attribute' );	ok( $('#google').attr('title') == "Google!", 'Check for title attribute' );	ok( $('#mark').attr('hreflang') == "en", 'Check for hreflang attribute' );	ok( $('#en').attr('lang') == "en", 'Check for lang attribute' );	ok( $('#simon').attr('class') == "blog link", 'Check for class attribute' );	ok( $('#name').attr('name') == "name", 'Check for name attribute' );	ok( $('#text1').attr('name') == "action", 'Check for name attribute' );	ok( $('#form').attr('action').indexOf("formaction") >= 0, 'Check for action attribute' );		$('<a id="tAnchor5"></a>').attr('href', '#5').appendTo('#main'); // using innerHTML in IE causes href attribute to be serialized to the full path	ok( $('#tAnchor5').attr('href') == "#5", 'Check for non-absolute href (an anchor)' );		stop();	$.get("data/dashboard.xml", function(xml) {		ok( $("locations", xml).attr("class") == "foo", "Check class attribute in XML document" );		ok( $("location", xml).attr("for") == "bar", "Check for attribute in XML document" );		start();	});});
meta: 1307	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1307/7d0a84193f539d85267d1458aba35a42d7dbd03b/coreTest.js/buggy/src/jquery/coreTest.js