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("add(String|Element|Array)", function() { isSet( $("#sndp").add("#en").add("#sap").get(), q("sndp", "en", "sap"), "Check elements from document" ); isSet( $("#sndp").add( $("#en")[0] ).add( $("#sap") ).get(), q("sndp", "en", "sap"), "Check elements from document" ); ok( $([]).add($("#form")[0].elements).length > 13, "Check elements from array" );  var x = $([]).add($("<p id='x1'>xxx</p>")).add($("<p id='x2'>xxx</p>")); ok( x[0].id == "x1", "Check on-the-fly element1" ); ok( x[1].id == "x2", "Check on-the-fly element2" );  var x = $([]).add("<p id='x1'>xxx</p>").add("<p id='x2'>xxx</p>"); ok( x[0].id == "x1", "Check on-the-fly element1" ); ok( x[1].id == "x2", "Check on-the-fly element2" ); 
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: 3217	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3217/7d0a84193f539d85267d1458aba35a42d7dbd03b/coreTest.js/buggy/src/jquery/coreTest.js