aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAntti Hölttä <AHoelttae@luxoft.com>2019-03-13 13:52:16 +0100
committerAntti Hölttä <AHoelttae@luxoft.com>2019-03-18 16:43:30 +0100
commitd62c290ee9e196b295f2dca172313c050b26dea4 (patch)
treeb0a2b75fa862755297ea6ec4fe8e31675c2b90f5 /tests
parentb0de855379a9242d74353dfd66677d4b1b5dbcec (diff)
Fix issue with move-method when using angles greater or equal to 360
Diffstat (limited to 'tests')
-rw-r--r--tests/tst_cursornavigation.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tst_cursornavigation.cpp b/tests/tst_cursornavigation.cpp
index 5d842db..8891c4c 100644
--- a/tests/tst_cursornavigation.cpp
+++ b/tests/tst_cursornavigation.cpp
@@ -309,6 +309,11 @@ void TestCursorNavigation::test_navigation360()
QVERIFY(d0HasCursor.read().toBool());
QMetaObject::invokeMethod(centerAttached, "move", Q_ARG(qreal, 180), Q_ARG(qreal, 0));
QVERIFY(centerHasCursor.read().toBool());
+
+ QMetaObject::invokeMethod(centerAttached, "move", Q_ARG(qreal, 405), Q_ARG(qreal, 0));
+ QVERIFY(d45HasCursor.read().toBool());
+ QMetaObject::invokeMethod(centerAttached, "move", Q_ARG(qreal, -135), Q_ARG(qreal, 0));
+ QVERIFY(centerHasCursor.read().toBool());
}
void TestCursorNavigation::test_redirects()