Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/apptests.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
// clang-format off | // clang-format off | ||||
#include <QtTest/QtTestWidgets> | #include <QtTest/QtTestWidgets> | ||||
#include <QtTest/QtTestGui> | #include <QtTest/QtTestGui> | ||||
// clang-format on | // clang-format on | ||||
#include <univalue.h> | #include <univalue.h> | ||||
#include <new> | |||||
#include <string> | #include <string> | ||||
namespace { | namespace { | ||||
//! Call getblockchaininfo RPC and check first field of JSON output. | //! Call getblockchaininfo RPC and check first field of JSON output. | ||||
void TestRpcCommand(RPCConsole *console) { | void TestRpcCommand(RPCConsole *console) { | ||||
QEventLoop loop; | QEventLoop loop; | ||||
QTextEdit *messagesWidget = | QTextEdit *messagesWidget = | ||||
console->findChild<QTextEdit *>("messagesWidget"); | console->findChild<QTextEdit *>("messagesWidget"); | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |