script: add PointerEvent (#34437)

* Add PointerEvent webIDL

Signed-off-by: Wu Yuwei <yuweiwu@pm.me>

* Implement all new methods

Signed-off-by: Wu Yuwei <yuweiwu@pm.me>

* Cleanup warnings

Signed-off-by: Wu Yuwei <yuweiwu@pm.me>

* Update wpt meta

Signed-off-by: Wu Yuwei <yuweiwu@pm.me>

* Update interface list

Signed-off-by: Wu Yuwei <yuweiwu@pm.me>

* Update manifest

Signed-off-by: Wu Yuwei <yuweiwu@pm.me>

* Update doc links

Signed-off-by: Wu Wayne <yuweiwu@pm.me>

---------

Signed-off-by: Wu Yuwei <yuweiwu@pm.me>
Signed-off-by: Wu Wayne <yuweiwu@pm.me>
This commit is contained in:
Ngo Iok Ui (Wu Yu Wei) 2024-12-02 20:53:29 +09:00 committed by GitHub
parent 9457a40ca2
commit e061a59f03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 993 additions and 7 deletions

View file

@ -203,6 +203,8 @@ skip: true
skip: false
[permissions]
skip: false
[pointerevents]
skip: false
[quirks]
skip: false
[referrer-policy]

View file

@ -0,0 +1,12 @@
[pointerevent_touch-action-verification.html]
[explicit-pinch-zoom]
expected: FAIL
[explicit-pinch-zoom-pan-x-pan-up]
expected: FAIL
[explicit-pinch-zoom-pan-x-pan-y]
expected: FAIL
[explicit-invalid-14]
expected: FAIL

View file

@ -0,0 +1,204 @@
[idlharness.https.window.html]
[PointerEvent interface: attribute persistentDeviceId]
expected: FAIL
[PointerEvent interface: new PointerEvent("type") must inherit property "persistentDeviceId" with the proper type]
expected: FAIL
[HTMLElement interface: attribute onpointerover]
expected: FAIL
[HTMLElement interface: attribute onpointerenter]
expected: FAIL
[HTMLElement interface: attribute onpointerdown]
expected: FAIL
[HTMLElement interface: attribute onpointermove]
expected: FAIL
[HTMLElement interface: attribute onpointerrawupdate]
expected: FAIL
[HTMLElement interface: attribute onpointerup]
expected: FAIL
[HTMLElement interface: attribute onpointercancel]
expected: FAIL
[HTMLElement interface: attribute onpointerout]
expected: FAIL
[HTMLElement interface: attribute onpointerleave]
expected: FAIL
[HTMLElement interface: attribute ongotpointercapture]
expected: FAIL
[HTMLElement interface: attribute onlostpointercapture]
expected: FAIL
[Window interface: attribute onpointerover]
expected: FAIL
[Window interface: attribute onpointerenter]
expected: FAIL
[Window interface: attribute onpointerdown]
expected: FAIL
[Window interface: attribute onpointermove]
expected: FAIL
[Window interface: attribute onpointerrawupdate]
expected: FAIL
[Window interface: attribute onpointerup]
expected: FAIL
[Window interface: attribute onpointercancel]
expected: FAIL
[Window interface: attribute onpointerout]
expected: FAIL
[Window interface: attribute onpointerleave]
expected: FAIL
[Window interface: attribute ongotpointercapture]
expected: FAIL
[Window interface: attribute onlostpointercapture]
expected: FAIL
[Window interface: window must inherit property "onpointerover" with the proper type]
expected: FAIL
[Window interface: window must inherit property "onpointerenter" with the proper type]
expected: FAIL
[Window interface: window must inherit property "onpointerdown" with the proper type]
expected: FAIL
[Window interface: window must inherit property "onpointermove" with the proper type]
expected: FAIL
[Window interface: window must inherit property "onpointerrawupdate" with the proper type]
expected: FAIL
[Window interface: window must inherit property "onpointerup" with the proper type]
expected: FAIL
[Window interface: window must inherit property "onpointercancel" with the proper type]
expected: FAIL
[Window interface: window must inherit property "onpointerout" with the proper type]
expected: FAIL
[Window interface: window must inherit property "onpointerleave" with the proper type]
expected: FAIL
[Window interface: window must inherit property "ongotpointercapture" with the proper type]
expected: FAIL
[Window interface: window must inherit property "onlostpointercapture" with the proper type]
expected: FAIL
[Navigator interface: attribute maxTouchPoints]
expected: FAIL
[Navigator interface: navigator must inherit property "maxTouchPoints" with the proper type]
expected: FAIL
[Document interface: attribute onpointerover]
expected: FAIL
[Document interface: attribute onpointerenter]
expected: FAIL
[Document interface: attribute onpointerdown]
expected: FAIL
[Document interface: attribute onpointermove]
expected: FAIL
[Document interface: attribute onpointerrawupdate]
expected: FAIL
[Document interface: attribute onpointerup]
expected: FAIL
[Document interface: attribute onpointercancel]
expected: FAIL
[Document interface: attribute onpointerout]
expected: FAIL
[Document interface: attribute onpointerleave]
expected: FAIL
[Document interface: attribute ongotpointercapture]
expected: FAIL
[Document interface: attribute onlostpointercapture]
expected: FAIL
[Document interface: document must inherit property "onpointerover" with the proper type]
expected: FAIL
[Document interface: document must inherit property "onpointerenter" with the proper type]
expected: FAIL
[Document interface: document must inherit property "onpointerdown" with the proper type]
expected: FAIL
[Document interface: document must inherit property "onpointermove" with the proper type]
expected: FAIL
[Document interface: document must inherit property "onpointerrawupdate" with the proper type]
expected: FAIL
[Document interface: document must inherit property "onpointerup" with the proper type]
expected: FAIL
[Document interface: document must inherit property "onpointercancel" with the proper type]
expected: FAIL
[Document interface: document must inherit property "onpointerout" with the proper type]
expected: FAIL
[Document interface: document must inherit property "onpointerleave" with the proper type]
expected: FAIL
[Document interface: document must inherit property "ongotpointercapture" with the proper type]
expected: FAIL
[Document interface: document must inherit property "onlostpointercapture" with the proper type]
expected: FAIL
[Element interface: operation setPointerCapture(long)]
expected: FAIL
[Element interface: operation releasePointerCapture(long)]
expected: FAIL
[Element interface: operation hasPointerCapture(long)]
expected: FAIL
[Element interface: document.body must inherit property "setPointerCapture(long)" with the proper type]
expected: FAIL
[Element interface: calling setPointerCapture(long) on document.body with too few arguments must throw TypeError]
expected: FAIL
[Element interface: document.body must inherit property "releasePointerCapture(long)" with the proper type]
expected: FAIL
[Element interface: calling releasePointerCapture(long) on document.body with too few arguments must throw TypeError]
expected: FAIL
[Element interface: document.body must inherit property "hasPointerCapture(long)" with the proper type]
expected: FAIL
[Element interface: calling hasPointerCapture(long) on document.body with too few arguments must throw TypeError]
expected: FAIL

View file

@ -0,0 +1,6 @@
[inheritance.html]
[Property touch-action has initial value auto]
expected: FAIL
[Property touch-action does not inherit]
expected: FAIL

View file

@ -0,0 +1,18 @@
[touch-action-computed.html]
[Property touch-action value 'auto']
expected: FAIL
[Property touch-action value 'none']
expected: FAIL
[Property touch-action value 'manipulation']
expected: FAIL
[Property touch-action value 'pan-x']
expected: FAIL
[Property touch-action value 'pan-y']
expected: FAIL
[Property touch-action value 'pan-x pan-y']
expected: FAIL

View file

@ -0,0 +1,18 @@
[touch-action-valid.html]
[e.style['touch-action'\] = "auto" should set the property value]
expected: FAIL
[e.style['touch-action'\] = "none" should set the property value]
expected: FAIL
[e.style['touch-action'\] = "manipulation" should set the property value]
expected: FAIL
[e.style['touch-action'\] = "pan-x" should set the property value]
expected: FAIL
[e.style['touch-action'\] = "pan-y" should set the property value]
expected: FAIL
[e.style['touch-action'\] = "pan-y pan-x" should set the property value]
expected: FAIL

View file

@ -0,0 +1,6 @@
[pointer-event-has-persistentdeviceid-from-pointer-event-init.tentative.html]
[PointerEvent.persistentDeviceId via PointerEventInit]
expected: FAIL
[No persistentDeviceId in PointerEventInit]
expected: FAIL

View file

@ -0,0 +1,3 @@
[pointerevent_constructor.html]
[getCoalescedEvents in event]
expected: FAIL

View file

@ -0,0 +1,91 @@
[pointerevent_on_event_handlers.html]
expected: TIMEOUT
[The default value of onpointerdown is always null]
expected: FAIL
[The onpointerdown content attribute must be compiled into the onpointerdown property]
expected: FAIL
[dispatching a pointerdown event must trigger element.onpointerdown]
expected: NOTRUN
[The default value of onpointerup is always null]
expected: FAIL
[The onpointerup content attribute must be compiled into the onpointerup property]
expected: FAIL
[dispatching a pointerup event must trigger element.onpointerup]
expected: NOTRUN
[The default value of onpointercancel is always null]
expected: FAIL
[The onpointercancel content attribute must be compiled into the onpointercancel property]
expected: FAIL
[dispatching a pointercancel event must trigger element.onpointercancel]
expected: NOTRUN
[The default value of onpointermove is always null]
expected: FAIL
[The onpointermove content attribute must be compiled into the onpointermove property]
expected: FAIL
[dispatching a pointermove event must trigger element.onpointermove]
expected: NOTRUN
[The default value of onpointerover is always null]
expected: FAIL
[The onpointerover content attribute must be compiled into the onpointerover property]
expected: FAIL
[dispatching a pointerover event must trigger element.onpointerover]
expected: NOTRUN
[The default value of onpointerout is always null]
expected: FAIL
[The onpointerout content attribute must be compiled into the onpointerout property]
expected: FAIL
[dispatching a pointerout event must trigger element.onpointerout]
expected: NOTRUN
[The default value of onpointerenter is always null]
expected: FAIL
[The onpointerenter content attribute must be compiled into the onpointerenter property]
expected: FAIL
[dispatching a pointerenter event must trigger element.onpointerenter]
expected: NOTRUN
[The default value of onpointerleave is always null]
expected: FAIL
[The onpointerleave content attribute must be compiled into the onpointerleave property]
expected: FAIL
[dispatching a pointerleave event must trigger element.onpointerleave]
expected: NOTRUN
[The default value of ongotpointercapture is always null]
expected: FAIL
[The ongotpointercapture content attribute must be compiled into the ongotpointercapture property]
expected: FAIL
[dispatching a gotpointercapture event must trigger element.ongotpointercapture]
expected: NOTRUN
[The default value of onlostpointercapture is always null]
expected: FAIL
[The onlostpointercapture content attribute must be compiled into the onlostpointercapture property]
expected: FAIL
[dispatching a lostpointercapture event must trigger element.onlostpointercapture]
expected: NOTRUN

View file

@ -0,0 +1,57 @@
[pointerevent_tiltX_tiltY_to_azimuth_altitude.html]
[tiltX,tiltY to azimuth/altitude when tiltX=0 and tiltY=0]
expected: FAIL
[tiltX,tiltY to azimuth/altitude when tiltX=0 and tiltY=90]
expected: FAIL
[tiltX,tiltY to azimuth/altitude when tiltX=0 and tiltY=-90]
expected: FAIL
[tiltX,tiltY to azimuth/altitude when tiltX=-90 and tiltY=0]
expected: FAIL
[tiltX,tiltY to azimuth/altitude when tiltX=0 and tiltY=45]
expected: FAIL
[tiltX,tiltY to azimuth/altitude when tiltX=0 and tiltY=-45]
expected: FAIL
[tiltX,tiltY to azimuth/altitude when tiltX=45 and tiltY=0]
expected: FAIL
[tiltX,tiltY to azimuth/altitude when tiltX=-45 and tiltY=0]
expected: FAIL
[tiltX/tiltY to azimuth/altitude when tiltX/tiltY are not populated]
expected: FAIL
[azimuth/altitude to tiltX/tiltY when azimuth=0 and altitude=0]
expected: FAIL
[azimuth/altitude to tiltX/tiltY when azimuth=0 and altitude=0.7853981633974483]
expected: FAIL
[azimuth/altitude to tiltX/tiltY when azimuth=1.5707963267948966 and altitude=0]
expected: FAIL
[azimuth/altitude to tiltX/tiltY when azimuth=1.5707963267948966 and altitude=0.7853981633974483]
expected: FAIL
[azimuth/altitude to tiltX/tiltY when azimuth=3.141592653589793 and altitude=0]
expected: FAIL
[azimuth/altitude to tiltX/tiltY when azimuth=3.141592653589793 and altitude=0.7853981633974483]
expected: FAIL
[azimuth/altitude to tiltX/tiltY when azimuth=4.71238898038469 and altitude=0]
expected: FAIL
[azimuth/altitude to tiltX/tiltY when azimuth=4.71238898038469 and altitude=0.7853981633974483]
expected: FAIL
[If only one of the values (tiltX, tiltY) or (azimuthAngle, altitudeAngle) is available the other one is set to the default value]
expected: FAIL
[If one of the values in both sets is provided, the other value in the set is initialized with the default value]
expected: FAIL

View file

@ -0,0 +1,9 @@
[pointerevent_touch-action-illegal.html]
['pan-x none' is corrected properly]
expected: FAIL
['pan-y none' is corrected properly]
expected: FAIL
['auto none' is corrected properly]
expected: FAIL

View file

@ -0,0 +1,111 @@
[pointerevent_touch-action-verification.html]
[default]
expected: FAIL
[stylesheet-none]
expected: FAIL
[explicit-auto]
expected: FAIL
[explicit-pan-x]
expected: FAIL
[explicit-pan-left]
expected: FAIL
[explicit-pan-right]
expected: FAIL
[explicit-pan-y]
expected: FAIL
[explicit-pan-up]
expected: FAIL
[explicit-pan-down]
expected: FAIL
[explicit-pan-x-pan-y]
expected: FAIL
[explicit-pan-y-pan-x]
expected: FAIL
[explicit-pan-left-pan-up]
expected: FAIL
[explicit-pan-left-pan-down]
expected: FAIL
[explicit-pan-right-pan-up]
expected: FAIL
[explicit-pan-right-pan-down]
expected: FAIL
[explicit-pan-up-pan-left]
expected: FAIL
[explicit-pan-up-pan-right]
expected: FAIL
[explicit-pan-down-pan-left]
expected: FAIL
[explicit-pan-down-pan-right]
expected: FAIL
[explicit-manipulation]
expected: FAIL
[explicit-none]
expected: FAIL
[explicit-invalid-1]
expected: FAIL
[explicit-invalid-2]
expected: FAIL
[explicit-invalid-3]
expected: FAIL
[explicit-invalid-4]
expected: FAIL
[explicit-invalid-5]
expected: FAIL
[explicit-invalid-6]
expected: FAIL
[explicit-invalid-7]
expected: FAIL
[explicit-invalid-8]
expected: FAIL
[explicit-invalid-9]
expected: FAIL
[explicit-invalid-10]
expected: FAIL
[explicit-invalid-11]
expected: FAIL
[explicit-invalid-12]
expected: FAIL
[explicit-invalid-13]
expected: FAIL
[not-inherited]
expected: FAIL
[inherit]
expected: FAIL
[initial]
expected: FAIL

View file

@ -13495,7 +13495,7 @@
]
],
"interfaces.https.html": [
"dc853b1a823990fa2d1478533dc5bd17fb576a13",
"a70a25f44ce0c5aff0eac067afba5ac2d79141d6",
[
null,
{}

View file

@ -226,6 +226,7 @@ test_interfaces([
"PerformanceResourceTiming",
"Plugin",
"PluginArray",
"PointerEvent",
"PopStateEvent",
"ProcessingInstruction",
"ProgressEvent",