blob: 88cbc6aa7340b37d3d57239d11e1116cfdbc27c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QtTest>
#include <qwebenginepage.h>
#include <qwebengineview.h>
#include <QDebug>
class tst_Shutdown : public QObject
{
Q_OBJECT
public:
tst_Shutdown();
virtual ~tst_Shutdown();
public Q_SLOTS:
void init();
void cleanup();
private Q_SLOTS:
void dummyTest();
private:
private:
QWebEngineView* m_view;
QWebEnginePage* m_page;
};
tst_Shutdown::tst_Shutdown()
{
}
tst_Shutdown::~tst_Shutdown()
{
}
void tst_Shutdown::init()
{
m_view = new QWebEngineView();
m_page = m_view->page();
}
void tst_Shutdown::cleanup()
{
delete m_view;
}
void tst_Shutdown::dummyTest()
{
QVERIFY(m_view);
}
QTEST_MAIN(tst_Shutdown)
#include "tst_shutdown.moc"
|