# Qtopia/Text edit

## Test cases

### New File

Test Purpose | Verify that a new file can be created

Test Description

1. Click the New file button
2. Verify that an empty file is display with the name "Unnamed"
3. Enter some text eg: "1234 test"
4. Click the Properties button.
5. Enter an unique file name in the "Name" field and click OK
6. Click on the File Open button and verify that the new created file is in the list.

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

### Edit File

Test Purpose | Verify that an existing file can be edited

Test Description

1. Select an existing file from the list of files
2. Edit the text in the file and click OK button
3. Reopen the file and verify that the changes made have been saved
4. Edit the file again and click the Close button.
5. Reopen the file and verify that the changes made were not saved

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

### Find text

Test Purpose | Verify that you can search for text in a file

Test Description

1. Select a existing file from the list of files
2. Click Find button
3. Enter a string in the topmost edit field that occurs somewhere in the text
4. Verify that the first occurence is now displayed in highlighted font
5. Click the Find next Button and verify that the second occurence is now displayed in highlighted font
6. Repeat clicking the Find next button until all occurences are shown.
7. Verify that after the last successfull search the status bar at the bottom says: "Find: reached end".
8. Repeat the test with several strings (long and short) until you are convinced that the search option works.

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

### Copy and Paste

Test Purpose | Verify that text can be copied to another location or another file

Test Description

1. Select a existing file from the list of files
2. Select a word or a line of text in the file by dragging the stylus across from left to right
3. Click the Copy button
4. Verify that the Paste button gets enabled.
5. Tap the stylus on another line in the file and click the Paste button.
6. Verify that the copied text is inserted at the selected position.
7. Click Paste again and verify that the copied text is inserted once more, directly after the previous paste.
8. Open another text file.
9. Tap the stylus somewhere in the text and click Paste
10. Verify that the selected text is also pasted in the newly opened document.

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

### Cut and Paste

Test Purpose | Verify that text can be cut and pasted at a new location

Test Description

1. Select a existing file from the list of files
2. Select a word or a line of text in the file by dragging the stylus across from left to right
3. Click the Cut button
4. Verify that the Paste button gets enabled.
5. Verify that the selected text is removed.
6. Tap the stylus on another line in the file and click the Paste button.
7. Verify that the cut text is inserted at the selected position.
8. Open another text file.
9. Tap the stylus somewhere in the text and click Paste
10. Verify that the selected text is also pasted in the newly opened document.

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

### Line wrapping

Test Purpose | Verify that text on a line can be wrapped.

Test Description

1. Create a new document.
2. Check Wrap lines in the View menu.
3. Enter text until text appears on the second line.
4. Uncheck Wrap lines from the View menu.
5. Verify that the second line disappears, and it's contents are placed back on the first line.
6. Verify that a scroll bar is shown at the bottom to enable you to see all text.
7. Check Wrap lines again in the View menu.
8. Verify that the scroll bar dissappears again and the text is wrapped over two lines.
9. Enter a "carriage return" and enter a long string of "rrrrrrrrrrrr" that fills more that the screen width.
10. Verify that a scroll bar appears at the bottom and the line is not wrapped.

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

### Variable level zoom

Test Purpose | Verify that the zoom level can be adjusted

Test Description

1. Open a text document.
2. Select Zoom in from the View menu.
3. Verify that the text will appear slightly larger.
4. Repeatedly select Zoom in from the View menu and verify that each time the text increases in size.
5. Verify that maximum 5 times can be zoomed.
6. Verify that after 5 attempts the Zoom in menu option is disabled.
7. Select Zoom out from the View menu.
8. Verify that the Zoom in menu option is enabled again.
9. Verify that the text appears slightly smaller.
10. Repeatedly select Zoom out and verify that each time the text is decreased in size.
11. Verify that the text can be zoomed out maximally 5 times.
12. Verify that after the 5th attempt the Zoom out menu option is disabled.

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

### Fixed width font

Test Purpose | Verify that the used font can be changed to a fixed with font.

Test Description

1. Open a text file.
2. Check the Fixed-width menu option from the View menu.
3. Verify that the text is now shown with a fixed width font.
4. Uncheck the Fixed-width menu option from the View menu.
5. Verify that the text is shown again with the font as selected in the Appearance settings.

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