MCPcopy Create free account
hub / github.com/ElementsProject/elements / EditAddressAndSubmit

Function EditAddressAndSubmit

src/qt/test/addressbooktests.cpp:43–55  ·  view source on GitHub ↗

* Fill the edit address dialog box with data, submit it, and ensure that * the resulting message meets expectations. */

Source from the content-addressed store, hash-verified

41 * the resulting message meets expectations.
42 */
43void 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.

Callers 1

Calls 3

ConfirmMessageFunction · 0.85
setTextMethod · 0.80
acceptMethod · 0.45

Tested by

no test coverage detected