From 1e2ddf98488bc50be98150023ade8e19fded5425 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sun, 7 Apr 2024 20:46:33 +0200 Subject: [PATCH] LibWeb: Add a test for construction of a PointerEvent --- .../UIEvents/PointerEvent-construction.txt | 40 ++++++++++++++++ .../UIEvents/PointerEvent-construction.html | 48 +++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 Tests/LibWeb/Text/expected/UIEvents/PointerEvent-construction.txt create mode 100644 Tests/LibWeb/Text/input/UIEvents/PointerEvent-construction.html diff --git a/Tests/LibWeb/Text/expected/UIEvents/PointerEvent-construction.txt b/Tests/LibWeb/Text/expected/UIEvents/PointerEvent-construction.txt new file mode 100644 index 00000000000..54d52b54194 --- /dev/null +++ b/Tests/LibWeb/Text/expected/UIEvents/PointerEvent-construction.txt @@ -0,0 +1,40 @@ +Class: PointerEvent +Parent: Function +Type: 'pointerdown' +Bubbles: false +Cancelable: false +Client X: 0 +Client Y: 0 +Pointer ID: 0 +Width: 1 +Height: 1 +Pressure: 0 +Tangential Pressure: 0 +Tilt X: 0 +Tilt Y: 0 +Twist: 0 +Altitude Angle: 1.5707963267948966 +Azimuth Angle: 0 +Pointer Type: '' +Is Primary: false +Is Trusted: false +Class: PointerEvent +Parent: Function +Type: 'pointerdown' +Bubbles: true +Cancelable: true +Client X: 100 +Client Y: 200 +Pointer ID: 0 +Width: 1 +Height: 1 +Pressure: 0 +Tangential Pressure: 0 +Tilt X: 0 +Tilt Y: 0 +Twist: 0 +Altitude Angle: 0 +Azimuth Angle: 0 +Pointer Type: '' +Is Primary: false +Is Trusted: false diff --git a/Tests/LibWeb/Text/input/UIEvents/PointerEvent-construction.html b/Tests/LibWeb/Text/input/UIEvents/PointerEvent-construction.html new file mode 100644 index 00000000000..ff89544f871 --- /dev/null +++ b/Tests/LibWeb/Text/input/UIEvents/PointerEvent-construction.html @@ -0,0 +1,48 @@ + +