rem: return processNext; } catch (e) { if (e.isJsUnitException && handler.type == "assert") { this.assertionFailed(e.jsUnitMessage); } else { this.commandError(e.message); } 
add: try { var processNext = handler.executor.call(selenium, command.target, command.value);   if (processNext == undefined && handler.wait) { processNext = SELENIUM_PROCESS_WAIT; }  if (handler.type == "assert") { this.assertionPassed(); } else { this.actionOK(); }  return processNext; } catch (e) { if (e.isJsUnitException && handler.type == "assert") { this.assertionFailed(e.jsUnitMessage); } else { this.commandError(e.message); 
context: function TestLoop(commandFactory) {    this.commandFactory = commandFactory;    this.commandInterval = 0;    this.processState == SELENIUM_PROCESS_CONTINUE;    var self = this;    this.start = function() {        self.continueCurrentTest();    }    this.continueCurrentTest = function() {        this.processState = self.executeNextCommand();        if (this.processState == SELENIUM_PROCESS_WAIT) {            //window.setTimeout("continueCurrentTest()", 500);            selenium.callOnNextPageLoad(function() {eval("testLoop.continueCurrentTest()")});            return;        }        if (this.processState == SELENIUM_PROCESS_PAUSED) {            return; // Will re-enter this loop on reload.        }        if (this.processState != SELENIUM_PROCESS_COMPLETE) {            // Continue processing            if (this.commandInterval >= 0) {                window.setTimeout("testLoop.continueCurrentTest();", this.commandInterval);            }            return;        }        this.onTestComplete();    }    this.executeNextCommand = function() {        var command = this.nextCommand();        if (!command) return SELENIUM_PROCESS_COMPLETE;        handler = this.commandFactory.getCommandHandler(command.command);        // Make the current row blue        this.beginCommand(command);        if(handler == null) {            this.commandError("Unknown command", ERROR);            return SELENIUM_PROCESS_COMPLETE;        }        else {            try {                var processNext = handler.executor.call(selenium, command.target, command.value);                if (handler.type == "assert") {                    this.assertionPassed();                } else {                    this.actionOK();                }                return processNext;            } catch (e) {                if (e.isJsUnitException && handler.type == "assert") {                    this.assertionFailed(e.jsUnitMessage);                } else {                    this.commandError(e.message);                }            }        }    }}
meta: 3428	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3428/d29c3300057cc06e6959278a7a9672474b9dc998/selenium-executionloop.js/clean/javascript/selenium-executionloop.js