commit-queue@webkit.org | d318ebe | 2012-12-07 03:07:24 +0000 | [diff] [blame] | 1 | Test that mouse cursors are applied correctly. |
| 2 | |
| 3 | On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| 4 | |
| 5 | |
| 6 | Bug 99493 |
| 7 | |
| 8 | |
| 9 | Checking cursors with device pixel ratio of 1 |
| 10 | ---------------------------------------------- |
| 11 | TEST CASE: 25x25 image at 1x |
| 12 | Cursor Info: type=Custom hotSpot=0,0 image=25x25 |
| 13 | |
| 14 | TEST CASE: 25x25 image at 2x |
| 15 | Cursor Info: type=Custom hotSpot=0,0 image=25x25 scale=2 |
| 16 | |
| 17 | TEST CASE: 25x25 image at 1x, 30x30 image at 2x |
| 18 | Cursor Info: type=Custom hotSpot=0,0 image=25x25 |
| 19 | |
| 20 | TEST CASE: 25x25 image at 1.5x, 30x30 image at 5x |
| 21 | Cursor Info: type=Custom hotSpot=0,0 image=25x25 scale=1.5 |
| 22 | |
| 23 | TEST CASE: Invalid tiny scale with fallback to pointer |
| 24 | Cursor Info: type=Hand hotSpot=0,0 |
| 25 | |
| 26 | TEST CASE: Over-large image with fallback to pointer |
| 27 | Cursor Info: type=Hand hotSpot=0,0 |
| 28 | |
| 29 | TEST CASE: 200x200 image at 4x (not over-large in UI pixels) |
| 30 | Cursor Info: type=Custom hotSpot=0,0 image=200x200 scale=4 |
| 31 | |
| 32 | TEST CASE: Non-existent image in image-set with fallback to 25x25 image |
| 33 | Cursor Info: type=Custom hotSpot=0,0 image=25x25 |
| 34 | |
| 35 | TEST CASE: Explicit hotspot at (5,3) logical in 1x and 2x |
| 36 | Cursor Info: type=Custom hotSpot=5,3 image=25x25 |
| 37 | |
| 38 | TEST CASE: Explicit hotspot at (7,3) logical in 0.7x and 1.4x - should round to nearest integer |
| 39 | Cursor Info: type=Custom hotSpot=10,4 image=30x30 scale=1.4 |
| 40 | |
| 41 | TEST CASE: Implicit hot-spot at (5,4) physical for 1x and (28,3) physical for 2x |
| 42 | Cursor Info: type=Custom hotSpot=5,4 image=25x25 |
| 43 | |
| 44 | Checking cursors with device pixel ratio of 2 |
| 45 | ---------------------------------------------- |
| 46 | TEST CASE: 25x25 image at 1x |
| 47 | Cursor Info: type=Custom hotSpot=0,0 image=25x25 |
| 48 | |
| 49 | TEST CASE: 25x25 image at 2x |
| 50 | Cursor Info: type=Custom hotSpot=0,0 image=25x25 scale=2 |
| 51 | |
| 52 | TEST CASE: 25x25 image at 1x, 30x30 image at 2x |
| 53 | Cursor Info: type=Custom hotSpot=0,0 image=30x30 scale=2 |
| 54 | |
| 55 | TEST CASE: 25x25 image at 1.5x, 30x30 image at 5x |
| 56 | Cursor Info: type=Custom hotSpot=0,0 image=30x30 scale=5 |
| 57 | |
| 58 | TEST CASE: Invalid tiny scale with fallback to pointer |
| 59 | Cursor Info: type=Hand hotSpot=0,0 |
| 60 | |
| 61 | TEST CASE: Over-large image with fallback to pointer |
| 62 | Cursor Info: type=Hand hotSpot=0,0 |
| 63 | |
| 64 | TEST CASE: 200x200 image at 4x (not over-large in UI pixels) |
| 65 | Cursor Info: type=Custom hotSpot=0,0 image=200x200 scale=4 |
| 66 | |
| 67 | TEST CASE: Non-existent image in image-set with fallback to 25x25 image |
| 68 | Cursor Info: type=Custom hotSpot=0,0 image=25x25 |
| 69 | |
| 70 | TEST CASE: Explicit hotspot at (5,3) logical in 1x and 2x |
| 71 | Cursor Info: type=Custom hotSpot=10,6 image=30x30 scale=2 |
| 72 | |
| 73 | TEST CASE: Explicit hotspot at (7,3) logical in 0.7x and 1.4x - should round to nearest integer |
| 74 | Cursor Info: type=Custom hotSpot=10,4 image=30x30 scale=1.4 |
| 75 | |
| 76 | TEST CASE: Implicit hot-spot at (5,4) physical for 1x and (28,3) physical for 2x |
| 77 | Cursor Info: type=Custom hotSpot=28,3 image=30x30 scale=2 |
| 78 | |
| 79 | PASS successfullyParsed is true |
| 80 | |
| 81 | TEST COMPLETE |
| 82 | |