| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | |
|---|
| 3 | <!-- |
|---|
| 4 | Copyright (c) 2006 Harri Kaimio |
|---|
| 5 | |
|---|
| 6 | This file is part of Photovault. |
|---|
| 7 | |
|---|
| 8 | Photovault is free software; you can redistribute it and/or modify it |
|---|
| 9 | under the terms of the GNU General Public License as published by |
|---|
| 10 | the Free Software Foundation; either version 2 of the License, or |
|---|
| 11 | (at your option) any later version. |
|---|
| 12 | |
|---|
| 13 | Photovault is distributed in the hope that it will be useful, but |
|---|
| 14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 16 | General Public License for more details. |
|---|
| 17 | |
|---|
| 18 | You should have received a copy of the GNU General Public License |
|---|
| 19 | along with Photovault; if not, write to the Free Software Foundation, |
|---|
| 20 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA |
|---|
| 21 | --> |
|---|
| 22 | |
|---|
| 23 | <testcase> |
|---|
| 24 | <id> |
|---|
| 25 | test_crop |
|---|
| 26 | </id> |
|---|
| 27 | <component> |
|---|
| 28 | SWING_UI |
|---|
| 29 | </component> |
|---|
| 30 | <summary> |
|---|
| 31 | Crop image |
|---|
| 32 | </summary> |
|---|
| 33 | <description> |
|---|
| 34 | <![CDATA[ |
|---|
| 35 | 1. Select a photo |
|---|
| 36 | 2. Press the crop button in toolbar |
|---|
| 37 | 3. Crop & rotate the image |
|---|
| 38 | 4. Press enter |
|---|
| 39 | 5. Press crop button again |
|---|
| 40 | 6. Rotate a bit mode, press OK in crop dialog |
|---|
| 41 | 7. Press crop again, crop a bit mode & press Escape |
|---|
| 42 | 8. Press crop again, crop a bit mode & press Cancel in crop dialog |
|---|
| 43 | 9. Rotate the image 90 degrees |
|---|
| 44 | ]]> |
|---|
| 45 | </description> |
|---|
| 46 | <expectedresult> |
|---|
| 47 | <![CDATA[ |
|---|
| 48 | 1. Photo selected |
|---|
| 49 | 2. Photovault enters crop mode, crop dialog shown |
|---|
| 50 | 3. crop rectangle show cropping |
|---|
| 51 | 4. Photo shown as cropped, leaves crop mode |
|---|
| 52 | 5. Enters crop mode |
|---|
| 53 | 6. Leaves crop mode shows new crop in window & thumbnail |
|---|
| 54 | 7. Leaves crop mode with previous crop |
|---|
| 55 | 8. Leaves crop mode with previous crop |
|---|
| 56 | 9. Rotation done correctly |
|---|
| 57 | ]]> |
|---|
| 58 | </expectedresult> |
|---|
| 59 | </testcase> |
|---|