rem: sTestrun = testrun; var menu = document.getElementById("qa-st-testgroup"); while (menu.firstChild) { menu.removeChild(menu.firstChild); } 
add: sTestrun = testrun; var menu = document.getElementById("qa-st-testgroup"); while (menu.firstChild) { menu.removeChild(menu.firstChild); } 
context: function populateTestGroups(testrun) {	sTestrun = testrun;	var menu = document.getElementById("qa-st-testgroup");	while (menu.firstChild) {  // clear menu		menu.removeChild(menu.firstChild);	}	var testgroups = qaTools.arrayify(testrun.testgroups);	for (var i = 0; i < testgroups.length; i++) {		if (testgroups[i].enabled == 0) continue;		menu.appendItem(testgroups[i].name, testgroups[i].testgroup_id);	}	menu.selectedIndex = 0;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/838a3f38df6e9bd6fd899d9909b263e01aed1e26/selecttests.js/clean/testing/extensions/community/chrome/content/tabs/selecttests.js