diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-04-04 16:06:59 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-04-05 07:34:16 +0000 |
commit | 0704f76d4793929b79a1fefd6c9f83ac69e70307 (patch) | |
tree | e4a50a71afa08c58cc0a27a3ddbeaf3fbf666461 /tests | |
parent | ab34a0e545230db1a865af918d5a9c2ed6553224 (diff) |
Rename tst_scrollbar to tst_cursor
This test was added in 88a62b3 that fixed the scrollbar cursor. It was
not possible to test in QML, so a separate C++ test was added. It was
noticed that most interactive controls have the exact same issue, so we
want to utilize the same test for testing the cursors of all relevant
controls.
Change-Id: I7c307de9f72760b0993007246beb3357a1b5ec2b
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/auto.pro | 2 | ||||
-rw-r--r-- | tests/auto/cursor/cursor.pro (renamed from tests/auto/scrollbar/scrollbar.pro) | 4 | ||||
-rw-r--r-- | tests/auto/cursor/data/scrollbar.qml (renamed from tests/auto/scrollbar/data/cursor.qml) | 0 | ||||
-rw-r--r-- | tests/auto/cursor/tst_cursor.cpp (renamed from tests/auto/scrollbar/tst_scrollbar.cpp) | 12 |
4 files changed, 9 insertions, 9 deletions
diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro index 6741296a..a04615d6 100644 --- a/tests/auto/auto.pro +++ b/tests/auto/auto.pro @@ -4,6 +4,7 @@ SUBDIRS += \ applicationwindow \ calendar \ controls \ + cursor \ drawer \ menu \ platform \ @@ -17,7 +18,6 @@ SUBDIRS += \ qquickuniversalstyleconf \ revisions \ sanity \ - scrollbar \ snippets # QTBUG-50295 diff --git a/tests/auto/scrollbar/scrollbar.pro b/tests/auto/cursor/cursor.pro index 03e11d44..4948e943 100644 --- a/tests/auto/scrollbar/scrollbar.pro +++ b/tests/auto/cursor/cursor.pro @@ -1,6 +1,6 @@ CONFIG += testcase -TARGET = tst_scrollbar -SOURCES += tst_scrollbar.cpp +TARGET = tst_cursor +SOURCES += tst_cursor.cpp macos:CONFIG -= app_bundle diff --git a/tests/auto/scrollbar/data/cursor.qml b/tests/auto/cursor/data/scrollbar.qml index 01dcd2ae..01dcd2ae 100644 --- a/tests/auto/scrollbar/data/cursor.qml +++ b/tests/auto/cursor/data/scrollbar.qml diff --git a/tests/auto/scrollbar/tst_scrollbar.cpp b/tests/auto/cursor/tst_cursor.cpp index 741a6edc..dafb3159 100644 --- a/tests/auto/scrollbar/tst_scrollbar.cpp +++ b/tests/auto/cursor/tst_cursor.cpp @@ -43,20 +43,20 @@ using namespace QQuickVisualTestUtil; -class tst_scrollbar : public QQmlDataTest +class tst_cursor : public QQmlDataTest { Q_OBJECT private slots: - void cursorShape(); + void scrollBar(); }; // QTBUG-59629 -void tst_scrollbar::cursorShape() +void tst_cursor::scrollBar() { // Ensure that the mouse cursor has the correct shape when over a scrollbar // which is itself over a text area with IBeamCursor. - QQuickApplicationHelper helper(this, QStringLiteral("cursor.qml")); + QQuickApplicationHelper helper(this, QStringLiteral("scrollbar.qml")); QQuickApplicationWindow *window = helper.appWindow; window->show(); QVERIFY(QTest::qWaitForWindowExposed(window)); @@ -80,6 +80,6 @@ void tst_scrollbar::cursorShape() QCOMPARE(scrollBar->cursor().shape(), Qt::CursorShape::ArrowCursor); } -QTEST_MAIN(tst_scrollbar) +QTEST_MAIN(tst_cursor) -#include "tst_scrollbar.moc" +#include "tst_cursor.moc" |