summaryrefslogtreecommitdiff
path: root/units/touchscreen
diff options
Diffstat (limited to 'units/touchscreen')
-rw-r--r--units/touchscreen/jobs.pxu170
-rw-r--r--units/touchscreen/manifest.pxu4
2 files changed, 174 insertions, 0 deletions
diff --git a/units/touchscreen/jobs.pxu b/units/touchscreen/jobs.pxu
new file mode 100644
index 00000000..51b4a4e1
--- /dev/null
+++ b/units/touchscreen/jobs.pxu
@@ -0,0 +1,170 @@
+plugin: shell
+category_id: com.canonical.plainbox::touchscreen
+id: touchscreen/nontouch-automated
+requires:
+ xinput.device_class == 'XITouchClass' and xinput.touch_mode != 'direct'
+command: true
+estimated_duration: 1.2
+_description:
+ Determine whether the screen is detected as a non-touch device automatically.
+
+plugin: shell
+category_id: com.canonical.plainbox::touchscreen
+id: touchscreen/multitouch-automated
+requires:
+ xinput.device_class == 'XITouchClass' and xinput.touch_mode == 'direct'
+command: true
+estimated_duration: 1.2
+_description:
+ Determine whether the screen is detected as a multitouch device automatically.
+
+plugin: manual
+category_id: com.canonical.plainbox::touchscreen
+id: touchscreen/multitouch-manual
+depends: touchscreen/nontouch-automated
+estimated_duration: 120.0
+_description:
+ PURPOSE:
+ Touchscreen capability manual detection.
+ STEPS:
+ 1. Look at the specifications for your system.
+ VERIFICATION:
+ Your screen was detected as a non touch screen. Select PASS if this is correct.
+
+plugin: manual
+category_id: com.canonical.plainbox::touchscreen
+id: touchscreen/tap-detect
+imports: from com.canonical.plainbox import manifest
+requires: manifest.has_touchscreen == 'True'
+estimated_duration: 120.0
+_description:
+ PURPOSE:
+ Check touchscreen tap recognition
+ STEPS:
+ 1. Tap an object on the screen with finger. The cursor should jump to location tapped and object should highlight
+ VERIFICATION:
+ Does tap recognition work?
+
+plugin: manual
+category_id: com.canonical.plainbox::touchscreen
+id: touchscreen/drag-n-drop
+imports: from com.canonical.plainbox import manifest
+requires: manifest.has_touchscreen == 'True'
+estimated_duration: 120.0
+_description:
+ PURPOSE:
+ Check touchscreen drag & drop
+ STEPS:
+ 1. Tap and hold an object on the desktop
+ 2. Drag and drop the object in a different location
+ VERIFICATION:
+ Does drag and drop work?
+
+plugin: user-interact-verify
+category_id: com.canonical.plainbox::touchscreen
+id: touchscreen/multitouch-zoom
+_summary: Check touchscreen pinch gesture for zoom
+imports: from com.canonical.plainbox import manifest
+requires: manifest.has_touchscreen == 'True'
+command: qmlscene -qt5 $PLAINBOX_PROVIDER_DATA/touch_zoom_test.qml 2>&1 |grep -o PASS
+estimated_duration: 120.0
+_description:
+ PURPOSE:
+ Check touchscreen pinch gesture for zoom
+ STEPS:
+ 1. Commence the test
+ 2. Using 2 fingers, resize the blue square until it turns green, then release it.
+ VERIFICATION:
+ Did the blue square change size following the gesture?
+
+plugin: user-interact-verify
+category_id: com.canonical.plainbox::touchscreen
+id: touchscreen/multitouch-rotate
+_summary: Check touchscreen pinch gesture for rotate
+imports: from com.canonical.plainbox import manifest
+requires: manifest.has_touchscreen == 'True'
+command: qmlscene -qt5 $PLAINBOX_PROVIDER_DATA/touch_rotate_test.qml 2>&1 |grep -o PASS
+estimated_duration: 120.0
+_description:
+ PURPOSE:
+ Check touchscreen pinch gesture for rotate
+ STEPS:
+ 1. Commence the test
+ 2. Using 2 fingers, rotate the blue square until it turns green, then release it.
+ VERIFICATION:
+ Did the blue square rotate following the gesture?
+
+plugin: manual
+category_id: com.canonical.plainbox::touchscreen
+id: touchscreen/multitouch-window-move
+imports: from com.canonical.plainbox import manifest
+requires: manifest.has_touchscreen == 'True'
+estimated_duration: 120.0
+_description:
+ PURPOSE:
+ Validate that 3-touch drag is operating as expected
+ STEPS:
+ 1. Open a windows and bring it to the foreground
+ 2. 3-touch the window and drag
+ VERIFICATION:
+ Did the window move along with the drag?
+
+plugin: manual
+category_id: com.canonical.plainbox::touchscreen
+id: touchscreen/multitouch-dash
+imports: from com.canonical.plainbox import manifest
+requires: manifest.has_touchscreen == 'True'
+estimated_duration: 120.0
+_description:
+ PURPOSE:
+ Validate that 4-touch tap is operating as expected
+ STEPS:
+ 1. 4-touch tap anywhere on the touchscreen
+ VERIFICATION:
+ Did the tap open the Dash?
+
+plugin: user-interact-verify
+category_id: com.canonical.plainbox::touchscreen
+id: touchscreen/3-touch-tap
+imports: from com.canonical.plainbox import manifest
+requires: manifest.has_touchscreen == 'True'
+estimated_duration: 15.0
+_description:
+ PURPOSE:
+ Validate that 3-touch tap is operating as expected
+ STEPS:
+ 1. Commence the test
+ 2. Tap the screen within the test area with 3 fingers simultaneously.
+ 3. Once 3 fingers are on the screen you should see the indicator they are recognized.
+ VERIFICATION:
+ Did you see the green circles around the three fingers?
+command:
+ manage_compiz_plugin unityshell disable
+ qmlscene -qt5 $PLAINBOX_PROVIDER_DATA/touch_tap_test.qml --touchpoints=3 2>&1 | grep -o PASS
+ EXIT=$?
+ sleep 5
+ manage_compiz_plugin unityshell enable
+ exit $EXIT
+
+plugin: user-interact-verify
+category_id: com.canonical.plainbox::touchscreen
+id: touchscreen/4-touch-tap
+imports: from com.canonical.plainbox import manifest
+requires: manifest.has_touchscreen == 'True'
+estimated_duration: 15.0
+_description:
+ PURPOSE:
+ Validate that 4-touch tap is operating as expected
+ STEPS:
+ 1. Commence the test
+ 2. Tap the screen within the test area with 4 fingers simultaneously.
+ 3. Once 4 fingers are on the screen you should see the indicator they are recognized.
+ VERIFICATION:
+ Did you see the green circles around the four fingers?
+command:
+ manage_compiz_plugin unityshell disable
+ qmlscene -qt5 $PLAINBOX_PROVIDER_DATA/touch_tap_test.qml --touchpoints=4 2>&1 | grep -o PASS
+ EXIT=$?
+ sleep 5
+ manage_compiz_plugin unityshell enable
+ exit $EXIT
diff --git a/units/touchscreen/manifest.pxu b/units/touchscreen/manifest.pxu
new file mode 100644
index 00000000..733f01e2
--- /dev/null
+++ b/units/touchscreen/manifest.pxu
@@ -0,0 +1,4 @@
+unit: manifest entry
+id: has_touchscreen
+_name: Touchscreen
+value-type: bool