Closed Bug 1692025 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 27577 - Fix the Pointerevents IDL WPT test

Categories

(Core :: DOM: Events, task, P4)

task

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 27577 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/27577
Details from upstream follow.

b'Lan Wei <lanwei@chromium.org>' wrote:

Fix the Pointerevents IDL WPT test

Right now, the pointerevents IDL WPT test has errors of calling
"setPointerCapture", "releasePointerCapture" and "hasPointerCapture"
functions on document, because these three functions are defined in
"Element", and "Document" is not a subclass of "Element". That is why we
see the errors, such as "FAIL Element interface: document must inherit
property "setPointerCapture(long)" with the proper type assert_inherits:
property "setPointerCapture" not found in prototype chain".

I fixed it by changing the "document" to "document.body", which is an
element.

Bug: 1163370
Change-Id: I2435466e76fee05235d135e6181a566c898a5855

Reviewed-on: https://chromium-review.googlesource.com/2685361
WPT-Export-Revision: 67d2eb85038c7d7551be09a7aaa4eb61211923ed

Component: web-platform-tests → DOM: Events
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 141 subtests

Status Summary

Firefox

OK : 1
PASS: 130
FAIL: 11

Chrome

OK : 1
PASS: 141

Safari

OK : 1
PASS: 128
FAIL: 13

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/pointerevents/idlharness.window.html
PointerEvent interface: attribute altitudeAngle: FAIL (Chrome: PASS, Safari: FAIL)
PointerEvent interface: attribute azimuthAngle: FAIL (Chrome: PASS, Safari: FAIL)
PointerEvent interface: operation getPredictedEvents(): FAIL (Chrome: PASS, Safari: FAIL)
PointerEvent interface: new PointerEvent("type") must inherit property "altitudeAngle" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
PointerEvent interface: new PointerEvent("type") must inherit property "azimuthAngle" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
PointerEvent interface: new PointerEvent("type") must inherit property "getPredictedEvents()" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
HTMLElement interface: attribute onpointerrawupdate: FAIL (Chrome: PASS, Safari: FAIL)
Window interface: attribute onpointerrawupdate: FAIL (Chrome: PASS, Safari: FAIL)
Window interface: window must inherit property "onpointerrawupdate" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
Document interface: attribute onpointerrawupdate: FAIL (Chrome: PASS, Safari: FAIL)
Document interface: document must inherit property "onpointerrawupdate" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/457c8f06620a [wpt PR 27577] - Fix the Pointerevents IDL WPT test, a=testonly
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3e200a9b2698 [wpt PR 27577] - Fix the Pointerevents IDL WPT test, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.