rem: commands.push("assert" + r[2]); commands.push("verify" + r[2]); commands.push("store" + r[2]); commands.push("waitFor" + r[2]); 
add: var base = r[2]; commands.push("assert" + base); commands.push("verify" + base); commands.push("store" + base); commands.push("waitFor" + base); var r2; if ((r = func.match(/^is(.*)Present$/))) { base = r[1]; commands.push("assert" + base + "NotPresent"); commands.push("verify" + base + "NotPresent"); } else { commands.push("assertNot" + base); commands.push("verifyNot" + base); } 
context: 	function loadSeleniumCommands() {		var commands = [];				var nonWaitActions = ['open', 'selectWindow', 'chooseCancelOnNextConfirmation', 'answerOnNextPrompt', 'close', 'setContext', 'setTimeout'];				for (func in this.editor.seleniumAPI.Selenium.prototype) {			//this.log.debug("func=" + func);			var r;			if (func.match(/^do[A-Z]/)) {				var action = func.substr(2,1).toLowerCase() + func.substr(3);				commands.push(action);				if (!action.match(/^waitFor/) && nonWaitActions.indexOf(action) < 0) {					commands.push(action + "AndWait");				}			} else if (func.match(/^assert.+/)) {				commands.push(func);				commands.push("verify" + func.substr(6));			} else if ((r = func.match(/^(get|is)(.+)$/))) {				commands.push("assert" + r[2]);				commands.push("verify" + r[2]);				commands.push("store" + r[2]);				commands.push("waitFor" + r[2]);			}		}		commands.push("pause");		commands.sort();		var array = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);		for (var i = 0; i < commands.length; i++) {			var string = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);			string.data = commands[i];			array.AppendElement(string);		}		var autocomplete = Components.classes["@mozilla.org/autocomplete/search;1?name=selenium-commands"].getService(Components.interfaces.nsISeleniumAutoCompleteSearch);		autocomplete.setSeleniumCommands(array);	}
meta: 3175	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3175/4daf3794c192c7c4371d092dbf9b78809becd00f/treeView.js/buggy/src/content/treeView.js