* being tested)
*/
protected void testFive() {
declare(testName + " 5: BACK, STOP, CANCEL, EXIT, HELP, OK, SCREEN & ITEM commands added to the screen.");
LcduiTestCanvas canvas = new LcduiTestCanvas();
// we add the commands in reverse order so that we are
// sure the button layer is sorting it correctly
for (int i = 0; i < 2; i++) {
canvas.addCommand(new Command("STOP" + i, Command.STOP, i));
canvas.addCommand(new Command("CANCEL" + i, Command.CANCEL, i));
canvas.addCommand(new Command("EXIT" + i, Command.EXIT, i));
canvas.addCommand(new Command("HELP" + i, Command.HELP, i));
canvas.addCommand(new Command("OK" + i, Command.OK, i));
canvas.addCommand(new Command("SCREEN" + i, Command.SCREEN, i));
canvas.addCommand(new Command("ITEM" + i, Command.ITEM, i));
}
Command backCmd = new Command("Back", Command.BACK, 0);
canvas.addCommand(backCmd);
checkLeftBtn(canvas, backCmd);
Command[] cmds = window.getSoftTwo();
assertTrue("ITEM", cmds[0].getCommandType() == Command.ITEM);