aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-09-27 14:36:19 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2017-09-27 13:42:22 +0000
commit96aec78737322152fb6742a7fa516489b7ce7b50 (patch)
tree98b76f5c8eb8555d5230400711c3a326955426b8
parent391cba9a1e7fc6b2c8a26e4fbcab90a2bf670e78 (diff)
Rename tst_Drawer to tst_QQuickDrawer
Change-Id: I186b3ed95eda5178f861bc501be481c971641767 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r--.gitignore2
-rw-r--r--tests/auto/auto.pro4
-rw-r--r--tests/auto/qquickdrawer/data/applicationwindow-button.qml (renamed from tests/auto/drawer/data/applicationwindow-button.qml)0
-rw-r--r--tests/auto/qquickdrawer/data/applicationwindow-hover.qml (renamed from tests/auto/drawer/data/applicationwindow-hover.qml)0
-rw-r--r--tests/auto/qquickdrawer/data/applicationwindow-wheel.qml (renamed from tests/auto/drawer/data/applicationwindow-wheel.qml)0
-rw-r--r--tests/auto/qquickdrawer/data/applicationwindow.qml (renamed from tests/auto/drawer/data/applicationwindow.qml)0
-rw-r--r--tests/auto/qquickdrawer/data/dragOverModalShadow.qml (renamed from tests/auto/drawer/data/dragOverModalShadow.qml)0
-rw-r--r--tests/auto/qquickdrawer/data/flickable.qml (renamed from tests/auto/drawer/data/flickable.qml)0
-rw-r--r--tests/auto/qquickdrawer/data/grabber.qml (renamed from tests/auto/drawer/data/grabber.qml)0
-rw-r--r--tests/auto/qquickdrawer/data/header.qml (renamed from tests/auto/drawer/data/header.qml)0
-rw-r--r--tests/auto/qquickdrawer/data/multiTouch.qml (renamed from tests/auto/drawer/data/multiTouch.qml)0
-rw-r--r--tests/auto/qquickdrawer/data/multiple.qml (renamed from tests/auto/drawer/data/multiple.qml)0
-rw-r--r--tests/auto/qquickdrawer/data/reposition.qml (renamed from tests/auto/drawer/data/reposition.qml)0
-rw-r--r--tests/auto/qquickdrawer/data/window-button.qml (renamed from tests/auto/drawer/data/window-button.qml)0
-rw-r--r--tests/auto/qquickdrawer/data/window-hover.qml (renamed from tests/auto/drawer/data/window-hover.qml)0
-rw-r--r--tests/auto/qquickdrawer/data/window-wheel.qml (renamed from tests/auto/drawer/data/window-wheel.qml)0
-rw-r--r--tests/auto/qquickdrawer/data/window.qml (renamed from tests/auto/drawer/data/window.qml)0
-rw-r--r--tests/auto/qquickdrawer/qquickdrawer.pro (renamed from tests/auto/drawer/drawer.pro)4
-rw-r--r--tests/auto/qquickdrawer/tst_qquickdrawer.cpp (renamed from tests/auto/drawer/tst_drawer.cpp)60
19 files changed, 35 insertions, 35 deletions
diff --git a/.gitignore b/.gitignore
index 7c3a004b..dd2949f1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -33,13 +33,13 @@
/tests/auto/controls/material/tst_material
/tests/auto/controls/universal/tst_universal
/tests/auto/cursor/tst_cursor
-/tests/auto/drawer/tst_drawer
/tests/auto/focus/tst_focus
/tests/auto/font/tst_font
/tests/auto/menu/tst_menu
/tests/auto/platform/tst_platform
/tests/auto/popup/tst_popup
/tests/auto/pressandhold/tst_pressandhold
+/tests/auto/qquickdrawer/tst_qquickdrawer
/tests/auto/qquickmaterialstyle/tst_qquickmaterialstyle
/tests/auto/qquickmaterialstyleconf/tst_qquickmaterialstyleconf
/tests/auto/qquickstyle/tst_qquickstyle
diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro
index 048eabed..354d7c81 100644
--- a/tests/auto/auto.pro
+++ b/tests/auto/auto.pro
@@ -5,13 +5,13 @@ SUBDIRS += \
calendar \
controls \
cursor \
- drawer \
focus \
font \
menu \
platform \
popup \
pressandhold \
+ qquickdrawer \
qquickmaterialstyle \
qquickmaterialstyleconf \
qquickstyle \
@@ -24,6 +24,6 @@ SUBDIRS += \
# QTBUG-60268
boot2qt: SUBDIRS -= applicationwindow calendar controls cursor \
- drawer focus font menu platform popup qquickmaterialstyle \
+ qquickdrawer focus font menu platform popup qquickmaterialstyle \
qquickmaterialstyleconf qquickuniversalstyle \
qquickuniversalstyleconf snippets
diff --git a/tests/auto/drawer/data/applicationwindow-button.qml b/tests/auto/qquickdrawer/data/applicationwindow-button.qml
index 9641351e..9641351e 100644
--- a/tests/auto/drawer/data/applicationwindow-button.qml
+++ b/tests/auto/qquickdrawer/data/applicationwindow-button.qml
diff --git a/tests/auto/drawer/data/applicationwindow-hover.qml b/tests/auto/qquickdrawer/data/applicationwindow-hover.qml
index 560efec3..560efec3 100644
--- a/tests/auto/drawer/data/applicationwindow-hover.qml
+++ b/tests/auto/qquickdrawer/data/applicationwindow-hover.qml
diff --git a/tests/auto/drawer/data/applicationwindow-wheel.qml b/tests/auto/qquickdrawer/data/applicationwindow-wheel.qml
index 541f08aa..541f08aa 100644
--- a/tests/auto/drawer/data/applicationwindow-wheel.qml
+++ b/tests/auto/qquickdrawer/data/applicationwindow-wheel.qml
diff --git a/tests/auto/drawer/data/applicationwindow.qml b/tests/auto/qquickdrawer/data/applicationwindow.qml
index 673c4d4c..673c4d4c 100644
--- a/tests/auto/drawer/data/applicationwindow.qml
+++ b/tests/auto/qquickdrawer/data/applicationwindow.qml
diff --git a/tests/auto/drawer/data/dragOverModalShadow.qml b/tests/auto/qquickdrawer/data/dragOverModalShadow.qml
index 66eb2f4b..66eb2f4b 100644
--- a/tests/auto/drawer/data/dragOverModalShadow.qml
+++ b/tests/auto/qquickdrawer/data/dragOverModalShadow.qml
diff --git a/tests/auto/drawer/data/flickable.qml b/tests/auto/qquickdrawer/data/flickable.qml
index 62256afd..62256afd 100644
--- a/tests/auto/drawer/data/flickable.qml
+++ b/tests/auto/qquickdrawer/data/flickable.qml
diff --git a/tests/auto/drawer/data/grabber.qml b/tests/auto/qquickdrawer/data/grabber.qml
index e6ebe2da..e6ebe2da 100644
--- a/tests/auto/drawer/data/grabber.qml
+++ b/tests/auto/qquickdrawer/data/grabber.qml
diff --git a/tests/auto/drawer/data/header.qml b/tests/auto/qquickdrawer/data/header.qml
index de3af106..de3af106 100644
--- a/tests/auto/drawer/data/header.qml
+++ b/tests/auto/qquickdrawer/data/header.qml
diff --git a/tests/auto/drawer/data/multiTouch.qml b/tests/auto/qquickdrawer/data/multiTouch.qml
index 0faf3c61..0faf3c61 100644
--- a/tests/auto/drawer/data/multiTouch.qml
+++ b/tests/auto/qquickdrawer/data/multiTouch.qml
diff --git a/tests/auto/drawer/data/multiple.qml b/tests/auto/qquickdrawer/data/multiple.qml
index 4e622fca..4e622fca 100644
--- a/tests/auto/drawer/data/multiple.qml
+++ b/tests/auto/qquickdrawer/data/multiple.qml
diff --git a/tests/auto/drawer/data/reposition.qml b/tests/auto/qquickdrawer/data/reposition.qml
index 485da85c..485da85c 100644
--- a/tests/auto/drawer/data/reposition.qml
+++ b/tests/auto/qquickdrawer/data/reposition.qml
diff --git a/tests/auto/drawer/data/window-button.qml b/tests/auto/qquickdrawer/data/window-button.qml
index 1b8ac7d5..1b8ac7d5 100644
--- a/tests/auto/drawer/data/window-button.qml
+++ b/tests/auto/qquickdrawer/data/window-button.qml
diff --git a/tests/auto/drawer/data/window-hover.qml b/tests/auto/qquickdrawer/data/window-hover.qml
index b35bcd99..b35bcd99 100644
--- a/tests/auto/drawer/data/window-hover.qml
+++ b/tests/auto/qquickdrawer/data/window-hover.qml
diff --git a/tests/auto/drawer/data/window-wheel.qml b/tests/auto/qquickdrawer/data/window-wheel.qml
index 988a541e..988a541e 100644
--- a/tests/auto/drawer/data/window-wheel.qml
+++ b/tests/auto/qquickdrawer/data/window-wheel.qml
diff --git a/tests/auto/drawer/data/window.qml b/tests/auto/qquickdrawer/data/window.qml
index 88376ac4..88376ac4 100644
--- a/tests/auto/drawer/data/window.qml
+++ b/tests/auto/qquickdrawer/data/window.qml
diff --git a/tests/auto/drawer/drawer.pro b/tests/auto/qquickdrawer/qquickdrawer.pro
index 7dfc3638..9df205e6 100644
--- a/tests/auto/drawer/drawer.pro
+++ b/tests/auto/qquickdrawer/qquickdrawer.pro
@@ -1,6 +1,6 @@
CONFIG += testcase
-TARGET = tst_drawer
-SOURCES += tst_drawer.cpp
+TARGET = tst_qquickdrawer
+SOURCES += tst_qquickdrawer.cpp
macos:CONFIG -= app_bundle
diff --git a/tests/auto/drawer/tst_drawer.cpp b/tests/auto/qquickdrawer/tst_qquickdrawer.cpp
index 0bfb3fc9..9f6a556f 100644
--- a/tests/auto/drawer/tst_drawer.cpp
+++ b/tests/auto/qquickdrawer/tst_qquickdrawer.cpp
@@ -54,7 +54,7 @@
using namespace QQuickVisualTestUtil;
-class tst_Drawer : public QQmlDataTest
+class tst_QQuickDrawer : public QQmlDataTest
{
Q_OBJECT
@@ -116,7 +116,7 @@ private:
};
-void tst_Drawer::initTestCase()
+void tst_QQuickDrawer::initTestCase()
{
QQmlDataTest::initTestCase();
qputenv("QML_NO_TOUCH_COMPRESSION", "1");
@@ -126,14 +126,14 @@ void tst_Drawer::initTestCase()
QWindowSystemInterface::registerTouchDevice(touchDevice.data());
}
-void tst_Drawer::visible_data()
+void tst_QQuickDrawer::visible_data()
{
QTest::addColumn<QString>("source");
QTest::newRow("Window") << "window.qml";
QTest::newRow("ApplicationWindow") << "applicationwindow.qml";
}
-void tst_Drawer::visible()
+void tst_QQuickDrawer::visible()
{
QFETCH(QString, source);
QQuickApplicationHelper helper(this, source);
@@ -174,7 +174,7 @@ void tst_Drawer::visible()
QTRY_VERIFY(!overlay->childItems().contains(popupItem));
}
-void tst_Drawer::state()
+void tst_QQuickDrawer::state()
{
QQuickApplicationHelper helper(this, "applicationwindow.qml");
@@ -274,7 +274,7 @@ void tst_Drawer::state()
QCOMPARE(closedSpy.count(), ++closedCount);
}
-void tst_Drawer::position_data()
+void tst_QQuickDrawer::position_data()
{
QTest::addColumn<Qt::Edge>("edge");
QTest::addColumn<QPoint>("press");
@@ -288,7 +288,7 @@ void tst_Drawer::position_data()
QTest::newRow("bottom") << Qt::BottomEdge << QPoint(100, 399) << QPoint(100, 350) << QPoint(150, 250) << qreal(0.5);
}
-void tst_Drawer::position()
+void tst_QQuickDrawer::position()
{
QFETCH(Qt::Edge, edge);
QFETCH(QPoint, press);
@@ -317,7 +317,7 @@ void tst_Drawer::position()
QTRY_COMPARE(drawer->position(), 1.0);
}
-void tst_Drawer::dragMargin_data()
+void tst_QQuickDrawer::dragMargin_data()
{
QTest::addColumn<Qt::Edge>("edge");
QTest::addColumn<qreal>("dragMargin");
@@ -335,7 +335,7 @@ void tst_Drawer::dragMargin_data()
QTest::newRow("right:startDragDistance*2") << Qt::RightEdge << qreal(QGuiApplication::styleHints()->startDragDistance() * 2) << qreal(0) << qreal(0.75);
}
-void tst_Drawer::dragMargin()
+void tst_QQuickDrawer::dragMargin()
{
QFETCH(Qt::Edge, edge);
QFETCH(qreal, dragMargin);
@@ -385,7 +385,7 @@ static QRectF geometry(const QQuickItem *item)
return QRectF(item->x(), item->y(), item->width(), item->height());
}
-void tst_Drawer::reposition()
+void tst_QQuickDrawer::reposition()
{
QQuickApplicationHelper helper(this, QStringLiteral("reposition.qml"));
@@ -443,7 +443,7 @@ void tst_Drawer::reposition()
QTRY_COMPARE(popupItem2->x(), 0.0);
}
-void tst_Drawer::header()
+void tst_QQuickDrawer::header()
{
QQuickApplicationHelper helper(this, QStringLiteral("header.qml"));
@@ -483,7 +483,7 @@ void tst_Drawer::header()
QCOMPARE(clickSpy.count(), 1);
}
-void tst_Drawer::hover_data()
+void tst_QQuickDrawer::hover_data()
{
QTest::addColumn<QString>("source");
QTest::addColumn<bool>("modal");
@@ -494,7 +494,7 @@ void tst_Drawer::hover_data()
QTest::newRow("ApplicationWindow:modeless") << "applicationwindow-hover.qml" << false;
}
-void tst_Drawer::hover()
+void tst_QQuickDrawer::hover()
{
QFETCH(QString, source);
QFETCH(bool, modal);
@@ -556,7 +556,7 @@ void tst_Drawer::hover()
QVERIFY(!drawerItem->isHovered());
}
-void tst_Drawer::wheel_data()
+void tst_QQuickDrawer::wheel_data()
{
QTest::addColumn<QString>("source");
QTest::addColumn<bool>("modal");
@@ -575,7 +575,7 @@ static bool sendWheelEvent(QQuickItem *item, const QPoint &localPos, int degrees
return qGuiApp->notify(window, &wheelEvent);
}
-void tst_Drawer::wheel()
+void tst_QQuickDrawer::wheel()
{
QFETCH(QString, source);
QFETCH(bool, modal);
@@ -640,7 +640,7 @@ void tst_Drawer::wheel()
}
}
-void tst_Drawer::multiple()
+void tst_QQuickDrawer::multiple()
{
QQuickApplicationHelper helper(this, QStringLiteral("multiple.qml"));
QQuickWindow *window = helper.window;
@@ -763,7 +763,7 @@ void tst_Drawer::multiple()
QCOMPARE(leftDrawer->position(), 0.0);
}
-void tst_Drawer::touch_data()
+void tst_QQuickDrawer::touch_data()
{
QTest::addColumn<QString>("source");
QTest::addColumn<QPoint>("from");
@@ -780,7 +780,7 @@ void tst_Drawer::touch_data()
QTest::newRow("ApplicationWindow+Button:outside") << "applicationwindow-button.qml" << QPoint(300, 100) << QPoint(100, 100);
}
-void tst_Drawer::touch()
+void tst_QQuickDrawer::touch()
{
QFETCH(QString, source);
QFETCH(QPoint, from);
@@ -818,7 +818,7 @@ void tst_Drawer::touch()
QCOMPARE(drawer->position(), 0.0);
}
-void tst_Drawer::multiTouch()
+void tst_QQuickDrawer::multiTouch()
{
QQuickApplicationHelper helper(this, QStringLiteral("multiTouch.qml"));
QQuickWindow *window = helper.window;
@@ -931,7 +931,7 @@ void tst_Drawer::multiTouch()
QCOMPARE(overlayReleasedSpy.count(), 4);
}
-void tst_Drawer::grabber()
+void tst_QQuickDrawer::grabber()
{
QQuickApplicationHelper helper(this, QStringLiteral("grabber.qml"));
QQuickWindow *window = helper.window;
@@ -967,14 +967,14 @@ void tst_Drawer::grabber()
QTRY_COMPARE(popupClosedSpy.count(), 1);
}
-void tst_Drawer::interactive_data()
+void tst_QQuickDrawer::interactive_data()
{
QTest::addColumn<QString>("source");
QTest::newRow("Window") << "window.qml";
QTest::newRow("ApplicationWindow") << "applicationwindow.qml";
}
-void tst_Drawer::interactive()
+void tst_QQuickDrawer::interactive()
{
QFETCH(QString, source);
QQuickApplicationHelper helper(this, source);
@@ -1021,7 +1021,7 @@ void tst_Drawer::interactive()
QCOMPARE(aboutToHideSpy.count(), 0);
}
-void tst_Drawer::flickable_data()
+void tst_QQuickDrawer::flickable_data()
{
QTest::addColumn<bool>("mouse");
QTest::addColumn<QPoint>("from");
@@ -1033,7 +1033,7 @@ void tst_Drawer::flickable_data()
QTest::newRow("touch,diagonal") << false << QPoint(200, 200) << QPoint(250, 100);
}
-void tst_Drawer::flickable()
+void tst_QQuickDrawer::flickable()
{
QFETCH(bool, mouse);
QFETCH(QPoint, from);
@@ -1083,7 +1083,7 @@ void tst_Drawer::flickable()
QVERIFY(!flickable->isDragging());
}
-void tst_Drawer::dragOverModalShadow_data()
+void tst_QQuickDrawer::dragOverModalShadow_data()
{
QTest::addColumn<bool>("mouse");
QTest::newRow("mouse") << true;
@@ -1091,7 +1091,7 @@ void tst_Drawer::dragOverModalShadow_data()
}
// QTBUG-60602
-void tst_Drawer::dragOverModalShadow()
+void tst_QQuickDrawer::dragOverModalShadow()
{
QFETCH(bool, mouse);
@@ -1139,7 +1139,7 @@ void tst_Drawer::dragOverModalShadow()
QVERIFY(!drawer->isVisible());
}
-void tst_Drawer::nonModal_data()
+void tst_QQuickDrawer::nonModal_data()
{
QTest::addColumn<bool>("mouse");
QTest::newRow("mouse") << true;
@@ -1147,7 +1147,7 @@ void tst_Drawer::nonModal_data()
}
// QTBUG-59652
-void tst_Drawer::nonModal()
+void tst_QQuickDrawer::nonModal()
{
QFETCH(bool, mouse);
@@ -1219,6 +1219,6 @@ void tst_Drawer::nonModal()
QVERIFY(closedSpy.wait());
}
-QTEST_MAIN(tst_Drawer)
+QTEST_MAIN(tst_QQuickDrawer)
-#include "tst_drawer.moc"
+#include "tst_qquickdrawer.moc"