add: testCase.debugContext.failed = false; 
context: function start(baseURL) {	if (!stopAndDo("start", baseURL)) return;	    selenium = createSelenium(baseURL);	commandFactory = new CommandHandlerFactory();	commandFactory.registerAll(selenium);	currentTest = new TestLoop(commandFactory);			currentTest.getCommandInterval = function() { return stopping ? -1 : getInterval(); }	currentTest.nextCommand = function() {		if (testCase.debugContext.debugIndex >= 0)			editor.view.rowUpdated(testCase.debugContext.debugIndex);		var command = testCase.debugContext.nextCommand();		if (command == null) return null;		return new SeleniumCommand(command.command, command.target, command.value);	}	currentTest.firstCommand = currentTest.nextCommand; // Selenium <= 0.6 only	currentTest.commandStarted = function() {		editor.setState("playing");		editor.view.rowUpdated(testCase.debugContext.debugIndex);		editor.view.scrollToRow(testCase.debugContext.debugIndex);	}	currentTest.commandComplete = function(result) {		if (result.failed) {			testCase.debugContext.currentCommand().result = 'failed';		} else if (result.passed) {			testCase.debugContext.currentCommand().result = 'passed';		} else {			testCase.debugContext.currentCommand().result = 'done';		}		editor.view.rowUpdated(testCase.debugContext.debugIndex);	}	currentTest.commandError = function() {		LOG.debug("commandError");		testCase.debugContext.currentCommand().result = 'failed';		editor.view.rowUpdated(testCase.debugContext.debugIndex);	}    // override _testComplete to ensure testComplete is called even when    // ensureNoUnhandledPopups throws any errors    currentTest._testComplete = function() {        try {            selenium.ensureNoUnhandledPopups();        } catch (e) {            LOG.error(e);        }        this.testComplete();    }	currentTest.testComplete = function() {		LOG.debug("testComplete");		editor.setState(null);		currentTest = null;		testCase.debugContext.reset();		editor.view.rowUpdated(testCase.debugContext.debugIndex);	}	currentTest.pause = function() {		editor.setState("paused");	}	testCase.debugContext.reset();	currentTest.start();}
meta: 3175	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3175/9371877d02d7f62a78dc3fea91bf0c7c05395f87/selenium-runner.js/buggy/src/content/selenium-runner.js