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

Issue 21174002: Allow defining custom navigation on a per-page basis. (Closed)

Created:
7 years, 4 months ago by edmundyan
Modified:
7 years, 4 months ago
Reviewers:
dennis_jeffrey, dtu
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org
Visibility:
Public.

Description

Allow defining custom navigation on a per-page basis. Create explicit 'navigate' and 'javascript' actions BUG=263103 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217762

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebased for "skip_navigate". Adding optional js attribute to navigate action #

Patch Set 3 : Use new attribute "post_javascript_to_execute" instead of the existing "script_to_evaluate_on_commi… #

Total comments: 10

Patch Set 4 : Creating explicit Javascript page action #

Total comments: 9

Patch Set 5 : Addressed changes. Updating tab_switching measurement #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -19 lines) Patch
M tools/perf/measurements/tab_switching.py View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A + tools/telemetry/telemetry/page/actions/javascript.py View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
A tools/telemetry/telemetry/page/actions/navigate.py View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/page/actions/navigate_unittest.py View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/page/page_runner.py View 1 2 3 4 2 chunks +6 lines, -11 lines 0 comments Download
M tools/telemetry/telemetry/page/page_test.py View 1 2 3 4 3 chunks +26 lines, -3 lines 0 comments Download
M tools/telemetry/telemetry/page/record_wpr.py View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
edmundyan
Initial patch, PTAL. For some reason presubmit is copying+modifying javascript/navigate.py from existing actions. They should ...
7 years, 4 months ago (2013-07-29 23:40:51 UTC) #1
dtu
https://codereview.chromium.org/21174002/diff/1/tools/telemetry/telemetry/page/actions/javascript.py File tools/telemetry/telemetry/page/actions/javascript.py (right): https://codereview.chromium.org/21174002/diff/1/tools/telemetry/telemetry/page/actions/javascript.py#newcode8 tools/telemetry/telemetry/page/actions/javascript.py:8: class JavascriptAction(page_action.PageAction): I think a JavaScript Action is too ...
7 years, 4 months ago (2013-07-31 22:08:49 UTC) #2
edmundyan
Now that skip_navigate_on_repeat is landed, I've rebased this CL and addressed Dave's changes. I am ...
7 years, 4 months ago (2013-08-13 18:26:25 UTC) #3
edmundyan
Actually, I don't think re-using "script_to_evaluate_on_commit" is a good idea as it could be defined ...
7 years, 4 months ago (2013-08-13 21:31:45 UTC) #4
dennis_jeffrey
I'll leave this for Dave to comment on the appropriateness of the structural changes to ...
7 years, 4 months ago (2013-08-14 18:37:53 UTC) #5
dtu
On 2013/08/13 21:31:45, edmundyan wrote: > Actually, I don't think re-using "script_to_evaluate_on_commit" is a good ...
7 years, 4 months ago (2013-08-14 18:42:32 UTC) #6
dtu
On 2013/08/14 18:42:32, Dave Tu wrote: > On 2013/08/13 21:31:45, edmundyan wrote: > > Actually, ...
7 years, 4 months ago (2013-08-14 18:43:11 UTC) #7
edmundyan
Done and added back Javascript page action. PTAL https://codereview.chromium.org/21174002/diff/27001/tools/telemetry/telemetry/page/page_runner.py File tools/telemetry/telemetry/page/page_runner.py (right): https://codereview.chromium.org/21174002/diff/27001/tools/telemetry/telemetry/page/page_runner.py#newcode139 tools/telemetry/telemetry/page/page_runner.py:139: # ...
7 years, 4 months ago (2013-08-14 22:06:12 UTC) #8
dennis_jeffrey
LGTM with a few minor comments. Please wait for Dave to approve too. https://codereview.chromium.org/21174002/diff/39001/tools/telemetry/telemetry/page/actions/navigate_unittest.py File ...
7 years, 4 months ago (2013-08-14 22:21:04 UTC) #9
dtu
https://codereview.chromium.org/21174002/diff/27001/tools/telemetry/telemetry/page/page_runner.py File tools/telemetry/telemetry/page/page_runner.py (right): https://codereview.chromium.org/21174002/diff/27001/tools/telemetry/telemetry/page/page_runner.py#newcode139 tools/telemetry/telemetry/page/page_runner.py:139: # how to get code coverage of this On ...
7 years, 4 months ago (2013-08-14 22:21:38 UTC) #10
dtu
Looks good! Sorry again about the review mess. Some smaller comments. https://codereview.chromium.org/21174002/diff/39001/tools/telemetry/telemetry/page/actions/javascript.py File tools/telemetry/telemetry/page/actions/javascript.py (right): ...
7 years, 4 months ago (2013-08-14 23:04:32 UTC) #11
edmundyan
https://codereview.chromium.org/21174002/diff/39001/tools/telemetry/telemetry/page/actions/javascript.py File tools/telemetry/telemetry/page/actions/javascript.py (right): https://codereview.chromium.org/21174002/diff/39001/tools/telemetry/telemetry/page/actions/javascript.py#newcode13 tools/telemetry/telemetry/page/actions/javascript.py:13: assert hasattr(self, 'execute') On 2013/08/14 23:04:33, Dave Tu wrote: ...
7 years, 4 months ago (2013-08-14 23:37:58 UTC) #12
dtu
lgtm
7 years, 4 months ago (2013-08-15 00:35:44 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/edmundyan@chromium.org/21174002/50001
7 years, 4 months ago (2013-08-15 00:42:16 UTC) #14
commit-bot: I haz the power
7 years, 4 months ago (2013-08-15 07:23:57 UTC) #15
Message was sent while issue was closed.
Change committed as 217762

Powered by Google App Engine
This is Rietveld 408576698