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

Issue 2421433003: Add ScrollPageToElement to action_runner. (Closed)

Created:
4 years, 2 months ago by rnephew (Reviews Here)
Modified:
4 years, 2 months ago
CC:
catapult-reviews_chromium.org, telemetry-reviews_chromium.org, alexandermont
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Add ScrollPageToElement to action_runner. This adds the ability scroll an element into view on the page. BUG=chromium:651909 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/f506b6809e993f7415cc069e9cbcfa587e985aa4

Patch Set 1 #

Total comments: 13

Patch Set 2 : Add Unittest #

Patch Set 3 : Add ScrollPageToElement to action_runner. #

Patch Set 4 : scroll element to center instead of top #

Total comments: 38

Patch Set 5 : Add ScrollPageToElement to action_runner. #

Total comments: 2

Patch Set 6 : Add ScrollPageToElement to action_runner. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -0 lines) Patch
M telemetry/telemetry/internal/actions/action_runner.py View 1 2 3 4 5 2 chunks +16 lines, -0 lines 0 comments Download
M telemetry/telemetry/internal/actions/action_runner_unittest.py View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
A telemetry/telemetry/internal/actions/scroll_to_element.py View 1 2 3 4 1 chunk +65 lines, -0 lines 0 comments Download
M telemetry/telemetry/internal/testing/page_with_swipeables.html View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (6 generated)
rnephew (Reviews Here)
4 years, 2 months ago (2016-10-13 17:32:59 UTC) #2
nednguyen
Charlie: can you take the first pass of reviewing?
4 years, 2 months ago (2016-10-13 17:50:25 UTC) #4
rnephew (Reviews Here)
On 2016/10/13 17:50:25, nednguyen wrote: > Charlie: can you take the first pass of reviewing? ...
4 years, 2 months ago (2016-10-13 17:52:28 UTC) #5
rnephew (Reviews Here)
> Also side note: I am still working on unit tests for this. Test added.
4 years, 2 months ago (2016-10-13 18:28:36 UTC) #6
charliea (OOO until 10-5)
https://codereview.chromium.org/2421433003/diff/1/telemetry/telemetry/internal/actions/action_runner.py File telemetry/telemetry/internal/actions/action_runner.py (right): https://codereview.chromium.org/2421433003/diff/1/telemetry/telemetry/internal/actions/action_runner.py#newcode396 telemetry/telemetry/internal/actions/action_runner.py:396: def ScrollPageToElement(self, element): I think it's weird that this ...
4 years, 2 months ago (2016-10-13 18:44:54 UTC) #7
rnephew (Reviews Here)
https://codereview.chromium.org/2421433003/diff/1/telemetry/telemetry/internal/actions/action_runner.py File telemetry/telemetry/internal/actions/action_runner.py (right): https://codereview.chromium.org/2421433003/diff/1/telemetry/telemetry/internal/actions/action_runner.py#newcode396 telemetry/telemetry/internal/actions/action_runner.py:396: def ScrollPageToElement(self, element): On 2016/10/13 18:44:53, charliea wrote: > ...
4 years, 2 months ago (2016-10-13 22:19:06 UTC) #8
rnephew (Reviews Here)
4 years, 2 months ago (2016-10-13 22:45:19 UTC) #10
nednguyen
https://codereview.chromium.org/2421433003/diff/80001/telemetry/telemetry/internal/testing/page_with_swipeables.html File telemetry/telemetry/internal/testing/page_with_swipeables.html (right): https://codereview.chromium.org/2421433003/diff/80001/telemetry/telemetry/internal/testing/page_with_swipeables.html#newcode51 telemetry/telemetry/internal/testing/page_with_swipeables.html:51: <div id="off-screen"></div> How can we be sure that this ...
4 years, 2 months ago (2016-10-13 23:13:48 UTC) #11
nednguyen
https://codereview.chromium.org/2421433003/diff/80001/telemetry/telemetry/internal/actions/scroll_to_element.py File telemetry/telemetry/internal/actions/scroll_to_element.py (right): https://codereview.chromium.org/2421433003/diff/80001/telemetry/telemetry/internal/actions/scroll_to_element.py#newcode47 telemetry/telemetry/internal/actions/scroll_to_element.py:47: f(%s); If we can compute the distance here, why ...
4 years, 2 months ago (2016-10-13 23:16:13 UTC) #12
rnephew (Reviews Here)
https://codereview.chromium.org/2421433003/diff/80001/telemetry/telemetry/internal/actions/scroll_to_element.py File telemetry/telemetry/internal/actions/scroll_to_element.py (right): https://codereview.chromium.org/2421433003/diff/80001/telemetry/telemetry/internal/actions/scroll_to_element.py#newcode47 telemetry/telemetry/internal/actions/scroll_to_element.py:47: f(%s); On 2016/10/13 23:16:12, nednguyen wrote: > If we ...
4 years, 2 months ago (2016-10-14 00:13:18 UTC) #13
nednguyen
https://codereview.chromium.org/2421433003/diff/80001/telemetry/telemetry/internal/actions/action_runner_unittest.py File telemetry/telemetry/internal/actions/action_runner_unittest.py (right): https://codereview.chromium.org/2421433003/diff/80001/telemetry/telemetry/internal/actions/action_runner_unittest.py#newcode288 telemetry/telemetry/internal/actions/action_runner_unittest.py:288: off_screen_element = 'document.querySelectorAll("#off-screen")[0]' Can you move this to a ...
4 years, 2 months ago (2016-10-14 00:19:02 UTC) #14
charliea (OOO until 10-5)
Looking a lot closer! I'll cede final approval to Ned, as I'll be OOO tomorrow ...
4 years, 2 months ago (2016-10-14 03:34:29 UTC) #15
rnephew (Reviews Here)
https://codereview.chromium.org/2421433003/diff/80001/telemetry/telemetry/internal/actions/action_runner.py File telemetry/telemetry/internal/actions/action_runner.py (right): https://codereview.chromium.org/2421433003/diff/80001/telemetry/telemetry/internal/actions/action_runner.py#newcode402 telemetry/telemetry/internal/actions/action_runner.py:402: text: The element must contains this exact text. On ...
4 years, 2 months ago (2016-10-14 17:57:18 UTC) #16
nednguyen
lgtm https://codereview.chromium.org/2421433003/diff/100001/telemetry/telemetry/internal/actions/action_runner_unittest.py File telemetry/telemetry/internal/actions/action_runner_unittest.py (right): https://codereview.chromium.org/2421433003/diff/100001/telemetry/telemetry/internal/actions/action_runner_unittest.py#newcode265 telemetry/telemetry/internal/actions/action_runner_unittest.py:265: if not page_action.IsGestureSourceTypeSupported( I think we don't need ...
4 years, 2 months ago (2016-10-14 18:05:59 UTC) #17
rnephew (Reviews Here)
https://codereview.chromium.org/2421433003/diff/100001/telemetry/telemetry/internal/actions/action_runner_unittest.py File telemetry/telemetry/internal/actions/action_runner_unittest.py (right): https://codereview.chromium.org/2421433003/diff/100001/telemetry/telemetry/internal/actions/action_runner_unittest.py#newcode265 telemetry/telemetry/internal/actions/action_runner_unittest.py:265: if not page_action.IsGestureSourceTypeSupported( On 2016/10/14 18:05:59, nednguyen wrote: > ...
4 years, 2 months ago (2016-10-14 18:08:56 UTC) #18
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/2421433003/120001
4 years, 2 months ago (2016-10-14 18:09:09 UTC) #21
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 18:34:26 UTC) #23
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698