Skip to content

Commit

Permalink
Issue 73rhodes#12: sideflow.js is not working with "mvn selenium:sele…
Browse files Browse the repository at this point in the history
…nese"

* Fixed SideFlow.initialize() for command loop in the IDE not to fall through the RC for comments
  • Loading branch information
paulbors committed Apr 16, 2015
1 parent f895df4 commit d3458f7
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions sideflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,21 @@ objectExtend(SideFlow.prototype, {
command_rows.push(commands[i]);
}
for (var i = 0; i < command_rows.length; i++) {
if (this.utils.isIDE() && (command_rows[i].type == 'command')) {
switch (command_rows[i].command.toLowerCase()) {
case "label":
this.gotoLabels[ command_rows[i].target ] = i;
break;
case "while":
case "endwhile":
cycles.push([command_rows[i].command.toLowerCase(), i]);
break;
case "foreach":
case "endforeach":
forEachCmds.push([command_rows[i].command.toLowerCase(), i]);
break;
if (this.utils.isIDE()) {
if((command_rows[i].type == 'command')) {
switch (command_rows[i].command.toLowerCase()) {
case "label":
this.gotoLabels[ command_rows[i].target ] = i;
break;
case "while":
case "endwhile":
cycles.push([command_rows[i].command.toLowerCase(), i]);
break;
case "foreach":
case "endforeach":
forEachCmds.push([command_rows[i].command.toLowerCase(), i]);
break;
}
}
} else {
var command = command_rows[i].trElement.cells[0].innerHTML;
Expand Down

0 comments on commit d3458f7

Please sign in to comment.