summaryrefslogtreecommitdiff
diff options
-rw-r--r--data/images/palm-rejection-1.jpgbin0 -> 40871 bytes
-rw-r--r--data/images/palm-rejection-2.jpgbin0 -> 42386 bytes
-rw-r--r--data/images/palm-rejection-3.jpgbin0 -> 34382 bytes
-rw-r--r--data/images/palm-rejection-4.jpgbin0 -> 36383 bytes
-rw-r--r--data/images/palm-rejection-5.jpgbin0 -> 34759 bytes
-rw-r--r--data/images/palm-rejection-6.jpgbin0 -> 28342 bytes
-rw-r--r--data/images/palm-rejection-7.jpgbin0 -> 30166 bytes
-rw-r--r--data/palm_rejection.qml93
-rw-r--r--jobs/touchpad.txt.in9
9 files changed, 102 insertions, 0 deletions
diff --git a/data/images/palm-rejection-1.jpg b/data/images/palm-rejection-1.jpg
new file mode 100644
index 0000000..1ab8fab
--- /dev/null
+++ b/data/images/palm-rejection-1.jpg
Binary files differ
diff --git a/data/images/palm-rejection-2.jpg b/data/images/palm-rejection-2.jpg
new file mode 100644
index 0000000..eedfb9c
--- /dev/null
+++ b/data/images/palm-rejection-2.jpg
Binary files differ
diff --git a/data/images/palm-rejection-3.jpg b/data/images/palm-rejection-3.jpg
new file mode 100644
index 0000000..da7c233
--- /dev/null
+++ b/data/images/palm-rejection-3.jpg
Binary files differ
diff --git a/data/images/palm-rejection-4.jpg b/data/images/palm-rejection-4.jpg
new file mode 100644
index 0000000..8d35638
--- /dev/null
+++ b/data/images/palm-rejection-4.jpg
Binary files differ
diff --git a/data/images/palm-rejection-5.jpg b/data/images/palm-rejection-5.jpg
new file mode 100644
index 0000000..12f23d2
--- /dev/null
+++ b/data/images/palm-rejection-5.jpg
Binary files differ
diff --git a/data/images/palm-rejection-6.jpg b/data/images/palm-rejection-6.jpg
new file mode 100644
index 0000000..b36be8b
--- /dev/null
+++ b/data/images/palm-rejection-6.jpg
Binary files differ
diff --git a/data/images/palm-rejection-7.jpg b/data/images/palm-rejection-7.jpg
new file mode 100644
index 0000000..d4ce251
--- /dev/null
+++ b/data/images/palm-rejection-7.jpg
Binary files differ
diff --git a/data/palm_rejection.qml b/data/palm_rejection.qml
new file mode 100644
index 0000000..1c9b974
--- /dev/null
+++ b/data/palm_rejection.qml
@@ -0,0 +1,93 @@
+/*
+ * This file is part of Checkbox.
+ *
+ * Copyright 2016 Canonical Ltd.
+ * Written by:
+ * Maciej Kisielewski <maciej.kisielewski@canonical.com>
+ *
+ * Checkbox is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 3,
+ * as published by the Free Software Foundation.
+ *
+ * Checkbox is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Checkbox. If not, see <http://www.gnu.org/licenses/>.
+ */
+import Ubuntu.Components 1.2
+import QtQuick 2.0
+import QtQuick.Layouts 1.1
+import Plainbox 0.1
+
+QmlJob {
+ property var steps: [
+ ['images/palm-rejection-1.jpg', 2000],
+ ['images/palm-rejection-2.jpg', 500],
+ ['images/palm-rejection-3.jpg', 1000],
+ ['images/palm-rejection-4.jpg', 500],
+ ['images/palm-rejection-5.jpg', 500],
+ ['images/palm-rejection-6.jpg', 1000],
+ ['images/palm-rejection-7.jpg', 1000],
+ ]
+ property var currentStep: 0
+
+ anchors.fill: parent
+
+ ColumnLayout {
+ anchors.fill: parent
+ anchors.margins: units.gu(1)
+ spacing: units.gu(1)
+ Image {
+ source: steps[currentStep][0]
+ fillMode: Image.PreserveAspectFit
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ }
+ Label {
+ text: i18n.tr("The cursor <b>SHOULD NOT</b> move with the palm movement?")
+ fontSize: 'large'
+ horizontalAlignment: Text.AlignHCenter
+ verticalAlignment: Text.AlignVCenter
+ Layout.minimumHeight: units.gu(10)
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ }
+ RowLayout {
+ Layout.minimumHeight: units.gu(10)
+ Layout.fillWidth: true
+ Button {
+ text: i18n.tr('Pass')
+ color: UbuntuColors.green
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ onClicked: testDone({'outcome': 'pass'})
+ }
+ Button {
+ text: i18n.tr('Skip')
+ color: "#FF9900"
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ onClicked: testDone({'outcome': 'skip'})
+ }
+ Button {
+ text: i18n.tr('Fail')
+ color: UbuntuColors.red
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ onClicked: testDone({'outcome': 'fail'})
+ }
+
+ }
+ }
+ Timer {
+ interval: steps[currentStep][1]
+ running: true
+ repeat: true
+ onTriggered: {
+ currentStep = (currentStep + 1) % steps.length;
+ }
+ }
+}
diff --git a/jobs/touchpad.txt.in b/jobs/touchpad.txt.in
index df427bf..9f2e7da 100644
--- a/jobs/touchpad.txt.in
+++ b/jobs/touchpad.txt.in
@@ -234,3 +234,12 @@ _description:
You'll need to keep moving your finger on the touchpad for 10 seconds.
VERIFICATION:
Did the mouse cursor move without interruption?
+
+plugin: qml
+category_id: 2013.com.canonical.plainbox::touchpad
+id: touchpad/palm-rejection
+requires: dmi.product in ['Notebook','Laptop','Portable']
+estimated_duration: 20
+_description:
+ This test checks if touchpad ignores palm touches
+qml_file: palm_rejection.qml