aboutsummaryrefslogtreecommitdiffstats
path: root/tests/360Test.qml
diff options
context:
space:
mode:
authorAntti Hölttä <AHoelttae@luxoft.com>2019-03-12 16:04:36 +0100
committerAntti Hölttä <AHoelttae@luxoft.com>2019-03-18 16:43:04 +0100
commit00a273acef3cb084e7a9725c9ecc60c3aa3556da (patch)
treee363a51689e72510ef3d6d45de178d8bc4c43b99 /tests/360Test.qml
parent3b2cbd9016158a6511bd2f9699d095dd60c8fc66 (diff)
Add test for 360 navigation. Not complete, fails with 360 degrees.
Diffstat (limited to 'tests/360Test.qml')
-rw-r--r--tests/360Test.qml62
1 files changed, 62 insertions, 0 deletions
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
+ }
+}