Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix web_test pointerevent_coordinates_when_locked on wpt #16265

Merged
merged 1 commit into from Apr 15, 2019

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Apr 4, 2019

The test was failing on WPT[1] because test driver only takes integer
coordinates, but the test was using getBoundingClientRect which
returns float values.

This CL changes the test to set the "origin" for test driver actions
so that there is no need to use getBoundingClientRect.

[1] https://wpt.fyi/results/pointerevents/pointerlock/pointerevent_coordinates_when_locked.html

Change-Id: I56b2c052805b3bc174573564d176d6660accd7cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1553645
Reviewed-by: Lan Wei <lanwei@chromium.org>
Commit-Queue: Ella Ge <eirage@chromium.org>
Cr-Commit-Position: refs/heads/master@{#647877}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already reviewed downstream.

The test was failing on WPT[1] because test driver only takes integer
coordinates, but the test was using getBoundingClientRect which
returns float values.

This CL changes the test to set the "origin" for test driver actions
so that there is no need to use getBoundingClientRect.

[1] https://wpt.fyi/results/pointerevents/pointerlock/pointerevent_coordinates_when_locked.html

Change-Id: I56b2c052805b3bc174573564d176d6660accd7cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1553645
Reviewed-by: Lan Wei <lanwei@chromium.org>
Commit-Queue: Ella Ge <eirage@chromium.org>
Cr-Commit-Position: refs/heads/master@{#647877}
@KyleJu
Copy link
Contributor

KyleJu commented Apr 5, 2019

Following tests failed at Firefox Nightly

/pointerevents/pointerlock/pointerevent_coordinates_when_locked.html

Subtest Results Messages
OK: 3/10, TIMEOUT: 7/10
mouse Test pointerevent coordinates when pointer is locked FAIL: 3/10, TIMEOUT: 7/10 assert_equals: expected 758 but got 408;Test timed out

Unstable results

Test Subtest Results Messages
/pointerevents/pointerlock/pointerevent_coordinates_when_locked.html OK: 3/10, TIMEOUT: 7/10
/pointerevents/pointerlock/pointerevent_coordinates_when_locked.html mouse Test pointerevent coordinates when pointer is locked FAIL: 3/10, TIMEOUT: 7/10 assert_equals: expected 758 but got 408;Test timed out

::: Running tests in a loop 10 times : FAIL

@KyleJu
Copy link
Contributor

KyleJu commented Apr 5, 2019

Note: Already contacted the author

@rakuco
Copy link
Member

rakuco commented Apr 15, 2019

@KyleJu is there a tracking bug? I don't see any follow-up commits to this test in Chromium.

@KyleJu
Copy link
Contributor

KyleJu commented Apr 15, 2019

@KyleJu is there a tracking bug? I don't see any follow-up commits to this test in Chromium.

Oops sorry missed it. Let me address it now

@KyleJu
Copy link
Contributor

KyleJu commented Apr 15, 2019

This PR fixed a syntax error on pointerlock test that was previously failing [https://wpt.fyi/results/?label=master&product=chrome%5Bexperimental%5D&product=edge&product=firefox%5Bexperimental%5D&product=safari%5Bexperimental%5D&aligned&q=pointerevents%2Fpointerlock%2Fpointerevent_coordinates_when_locked]. Doesn't introduce any new flakiness. Admin merge @Hexcles ?

@Hexcles Hexcles merged commit b8fc11e into master Apr 15, 2019
@Hexcles Hexcles deleted the chromium-export-cl-1553645 branch April 15, 2019 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants