Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit65c1f6c

Browse files
authored
test: update snapshots (#1261)
1 parent543ecb0 commit65c1f6c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎tests/pointer/click.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ test('double click with prevent compatibility', async () => {
6262
awaituser.pointer({keys:'[MouseLeft][MouseLeft]',target:element})
6363

6464
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
6767
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
7070
click - button=0; buttons=0; detail=2
7171
dblclick - button=0; buttons=0; detail=2
7272
`)
@@ -398,8 +398,8 @@ test('preventDefault on pointer down prevents compatibility events works with po
398398
awaituser.pointer({keys:'[MouseLeft]',target:element})
399399

400400
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
403403
click - button=0; buttons=0; detail=1
404404
`)
405405
expect(getEvents('click')).toHaveLength(1)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp