Skip to content

Latest commit

 

History

History
75 lines (48 loc) · 1.78 KB

MANUAL_TEST_CASES.md

File metadata and controls

75 lines (48 loc) · 1.78 KB

Automated test cases

Run on any device, but make sure images from src/androidTest/resources are on the devices's Downloads folder:

  • IMG_5218.JPG, IMG_5219.JPG and IMG_5220.JPG were taken April 19th, 2019
  • IMG_6685.JPG, IMG_6686.JPG and IMG_6687.JPG were taken April 23rd, 2019

After adding images, do a reboot to force a media scan.

(To change the system navigation style: Settings > Accessibility > System controls > System navigation > 3-button navigation)

Manual test cases

This document describes a series of tests to perform manually, as the implementation of automated tests seems overly complicated

Using two-finger movements in emulator

  1. move your mouse to where you want the centre of the pinch zoom. (do NOT press the mouse button)
  2. press SHIFT (do not press the mouse button)
  3. press CTRL (do not press the mouse button)
  4. Press left mouse button
  5. Drag 'n' drop

Test case 1 - Simple sync

Given

  • Compare image activity
  • Pan/zoom sync enabled

When

  1. Zoom lower image
  2. Pan lower image

Then

  • Top image is zoomed accordingly
  • Top image is panned accordingly

Test case 1b - Simple sync with different orientation

  • Run "test case 1" with images "image_landscape.JPG" and "image_portrait.JPG"

Test case 2 - Sync and page

Given

  • Test case 1 executed

When

  1. Page to next image on bottom pager

Then

  • Bottom image has zoom and pan adjusted to that of previous image

Test case 3 - Offset sync

Given

  • Test case 1 executed

When

  1. Disable pan/zoom sync
  2. Pan lower image
  3. Enable pan/zoom sync
  4. Pan lower image

Then

  • In step (2), top image is not moved at all
  • In step (4), top image is panned relative to movement in (4)
    • It would be a bug if the top image snaps to mirror the pan movement in step (2)