diff options
Diffstat (limited to 'tests/auto/qmlinterface/tst_qmlinterface.cpp')
-rw-r--r-- | tests/auto/qmlinterface/tst_qmlinterface.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/tests/auto/qmlinterface/tst_qmlinterface.cpp b/tests/auto/qmlinterface/tst_qmlinterface.cpp index 0b529e9e..49a769a0 100644 --- a/tests/auto/qmlinterface/tst_qmlinterface.cpp +++ b/tests/auto/qmlinterface/tst_qmlinterface.cpp @@ -66,8 +66,6 @@ public: private Q_SLOTS: void testAddress(); - void testGeoRectangle(); - void testGeoCircle(); void testLocation(); void testCategory(); void testIcon(); @@ -82,7 +80,6 @@ private: QGeoCoordinate m_coordinate; QGeoAddress m_address; QGeoRectangle m_rectangle; - QGeoCircle m_boundingCircle; QGeoLocation m_location; QPlaceCategory m_category; QPlaceIcon m_icon; @@ -112,9 +109,6 @@ tst_qmlinterface::tst_qmlinterface() m_rectangle.setHeight(30.0); m_rectangle.setWidth(40.0); - m_boundingCircle.setCenter(m_coordinate); - m_boundingCircle.setRadius(30.0); - m_location.setAddress(m_address); m_location.setBoundingBox(m_rectangle); m_location.setCoordinate(m_coordinate); @@ -186,45 +180,6 @@ void tst_qmlinterface::testAddress() delete qmlObject; } -void tst_qmlinterface::testGeoRectangle() -{ - QQmlEngine engine; - QQmlComponent component(&engine, SRCDIR "data/TestGeoRectangle.qml"); - QVERIFY(component.isReady()); - QObject *qmlObject = component.create(); - - QGeoRectangle rectangle = qmlObject->property("rectangle").value<QGeoRectangle>(); - - QCOMPARE(rectangle, m_rectangle); - - qmlObject->setProperty("rectangle", QVariant::fromValue(QGeoRectangle())); - - QCOMPARE(qmlObject->property("center").value<QGeoCoordinate>(), QGeoCoordinate()); - QVERIFY(qIsNaN(qmlObject->property("height").toDouble())); - QVERIFY(qIsNaN(qmlObject->property("width").toDouble())); - - delete qmlObject; -} - -void tst_qmlinterface::testGeoCircle() -{ - QQmlEngine engine; - QQmlComponent component(&engine, SRCDIR "data/TestGeoCircle.qml"); - QVERIFY(component.isReady()); - QObject *qmlObject = component.create(); - - QGeoCircle boundingCircle = qmlObject->property("circle").value<QGeoCircle>(); - - QCOMPARE(boundingCircle, m_boundingCircle); - - qmlObject->setProperty("circle", QVariant::fromValue(QGeoCircle())); - - QCOMPARE(qmlObject->property("center").value<QGeoCoordinate>(), QGeoCoordinate()); - QCOMPARE(qmlObject->property("radius").toDouble(), -1.0); - - delete qmlObject; -} - void tst_qmlinterface::testLocation() { QQmlEngine engine; |