Gav Wood
10 years ago
4 changed files with 41 additions and 3 deletions
@ -0,0 +1,20 @@ |
|||
function test_getDefaultMiner() |
|||
{ |
|||
newProject(); |
|||
var state = mainApplication.projectModel.stateListModel.get(0); |
|||
compare(state.miner.secret, "cb73d9408c4720e230387d956eb0f829d8a4dd2c1055f96257167e14e7169074"); |
|||
} |
|||
|
|||
function test_selectMiner() |
|||
{ |
|||
newProject(); |
|||
mainApplication.projectModel.stateListModel.editState(0); |
|||
var account = mainApplication.projectModel.stateDialog.newAccAction.add(); |
|||
account = mainApplication.projectModel.stateDialog.newAccAction.add(); |
|||
mainApplication.projectModel.stateDialog.minerComboBox.currentIndex = 2; |
|||
ts.waitForRendering(mainApplication.projectModel.stateDialog.minerComboBox, 3000); |
|||
mainApplication.projectModel.stateDialog.acceptAndClose(); |
|||
var state = mainApplication.projectModel.stateListModel.get(0); |
|||
compare(state.miner.secret, account.secret); |
|||
} |
|||
|
Loading…
Reference in new issue