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: 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("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: 1471	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1471/1be558203961c43043d6e9de3341e8bb9c3dcbf3/core.js/buggy/test/unit/core.js