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