aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qquickscreen/tst_qquickscreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qtquick2/qquickscreen/tst_qquickscreen.cpp')
-rw-r--r--tests/auto/qtquick2/qquickscreen/tst_qquickscreen.cpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/tests/auto/qtquick2/qquickscreen/tst_qquickscreen.cpp b/tests/auto/qtquick2/qquickscreen/tst_qquickscreen.cpp
index f74f2845e0..89462230bf 100644
--- a/tests/auto/qtquick2/qquickscreen/tst_qquickscreen.cpp
+++ b/tests/auto/qtquick2/qquickscreen/tst_qquickscreen.cpp
@@ -46,35 +46,17 @@
#include <QtGui/QScreen>
#include "../../shared/util.h"
-class tst_qquickscreen : public QObject
+class tst_qquickscreen : public QDeclarativeDataTest
{
Q_OBJECT
-public:
- tst_qquickscreen ();
-
private slots:
- void initTestCase();
- void cleanupTestCase();
-
void basicProperties();
};
-tst_qquickscreen::tst_qquickscreen()
-{
-}
-
-void tst_qquickscreen::initTestCase()
-{
-}
-
-void tst_qquickscreen::cleanupTestCase()
-{
-}
-
void tst_qquickscreen::basicProperties()
{
QQuickView view;
- view.setSource(TESTDATA("screen.qml"));
+ view.setSource(testFileUrl("screen.qml"));
view.show();
QTest::qWaitForWindowShown(&view);