diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2017-09-26 10:27:20 +0200 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2017-09-26 10:27:20 +0200 |
commit | 78012795b553ba0b5ad0c2977d80d8f16831ae00 (patch) | |
tree | 72bc986d7b32d1de0d6c34fc66c30dab133a8de1 /units/touchscreen | |
parent | 2515d92d9abd6f8fb7d13b6647e9d1f9a9a88061 (diff) |
Import plainbox-provider-checkbox_0.40.0~rc2.orig.tar.gzupstream-0.40.0_rc2patched-0.40.0_rc2-1
Diffstat (limited to 'units/touchscreen')
-rw-r--r-- | units/touchscreen/jobs.pxu | 170 | ||||
-rw-r--r-- | units/touchscreen/manifest.pxu | 4 | ||||
-rw-r--r-- | units/touchscreen/test-plan.pxu | 21 |
3 files changed, 195 insertions, 0 deletions
diff --git a/units/touchscreen/jobs.pxu b/units/touchscreen/jobs.pxu new file mode 100644 index 0000000..51b4a4e --- /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 0000000..733f01e --- /dev/null +++ b/units/touchscreen/manifest.pxu @@ -0,0 +1,4 @@ +unit: manifest entry +id: has_touchscreen +_name: Touchscreen +value-type: bool diff --git a/units/touchscreen/test-plan.pxu b/units/touchscreen/test-plan.pxu new file mode 100644 index 0000000..e984af9 --- /dev/null +++ b/units/touchscreen/test-plan.pxu @@ -0,0 +1,21 @@ +id: touchscreen-cert-full +unit: test plan +_name: Touchscreen tests +_description: Touchscreen tests +include: + touchscreen/drag-n-drop certification-status=blocker + touchscreen/multitouch-zoom certification-status=blocker + touchscreen/multitouch-rotate + touchscreen/3-touch-tap certification-status=blocker + touchscreen/4-touch-tap certification-status=blocker + touchscreen/multitouch-dash certification-status=non-blocker + +id: touchscreen-cert-blockers +unit: test plan +_name: Touchscreen tests (certification blockers only) +_description: Touchscreen tests (certification blockers only) +include: + touchscreen/drag-n-drop certification-status=blocker + touchscreen/multitouch-zoom certification-status=blocker + touchscreen/3-touch-tap certification-status=blocker + touchscreen/4-touch-tap certification-status=blocker |