You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
function test_contractRename()
|
|
|
|
{
|
|
|
|
newProject();
|
|
|
|
waitForExecution();
|
|
|
|
tryCompare(mainApplication.mainContent.projectNavigator.sections.itemAt(0).model.get(0), "name", "Contract");
|
|
|
|
editContract("contract Renamed {}");
|
|
|
|
mainApplication.mainContent.startQuickDebugging();
|
|
|
|
waitForExecution();
|
|
|
|
tryCompare(mainApplication.mainContent.rightPane.transactionLog.transactionModel.get(2), "contract", "Renamed");
|
|
|
|
tryCompare(mainApplication.mainContent.projectNavigator.sections.itemAt(0).model.get(0), "name", "Renamed");
|
|
|
|
mainApplication.projectModel.stateListModel.editState(0);
|
|
|
|
mainApplication.projectModel.stateDialog.model.editTransaction(2);
|
|
|
|
var transactionDialog = mainApplication.projectModel.stateDialog.transactionDialog;
|
|
|
|
tryCompare(transactionDialog, "contractId", "Renamed");
|
|
|
|
tryCompare(transactionDialog, "functionId", "Renamed");
|
|
|
|
transactionDialog.close();
|
|
|
|
mainApplication.projectModel.stateDialog.close();
|
|
|
|
}
|