|
19 | 19 |
|
20 | 20 | #include <QAbstractButton> |
21 | 21 | #include <QApplication> |
| 22 | +#include <QPushButton> |
22 | 23 | #include <QTimer> |
23 | 24 | #include <QVBoxLayout> |
24 | 25 | #include <QTextEdit> |
@@ -130,7 +131,7 @@ void TestGUI() |
130 | 131 | QString balanceText = balanceLabel->text(); |
131 | 132 | int unit = walletModel.getOptionsModel()->getDisplayUnit(); |
132 | 133 | CAmount balance = walletModel.getBalance(); |
133 | | - QString balanceComparison = BitcoinUnits::formatWithUnit(unit, balance, false, BitcoinUnits::separatorAlways); |
| 134 | + QString balanceComparison = BitcoinUnits::floorHtmlWithUnit(unit, balance, false, BitcoinUnits::separatorAlways); |
134 | 135 | QCOMPARE(balanceText, balanceComparison); |
135 | 136 |
|
136 | 137 | // Check Request Payment button |
@@ -159,9 +160,9 @@ void TestGUI() |
159 | 160 | QString paymentText = rlist->toPlainText(); |
160 | 161 | QStringList paymentTextList = paymentText.split('\n'); |
161 | 162 | QCOMPARE(paymentTextList.at(0), QString("Payment information")); |
162 | | - QVERIFY(paymentTextList.at(1).indexOf(QString("URI: bitcoin:")) != -1); |
| 163 | + QVERIFY(paymentTextList.at(1).indexOf(QString("URI: dash:")) != -1); |
163 | 164 | QVERIFY(paymentTextList.at(2).indexOf(QString("Address:")) != -1); |
164 | | - QCOMPARE(paymentTextList.at(3), QString("Amount: 0.00000001 ") + QString::fromStdString(CURRENCY_UNIT)); |
| 165 | + QCOMPARE(paymentTextList.at(3), QString("Amount: 0.00000001 ") + BitcoinUnits::name(unit)); |
165 | 166 | QCOMPARE(paymentTextList.at(4), QString("Label: TEST_LABEL_1")); |
166 | 167 | QCOMPARE(paymentTextList.at(5), QString("Message: TEST_MESSAGE_1")); |
167 | 168 | } |
|
0 commit comments