rem: 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" ); }); 
add: div.each(function(){this.foo = 'zoo';}); 
context: 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" );});
meta: 2798	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2798/1ac9d6fbeed214d59ea5c31a87ff2c19bb08dbc8/core.js/clean/test/unit/core.js