# Qtopia/Image Viewer

Before starting these tests, prepare the device to have a set of test images available.
For Troll testers you can upload these images to the device from aurochs/common/qtopia_test_doc/images

## Test cases

### View image

Test Purpose | Verify that images of various types can be viewed

Test Description

1. Click on View > Settings and uncheck Fast load pictures and click OK
2. Click on the Open button and select an image.
3. Verify that the image looks good (you can compare the image by viewing the same file on a desktop PC).
4. Click on View > Settings and check Fast load pictures and click OK
5. Click on the Open button and select an image
6. Verify that the image looks good.
7. If the image is a JPEG image: verify that the image is shown faster than without the option enabled.
8. Repeat the same for test images of type PNG, BMP, XBM, XPM, PNM, JPEG, MNG, GIF and NPD.

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test

### Rotate image

Test Purpose | Verify that an image can be rotated

Test Description

1. Click on View > Settings
2. In the Options tab, uncheck Rotate pictures to fit screen and click OK
3. Click on the Open button and select an image.
4. Click on the Rotate 90 button.
5. Verify that the image is rotated 90 degrees counter clockwise.
6. Click Rotate 90 again.
7. Verify that the image is now shown upside down.
8. Click Rotate 180
9. Verify that the image is shown 'normal' again.

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test

### Flipping an image

Test Purpose | Verify that an image can be 'flipped'

Test Description

1. Click on View > Settings
2. In the Options tab, uncheck Rotate pictures to fit screen and click OK
3. Click on the Open button and select an image.
4. Click on the Image menu and select Horizontal flip
5. Verify that the image has flipped horizontally (e.g. a person looking to the right on the image now looks to the left).
6. Click on the Image menu and select Vertical flip
7. Verify that the image has flipped vertically (e.g. a person standing on the floor suddenly hangs on the ceiling).

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test

### Fullscreen mode

Test Purpose | Verify that an image can be viewed 'Fullscreen'

Test Description

1. Click on the Open button and select an image.
2. Click on the Full Screen button and verify that the image is shown full screen, e.g. there is no title bar, no menu bar, no status bar, just a picture and possibly some black areas on two sides of the image to solve scaling issues.
3. Tap the screen.
4. Verify that the display returns to 'normal' mode, e.g. the title bar, menu bar and status bar are visible again.

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test

### Slide show

Test Purpose | Verify that multiple images can be shown in a 'slide show'

Test Description

1. Click on View > Slide show
2. Verify that all available images are shown one after the other.
3. End the slide show by clicking View > Slide Show again.
4. Click on View > Settings
5. Select the Slideshow tab
6. Drag the slider to adjust the interval time between pictures.
7. Click on Slide Show again.
8. Verify that the show is now proceeding with the new interval.
9. Click on View > Settings and go to the Slideshow tab
10. Drag the slider to the left again.
11. Check the Repeat slideshow checkbox and click OK
12. Start the slideshow again.
13. Verify that the slideshow starts again after the last image is shown.
14. Click on View > Settings and go to the Slideshow tab
15. Uncheck the Repeat slideshow checkbox.
16. Check the Show pictures in reverse checkbox and click OK
17. Verify that after the slideshow is started again pictures are now shown in reverse order.

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test

### Image scaling

Test Purpose | Verify that small pictures can be scaled up

Test Description

1. Click on View > Settings
2. Uncheck Scale up small pictures and click OK
3. Open images until you find a small one ( for instance qt.bmp ).
4. Click on View > Settings
5. Check Scale up small pictures and click OK
6. Open the same image again.
7. Verify that it is shown at a larger scale.

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test

### Navigating

Test Purpose | Verify that you can navigate through the available images.

Test Description

1. Click on the Open button and select an image.
2. Click on the Next button and verify that the next available image is shown.
3. Click on the Previous button and verify that the previous button is shown again.
4. Play with the Next and Previous buttons to navigate through all available images.

Expected TestResult | All the verification steps as described in the Test Description must be met.
Testnorm/Criteria | Exact Match
Test Suitability | Manual test