rem: test("attr(String, Function)", function() { expect(2); ok( $('#text1').attr('value', function() { return this.id })[0].value == "text1", "Set value from id" ); ok( $('#text1').attr('title', function(i) { return i }).attr('title') == "0", "Set value with an index"); 
add: test("attr(String)", function() { expect(12); 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' ); 
context: test("attr(String, Function)", function() {	expect(2);	ok( $('#text1').attr('value', function() { return this.id })[0].value == "text1", "Set value from id" );	ok( $('#text1').attr('title', function(i) { return i }).attr('title') == "0", "Set value with an index");});
meta: 1307	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1307/53e12752e00c2a86757ec15a0c871dee8ccd1bea/coreTest.js/buggy/src/jquery/coreTest.js