| 1 | /* |
| 2 | * Copyright 2014 Canonical Ltd. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU Lesser General Public License as published by |
| 6 | * the Free Software Foundation; version 3. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU Lesser General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU Lesser General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | * |
| 16 | * Author: Christian Dywan <[email protected]> |
| 17 | */ |
| 18 | |
| 19 | #include <QtCore/QDir> |
| 20 | #include <QtQml/QQmlEngine> |
| 21 | #include <QtQuick/QQuickItem> |
| 22 | #include <QtQuick/QQuickView> |
| 23 | #include <QtTest/QTest> |
| 24 | #include <QtTest/QSignalSpy> |
| 25 | |
| 26 | #include "uctestcase.h" |
| 27 | |
| 28 | class tst_Page : public QObject |
| 29 | { |
| 30 | Q_OBJECT |
| 31 | |
| 32 | public: |
| 33 | tst_Page() |
| 34 | { |
| 35 | } |
| 36 | |
| 37 | private Q_SLOTS: |
| 38 | |
| 39 | void initTestCase() |
| 40 | { |
| 41 | } |
| 42 | |
| 43 | void cleanupTestCase() |
| 44 | { |
| 45 | } |
| 46 | |
| 47 | void testAnchorToPage_bug1249386() { |
| 48 | QScopedPointer<LomiriTestCase> testCase(new LomiriTestCase("AnchorToPage.qml")); |
| 49 | QCOMPARE(testCase->warnings(), 0); |
| 50 | } |
| 51 | }; |
| 52 | |
| 53 | QTEST_MAIN(tst_Page) |
| 54 | |
| 55 | #include "tst_page.moc" |