rem: 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' ); 
add: test("index(Object)", function() { expect(8); ok( $([window, document]).index(window) == 0, "Check for index of elements" ); ok( $([window, document]).index(document) == 1, "Check for index of elements" ); var inputElements = $('#radio1,#radio2,#check1,#check2'); ok( inputElements.index(document.getElementById('radio1')) == 0, "Check for index of elements" ); ok( inputElements.index(document.getElementById('radio2')) == 1, "Check for index of elements" ); ok( inputElements.index(document.getElementById('check1')) == 2, "Check for index of elements" ); ok( inputElements.index(document.getElementById('check2')) == 3, "Check for index of elements" ); ok( inputElements.index(window) == -1, "Check for not found index" ); ok( inputElements.index(document) == -1, "Check for not found index" ); 
context: 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' );});
meta: 1307	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1307/a5f9108a2109b2ed5778af860b0928d8e6b0fdd2/coreTest.js/clean/src/jquery/coreTest.js