rem: test("$.extend(Object, Object, Object, Object)", function() { expect(4); var defaults = { xnumber1: 5, xnumber2: 7, xstring1: "peter", xstring2: "pan" }, defaultsCopy = { xnumber1: 5, xnumber2: 7, xstring1: "peter", xstring2: "pan" }, options1 =     { xnumber2: 1, xstring2: "x" }, options1Copy = { xnumber2: 1, xstring2: "x" }, options2 =     { xstring2: "xx", xxx: "newstringx" }, options2Copy = { xstring2: "xx", xxx: "newstringx" }, merged = { xnumber1: 5, xnumber2: 1, xstring1: "peter", xstring2: "xx", xxx: "newstringx" }; var settings = jQuery.extend({}, defaults, options1, options2); isSet( settings, merged, "Check if extended: settings must be extended" ); isSet ( defaults, defaultsCopy, "Check if not modified: options1 must not be modified" ); isSet ( options1, options1Copy, "Check if not modified: options1 must not be modified" ); isSet ( options2, options2Copy, "Check if not modified: options2 must not be modified" ); 
add: test("expressions - child and adjacent", function() { expect(14); t( "Child", "p > a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p> a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p >a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p>a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child w/ Class", "p > a.blog", ["mark","simon"] ); t( "All Children", "code > *", ["anchor1","anchor2"] ); t( "All Grandchildren", "p > * > *", ["anchor1","anchor2"] ); t( "Adjacent", "a + a", ["groups"] ); t( "Adjacent", "a +a", ["groups"] ); t( "Adjacent", "a+ a", ["groups"] ); t( "Adjacent", "a+a", ["groups"] ); t( "Adjacent", "p + p", ["ap","en","sap"] ); t( "Comma, Child, and Adjacent", "a + a, code > a", ["groups","anchor1","anchor2"] ); t( "First Child", "p:first-child", ["firstp","sndp"] ); 
context: test("$.extend(Object, Object, Object, Object)", function() {	expect(4);	var defaults = { xnumber1: 5, xnumber2: 7, xstring1: "peter", xstring2: "pan" },		defaultsCopy = { xnumber1: 5, xnumber2: 7, xstring1: "peter", xstring2: "pan" },		options1 =     { xnumber2: 1, xstring2: "x" },		options1Copy = { xnumber2: 1, xstring2: "x" },		options2 =     { xstring2: "xx", xxx: "newstringx" },		options2Copy = { xstring2: "xx", xxx: "newstringx" },		merged = { xnumber1: 5, xnumber2: 1, xstring1: "peter", xstring2: "xx", xxx: "newstringx" };	var settings = jQuery.extend({}, defaults, options1, options2);	isSet( settings, merged, "Check if extended: settings must be extended" );	isSet ( defaults, defaultsCopy, "Check if not modified: options1 must not be modified" );	isSet ( options1, options1Copy, "Check if not modified: options1 must not be modified" );	isSet ( options2, options2Copy, "Check if not modified: options2 must not be modified" );});
meta: 5264	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5264/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js