Skip to content

Commit f89f34e

Browse files
Johnny CarlsonJohnny Carlson
authored andcommitted
qml: add test harness for onboarding qml tests
1 parent d6f7b68 commit f89f34e

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/qml/test/onboardingtests.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include <QtQuickTest>
2+
QUICK_TEST_MAIN(onboarding)

src/qml/test/onboardingtests.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright (c) 2014-2023 The Bitcoin Core developers
2+
// Distributed under the MIT software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
5+
#include <QObject>
6+
#include <QQmlEngine>
7+
8+
class Setup : public QObject
9+
{
10+
Q_OBJECT
11+
12+
public:
13+
Setup();
14+
~Setup() = default;
15+
16+
public Q_SLOTS:
17+
void qmlEngineAvailable(QQmlEngine * engine);
18+
};
19+

0 commit comments

Comments
 (0)