rem: var expectFailureCommandFactory = new ExpectFailureCommandFactory(currentTest.commandFactory, message, "error", executeCommandAndReturnErrorMessage); currentTest.commandFactory = expectFailureCommandFactory; 
add: currentTest.expectedFailure = message; currentTest.expectedFailureType = "error"; currentTest.expectedFailureJustSet = true; 
context: Selenium.prototype.assertErrorOnNext = function(message) {    /**     * Tell Selenium to expect an error on the next command execution.      * @param message The error message we should expect.  This command will fail if the wrong error message appears.     */     // This command temporarily installs a CommandFactory that generates     // CommandHandlers that expect an error.    if (!message) {        throw new Error("Message must be provided");    }    var expectFailureCommandFactory =        new ExpectFailureCommandFactory(currentTest.commandFactory, message, "error", executeCommandAndReturnErrorMessage);    currentTest.commandFactory = expectFailureCommandFactory;};
meta: 3175	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3175/afa54887f887b5863f6af88f1b5293c9af5683a3/selenium-testrunner.js/buggy/code/javascript/core/scripts/selenium-testrunner.js