Closed Bug 1791324 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 35944 - Update mouseMoveToCenter to pass integers to pointerMove

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Andrew Williams <awillia@google.com> wrote:

Update mouseMoveToCenter to pass integers to pointerMove

On wpt.fyi the newly automated drag and drop WPTs currently fail
with errors like:

Expected 'x' ([object Number] 71.5) to be an Integer

Ex:

https://wpt.fyi/results/html/editing/dnd/images/006.html?label=master&label=experimental&aligned&view=subtest

This CL updates the mouseMoveToCenter drag and drop helper
function to ensure that the x and y coordinates passed to
the Actions API pointerMove function are always integers.
I also submitted a PR to update the docs so that they
mention this requirement:

https://github.com/web-platform-tests/wpt/pull/35942

Bug: 1302171
Change-Id: I91ec54fa778774ac25feb47454259769f2742514

Reviewed-on: https://chromium-review.googlesource.com/3903489
WPT-Export-Revision: ad96331ff9516ddb80e9ae1ac520a500a70e2adf

PR 35944 applied with additional changes from upstream: c1aae6214c7d9237d09089f90317a30d7b5e7fbc
Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 21 tests and 1 subtests

Status Summary

Firefox

TIMEOUT: 10[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-isolated-process-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-32-2004-qr-debug, Gecko-windows10-32-2004-qr-opt, Gecko-windows10-64-2004-qr-debug, Gecko-windows10-64-2004-qr-opt] 42[GitHub]

Chrome

TIMEOUT: 42

Safari

ERROR : 21

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/812e8f9f1688
[wpt PR 35944] - Update mouseMoveToCenter to pass integers to pointerMove, a=testonly
https://hg.mozilla.org/integration/autoland/rev/335a9ebdea1a
[wpt PR 35944] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
You need to log in before you can comment on or make changes to this bug.