Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1009)

Issue 2157133002: Make gpuBenchmarking.smoothDrag or smoothScrollBy scroll properly in pointer event tests (Closed)

Created:
4 years, 5 months ago by lanwei
Modified:
4 years, 3 months ago
Reviewers:
mustaq, Navid Zolghadr
CC:
chromium-reviews, WRONG-USE-chromium, kenneth.christiansen, nzolghadr+blinkwatch_chromium.org, dshwang, eae+blinkwatch, slimming-paint-reviews_chromium.org, extensions-reviews_chromium.org, szager+layoutwatch_chromium.org, jam, darin-cc_chromium.org, jchaffraix+rendering, blink-reviews-paint_chromium.org, blink-reviews, chromium-apps-reviews_chromium.org, mlamouri+watch-content_chromium.org, blink-reviews-w3ctests_chromium.org, zoltan1, Peter Beverloo, blink-reviews-layout_chromium.org, piman+watch_chromium.org, jochen+watch_chromium.org, dtapuska+blinkwatch_chromium.org, mlamouri+watch-test-runner_chromium.org, tfarina, pdr+renderingwatchlist_chromium.org, leviw+renderwatch, dtapuska+chromiumwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make gpuBenchmarking.smoothDrag or smoothScrollBy scroll properly in pointer event tests. On my local machine, all the pointer event tests are passing except some special cases. BUG=627341 Committed: https://crrev.com/2e075b5e0779d239d0d379fa3b6a92cd7db4c183 Cr-Commit-Position: refs/heads/master@{#410276}

Patch Set 1 : pointer tests #

Patch Set 2 : Update TestExpections #

Total comments: 13

Patch Set 3 : pointer tests #

Total comments: 8

Patch Set 4 : pointer tests #

Total comments: 4

Patch Set 5 : Use constant variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -79 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 1 chunk +39 lines, -37 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_change-touch-action-onpointerdown_touch-manual-automation.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js View 1 2 3 4 2 chunks +51 lines, -13 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-button-test_touch-manual-automation.js View 1 2 1 chunk +20 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-inherit_child-auto-child-none_touch-manual-automation.js View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-inherit_child-none_touch-manual-automation.js View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-inherit_child-pan-x-child-pan-x_touch-manual-automation.js View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-pan-x-pan-y-pan-y_touch-manual-automation.js View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-pan-x-pan-y_touch-manual-automation.js View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-pan-y-css_touch-manual-automation.js View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-span-test_touch-manual-automation.js View 1 2 1 chunk +17 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-svg-test_touch-manual-automation.js View 1 2 1 chunk +17 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_touch-action-table-test_touch-manual-automation.js View 1 2 3 4 1 chunk +18 lines, -4 lines 0 comments Download

Messages

Total messages: 69 (58 generated)
lanwei
https://codereview.chromium.org/2157133002/diff/80001/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_lostpointercapture_for_disconnected_node-manual.html File third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_lostpointercapture_for_disconnected_node-manual.html (right): https://codereview.chromium.org/2157133002/diff/80001/third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_lostpointercapture_for_disconnected_node-manual.html#newcode47 third_party/WebKit/LayoutTests/imported/wpt/pointerevents/pointerevent_lostpointercapture_for_disconnected_node-manual.html:47: //setTimeout(function() { I really think we do not need ...
4 years, 5 months ago (2016-07-21 20:12:29 UTC) #15
Navid Zolghadr
https://codereview.chromium.org/2157133002/diff/80001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2157133002/diff/80001/third_party/WebKit/LayoutTests/TestExpectations#newcode895 third_party/WebKit/LayoutTests/TestExpectations:895: crbug.com/619060 [ Linux ] imported/wpt/pointerevents/pointerevent_touch-action-pan-x-pan-y_touch-manual.html [ Pass ] I ...
4 years, 5 months ago (2016-07-21 21:18:15 UTC) #18
lanwei
https://codereview.chromium.org/2157133002/diff/80001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2157133002/diff/80001/third_party/WebKit/LayoutTests/TestExpectations#newcode895 third_party/WebKit/LayoutTests/TestExpectations:895: crbug.com/619060 [ Linux ] imported/wpt/pointerevents/pointerevent_touch-action-pan-x-pan-y_touch-manual.html [ Pass ] On ...
4 years, 4 months ago (2016-07-28 04:48:23 UTC) #35
Navid Zolghadr
https://codereview.chromium.org/2157133002/diff/180001/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js File third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js (right): https://codereview.chromium.org/2157133002/diff/180001/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js#newcode71 third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js:71: if (startY > windowHeight) { Can we use window.innerHeight ...
4 years, 4 months ago (2016-07-29 16:30:39 UTC) #36
lanwei
https://codereview.chromium.org/2157133002/diff/180001/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js File third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js (right): https://codereview.chromium.org/2157133002/diff/180001/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js#newcode71 third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js:71: if (startY > windowHeight) { On 2016/07/29 16:30:39, Navid ...
4 years, 4 months ago (2016-08-03 03:37:39 UTC) #45
Navid Zolghadr
Thanks. lgtm.
4 years, 4 months ago (2016-08-03 14:48:38 UTC) #46
mustaq
LGTM modulo nits on the js util readability... https://codereview.chromium.org/2157133002/diff/220001/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js File third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js (right): https://codereview.chromium.org/2157133002/diff/220001/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js#newcode80 third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js:80: chrome.gpuBenchmarking.smoothDrag(targetRect.left+10, ...
4 years, 4 months ago (2016-08-04 19:08:38 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2157133002/280001
4 years, 4 months ago (2016-08-07 02:53:10 UTC) #64
commit-bot: I haz the power
Committed patchset #5 (id:280001)
4 years, 4 months ago (2016-08-07 02:56:57 UTC) #66
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/2e075b5e0779d239d0d379fa3b6a92cd7db4c183 Cr-Commit-Position: refs/heads/master@{#410276}
4 years, 4 months ago (2016-08-07 02:59:14 UTC) #68
lanwei
4 years, 3 months ago (2016-09-23 15:14:06 UTC) #69
Message was sent while issue was closed.
https://codereview.chromium.org/2157133002/diff/220001/third_party/WebKit/Lay...
File
third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js
(right):

https://codereview.chromium.org/2157133002/diff/220001/third_party/WebKit/Lay...
third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js:80:
chrome.gpuBenchmarking.smoothDrag(targetRect.left+10,
targetRect.top+targetRect.height/2, targetRect.left+10, targetRect.top+10);
On 2016/08/04 19:08:37, mustaq wrote:
> Please replace the 5s and 10s with a single constant whose name should explain
> it. boundaryOffset?

Done.

https://codereview.chromium.org/2157133002/diff/220001/third_party/WebKit/Lay...
third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_common_input.js:90:
chrome.gpuBenchmarking.smoothDrag(targetRect.left+targetRect.width/2,
targetRect.top+10, targetRect.left+10, targetRect.top+10, callback_func);
On 2016/08/04 19:08:37, mustaq wrote:
> Are the scroll amounts arbitrary? I mean not really related to the
height/width
> of the targetRect? If this is the case, please replace the parameters to some
> named constant like touchScrollOffset.

Done.

Powered by Google App Engine
This is Rietveld 408576698