@@ -62,11 +62,11 @@ test('double click with prevent compatibility', async () => {
62
62
await user . pointer ( { keys : '[MouseLeft][MouseLeft]' , target : element } )
63
63
64
64
expect ( getClickEventsSnapshot ( ) ) . toMatchInlineSnapshot ( `
65
- pointerdown - pointerId=1; pointerType=mouse; isPrimary=true
66
- pointerup - pointerId=1; pointerType=mouse; isPrimary=true
65
+ pointerdown - pointerId=1; pointerType=mouse; isPrimary=true; button=0; buttons=1
66
+ pointerup - pointerId=1; pointerType=mouse; isPrimary=true; button=0; buttons=0
67
67
click - button=0; buttons=0; detail=1
68
- pointerdown - pointerId=1; pointerType=mouse; isPrimary=true
69
- pointerup - pointerId=1; pointerType=mouse; isPrimary=true
68
+ pointerdown - pointerId=1; pointerType=mouse; isPrimary=true; button=0; buttons=1
69
+ pointerup - pointerId=1; pointerType=mouse; isPrimary=true; button=0; buttons=0
70
70
click - button=0; buttons=0; detail=2
71
71
dblclick - button=0; buttons=0; detail=2
72
72
` )
@@ -398,8 +398,8 @@ test('preventDefault on pointer down prevents compatibility events works with po
398
398
await user . pointer ( { keys : '[MouseLeft]' , target : element } )
399
399
400
400
expect ( getClickEventsSnapshot ( ) ) . toMatchInlineSnapshot ( `
401
- pointerdown - pointerId=1; pointerType=mouse; isPrimary=true
402
- pointerup - pointerId=1; pointerType=mouse; isPrimary=true
401
+ pointerdown - pointerId=1; pointerType=mouse; isPrimary=true; button=0; buttons=1
402
+ pointerup - pointerId=1; pointerType=mouse; isPrimary=true; button=0; buttons=0
403
403
click - button=0; buttons=0; detail=1
404
404
` )
405
405
expect ( getEvents ( 'click' ) ) . toHaveLength ( 1 )
0 commit comments