rem: cChild = Components.classes.xpcTestChild2.createInstance(); cParentOne = Components.classes.xpcTestParentOne.createInstance(); cParentTwo = Components.classes.xpcTestParentTwo.createInstance(); 
add:  CONTRACTID = "@mozilla.org/js/xpc/test/Child2;1"; cChild = Components.classes[CONTRACTID].createInstance(); CONTRACTID = "@mozilla.org/js/xpc/test/ParentOne;1"; cParentOne = Components.classes[CONTRACTID].createInstance(); CONTRACTID = "@mozilla.org/js/xpc/test/ParentTwo;1"; cParentTwo = Components.classes[CONTRACTID].createInstance(); 
context: function SetupTest() {try {			// xpcTestChild2 inherits from nsIXPCTestChild2 nsIXPCTestParentOne, 	// and nsIXPCTestParentTwo but implements all the interfaces itself	iChild = Components.interfaces.nsIXPCTestChild2;	iParentOne = Components.interfaces.nsIXPCTestParentOne;	iParentTwo = Components.interfaces.nsIXPCTestParentTwo;	cChild = Components.classes.xpcTestChild2.createInstance();	cParentOne = Components.classes.xpcTestParentOne.createInstance();	cParentTwo = Components.classes.xpcTestParentTwo.createInstance();	c_c2 = cChild.QueryInterface(iChild);	c_p1 = cChild.QueryInterface(iParentOne);	c_p2 = cChild.QueryInterface(iParentTwo);	parentOne = cParentOne.QueryInterface(iParentOne);	parentTwo = cParentTwo.QueryInterface(iParentTwo);} catch (e) {	WriteLine(e);	AddTestCase(		"Setting up the test",		"PASSED",		"FAILED: " + e.message  +" "+ e.location +". ");}}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/8b640618cc61875d42657ed5c7233a84abfea09c/multiple-2.js/buggy/js/src/xpconnect/tests/js/multiple-2.js