* Fill the edit address dialog box with data, submit it, and ensure that * the resulting message meets expectations. */
| 41 | * the resulting message meets expectations. |
| 42 | */ |
| 43 | void EditAddressAndSubmit( |
| 44 | EditAddressDialog* dialog, |
| 45 | const QString& label, const QString& address, QString expected_msg) |
| 46 | { |
| 47 | QString warning_text; |
| 48 | |
| 49 | dialog->findChild<QLineEdit*>("labelEdit")->setText(label); |
| 50 | dialog->findChild<QValidatedLineEdit*>("addressEdit")->setText(address); |
| 51 | |
| 52 | ConfirmMessage(&warning_text, 5ms); |
| 53 | dialog->accept(); |
| 54 | QCOMPARE(warning_text, expected_msg); |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Test adding various send addresses to the address book. |
no test coverage detected