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

Issue 2617503002: [telemetry] Let ScrollToElement callers pass root (Closed)

Created:
3 years, 11 months ago by hjd
Modified:
3 years, 11 months ago
Reviewers:
perezju, nednguyen
CC:
catapult-reviews_chromium.org, telemetry-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

[Telemetry] Support specifying container element for action_runner.ScrollToElement API Allows callers of ScrollToElement specify which element should be scrolled (previously this was hard coded to document.scrollingElement or document.body if scrollingElement was not set). Review-Url: https://codereview.chromium.org/2617503002 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/e6b04fef1997055d90390256fe96282bbbd98a51

Patch Set 1 #

Total comments: 3

Patch Set 2 : Improve docs. #

Patch Set 3 : Rebase. #

Total comments: 1

Patch Set 4 : Update comments. #

Patch Set 5 : please ignore #

Patch Set 6 : add tests #

Patch Set 7 : fix typo #

Total comments: 12

Patch Set 8 : fixes #

Patch Set 9 : add coverage in action_runner_unittest #

Patch Set 10 : disable on android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -33 lines) Patch
M telemetry/telemetry/internal/actions/action_runner.py View 1 2 3 4 1 chunk +16 lines, -1 line 0 comments Download
M telemetry/telemetry/internal/actions/action_runner_unittest.py View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M telemetry/telemetry/internal/actions/gesture_common.js View 1 2 3 4 5 1 chunk +11 lines, -24 lines 0 comments Download
M telemetry/telemetry/internal/actions/scroll_to_element.py View 1 2 3 2 chunks +27 lines, -7 lines 0 comments Download
A telemetry/telemetry/internal/actions/scroll_to_element_unittest.py View 1 2 3 4 5 6 7 8 9 1 chunk +99 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (14 generated)
hjd
ptal, thanks! +nednguyen for owners stamp
3 years, 11 months ago (2017-01-04 14:43:03 UTC) #3
perezju
https://codereview.chromium.org/2617503002/diff/1/telemetry/telemetry/internal/actions/action_runner.py File telemetry/telemetry/internal/actions/action_runner.py (right): https://codereview.chromium.org/2617503002/diff/1/telemetry/telemetry/internal/actions/action_runner.py#newcode419 telemetry/telemetry/internal/actions/action_runner.py:419: scroll_selector=None, scroll_element_function=None, Maybe these should be called container_selector and ...
3 years, 11 months ago (2017-01-04 14:57:31 UTC) #4
hjd
Updated, thanks! https://codereview.chromium.org/2617503002/diff/1/telemetry/telemetry/internal/actions/action_runner.py File telemetry/telemetry/internal/actions/action_runner.py (right): https://codereview.chromium.org/2617503002/diff/1/telemetry/telemetry/internal/actions/action_runner.py#newcode419 telemetry/telemetry/internal/actions/action_runner.py:419: scroll_selector=None, scroll_element_function=None, On 2017/01/04 14:57:31, perezju wrote: ...
3 years, 11 months ago (2017-01-04 15:29:02 UTC) #5
perezju
lgtm w/nit thanks! https://codereview.chromium.org/2617503002/diff/40001/telemetry/telemetry/internal/actions/action_runner.py File telemetry/telemetry/internal/actions/action_runner.py (right): https://codereview.chromium.org/2617503002/diff/40001/telemetry/telemetry/internal/actions/action_runner.py#newcode429 telemetry/telemetry/internal/actions/action_runner.py:429: xor a JavaScript function which returns ...
3 years, 11 months ago (2017-01-04 15:37:59 UTC) #6
hjd
On 2017/01/04 15:37:59, perezju wrote: > lgtm w/nit > > thanks! > > https://codereview.chromium.org/2617503002/diff/40001/telemetry/telemetry/internal/actions/action_runner.py > ...
3 years, 11 months ago (2017-01-04 16:37:04 UTC) #7
hjd
On 2017/01/04 16:37:04, hjd wrote: > On 2017/01/04 15:37:59, perezju wrote: > > lgtm w/nit ...
3 years, 11 months ago (2017-01-10 14:26:38 UTC) #8
nednguyen
On 2017/01/10 14:26:38, hjd wrote: > On 2017/01/04 16:37:04, hjd wrote: > > On 2017/01/04 ...
3 years, 11 months ago (2017-01-10 14:32:19 UTC) #9
hjd
On 2017/01/10 14:32:19, nednguyen wrote: > On 2017/01/10 14:26:38, hjd wrote: > > On 2017/01/04 ...
3 years, 11 months ago (2017-01-10 17:20:16 UTC) #11
perezju
still lgtm, but adding a few small comments https://codereview.chromium.org/2617503002/diff/120001/telemetry/telemetry/internal/actions/scroll_to_element_unittest.py File telemetry/telemetry/internal/actions/scroll_to_element_unittest.py (right): https://codereview.chromium.org/2617503002/diff/120001/telemetry/telemetry/internal/actions/scroll_to_element_unittest.py#newcode8 telemetry/telemetry/internal/actions/scroll_to_element_unittest.py:8: from ...
3 years, 11 months ago (2017-01-11 13:05:00 UTC) #16
hjd
https://codereview.chromium.org/2617503002/diff/120001/telemetry/telemetry/internal/actions/scroll_to_element_unittest.py File telemetry/telemetry/internal/actions/scroll_to_element_unittest.py (right): https://codereview.chromium.org/2617503002/diff/120001/telemetry/telemetry/internal/actions/scroll_to_element_unittest.py#newcode8 telemetry/telemetry/internal/actions/scroll_to_element_unittest.py:8: from telemetry.util import js_template On 2017/01/11 13:05:00, perezju wrote: ...
3 years, 11 months ago (2017-01-11 14:11:56 UTC) #17
nednguyen
lgtm Can you also add action_runner_unittest.ActionRunnerTest.TestScrollToElement2 ? action_runner.XYZ is the top most API that users ...
3 years, 11 months ago (2017-01-11 14:17:25 UTC) #18
hjd
On 2017/01/11 14:17:25, nednguyen wrote: > lgtm > > Can you also add action_runner_unittest.ActionRunnerTest.TestScrollToElement2 ? ...
3 years, 11 months ago (2017-01-11 15:49:32 UTC) #19
nednguyen
On 2017/01/11 15:49:32, hjd wrote: > On 2017/01/11 14:17:25, nednguyen wrote: > > lgtm > ...
3 years, 11 months ago (2017-01-11 15:50:20 UTC) #20
hjd
On 2017/01/11 15:50:20, nednguyen wrote: > On 2017/01/11 15:49:32, hjd wrote: > > On 2017/01/11 ...
3 years, 11 months ago (2017-01-11 15:53:34 UTC) #21
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/2617503002/160001
3 years, 11 months ago (2017-01-12 12:54:02 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Android Tryserver on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Android%20Tryserver/builds/2433)
3 years, 11 months ago (2017-01-12 13:29:40 UTC) #26
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/2617503002/180001
3 years, 11 months ago (2017-01-13 12:10:50 UTC) #29
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 12:31:31 UTC) #32
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698