From 00a273acef3cb084e7a9725c9ecc60c3aa3556da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20H=C3=B6ltt=C3=A4?= Date: Tue, 12 Mar 2019 16:04:36 +0100 Subject: Add test for 360 navigation. Not complete, fails with 360 degrees. --- tests/360Test.qml | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 tests/360Test.qml (limited to 'tests/360Test.qml') diff --git a/tests/360Test.qml b/tests/360Test.qml new file mode 100644 index 0000000..77b3ecf --- /dev/null +++ b/tests/360Test.qml @@ -0,0 +1,62 @@ +import QtQuick 2.0 +import CursorNavigation 1.0 + +Item { + width: 300 + height: 300 + + CNRect { + objectName: "center" + CursorNavigation.objectName: "centerAttached" + x: 140 + y: 140 + } + + CNRect { + objectName: "d0" + x: 270 + y: 140 + } + + CNRect { + objectName: "d45" + x: 270 + y: 270 + } + + CNRect { + objectName: "d90" + x: 140 + y: 270 + } + + CNRect { + objectName: "d135" + x: 10 + y: 270 + } + + CNRect { + objectName: "d180" + x: 10 + y: 140 + } + + CNRect { + objectName: "d225" + x: 10 + y: 10 + } + + CNRect { + objectName: "d270" + x: 140 + y: 10 + } + + CNRect { + objectName: "d315" + x: 270 + y: 10 + } +} -- cgit v1.2.3