blob: 1d8284c5cd761309751b74f2fc24d40d53e87609 [file] [log] [blame]
Test that mouse cursors are applied correctly.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Bug 99493
Checking cursors with device pixel ratio of 1
----------------------------------------------
TEST CASE: 25x25 image at 1x
Cursor Info: type=Custom hotSpot=0,0 image=25x25
TEST CASE: 25x25 image at 2x
Cursor Info: type=Custom hotSpot=0,0 image=25x25 scale=2
TEST CASE: 25x25 image at 1x, 30x30 image at 2x
Cursor Info: type=Custom hotSpot=0,0 image=25x25
TEST CASE: 25x25 image at 1.5x, 30x30 image at 5x
Cursor Info: type=Custom hotSpot=0,0 image=25x25 scale=1.5
TEST CASE: Invalid tiny scale with fallback to pointer
Cursor Info: type=Hand hotSpot=0,0
TEST CASE: Over-large image with fallback to pointer
Cursor Info: type=Hand hotSpot=0,0
TEST CASE: 200x200 image at 4x (not over-large in UI pixels)
Cursor Info: type=Custom hotSpot=0,0 image=200x200 scale=4
TEST CASE: Non-existent image in image-set with fallback to 25x25 image
Cursor Info: type=Custom hotSpot=0,0 image=25x25
TEST CASE: Explicit hotspot at (5,3) logical in 1x and 2x
Cursor Info: type=Custom hotSpot=5,3 image=25x25
TEST CASE: Explicit hotspot at (7,3) logical in 0.7x and 1.4x - should round to nearest integer
Cursor Info: type=Custom hotSpot=7,3 image=30x30 scale=1.4
TEST CASE: Implicit hot-spot at (5,4) physical for 1x and (28,3) physical for 2x
Cursor Info: type=Custom hotSpot=5,4 image=25x25
Checking cursors with device pixel ratio of 1
----------------------------------------------
TEST CASE: 25x25 image at 1x
Cursor Info: type=Custom hotSpot=0,0 image=25x25
TEST CASE: 25x25 image at 2x
Cursor Info: type=Custom hotSpot=0,0 image=25x25 scale=2
TEST CASE: 25x25 image at 1x, 30x30 image at 2x
Cursor Info: type=Custom hotSpot=0,0 image=25x25
TEST CASE: 25x25 image at 1.5x, 30x30 image at 5x
Cursor Info: type=Custom hotSpot=0,0 image=25x25 scale=1.5
TEST CASE: Invalid tiny scale with fallback to pointer
Cursor Info: type=Hand hotSpot=0,0
TEST CASE: Over-large image with fallback to pointer
Cursor Info: type=Hand hotSpot=0,0
TEST CASE: 200x200 image at 4x (not over-large in UI pixels)
Cursor Info: type=Custom hotSpot=0,0 image=200x200 scale=4
TEST CASE: Non-existent image in image-set with fallback to 25x25 image
Cursor Info: type=Custom hotSpot=0,0 image=25x25
TEST CASE: Explicit hotspot at (5,3) logical in 1x and 2x
Cursor Info: type=Custom hotSpot=5,3 image=25x25
TEST CASE: Explicit hotspot at (7,3) logical in 0.7x and 1.4x - should round to nearest integer
Cursor Info: type=Custom hotSpot=7,3 image=30x30 scale=1.4
TEST CASE: Implicit hot-spot at (5,4) physical for 1x and (28,3) physical for 2x
Cursor Info: type=Custom hotSpot=5,4 image=25x25
PASS successfullyParsed is true
TEST COMPLETE