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

Side by Side Diff: tools/perf/page_sets/tough_pinch_zoom_diagonal_scrolling_cases.py

Issue 945393002: Adding support for diagonal scrolling to telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding telemetry support for diagonal scrolling. Also added a telemetry test to pinchzoom in and th… Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module
6
7
8 class ToughPinchZoomDiagonalScrollingCasesPage(page_module.Page):
jdduke (slow) 2015/02/26 20:34:12 I wonder if we want to tweak the name here. It alm
cblume 2015/02/26 21:33:07 I agree with you. I'm not a fan of this name and s
jdduke (slow) 2015/02/26 21:42:52 ToughScrollingWhileZoomedInCases or TouchZoomedInS
9
10 def __init__(self, url, page_set):
11 super(ToughPinchZoomDiagonalScrollingCasesPage, self).__init__(
12 url=url,
13 page_set=page_set)
14
15 def RunPageInteractions(self, action_runner):
16 # First, zoom into the page
17 action_runner.PinchPage(
18 scale_factor=20.0,
19 speed_in_pixels_per_second=10000)
20 # 20.0 was chosen because at the time it was close to the maximum.
21 # The more zoomed in, the more noticable the tile rasterization.
22 #
23 # 10,000 was chosen to complete this pre-step quickly.
24
25 # Then start measurements
26 interaction = action_runner.BeginGestureInteraction(
27 'ScrollAction', is_smooth=True)
28 # And begin the diagonal scroll
29 action_runner.ScrollPage(
30 direction='downright',
31 speed_in_pixels_per_second=10000)
32 # 10,000 was chosen because it is fast enough to completely stress the
33 # rasterization (on a Nexus 5) without saturating results.
34 interaction.End()
35
36
37 class ToughPinchZoomDiagonalScrollingCasesPageSet(page_set_module.PageSet):
38 """
39 Description: A collection of difficult scrolling tests
40 """
41
42 def __init__(self):
43 super(ToughPinchZoomDiagonalScrollingCasesPageSet, self).__init__(
44 user_agent_type='desktop',
45 archive_data_file='data/tough_pinch_zoom_cases.json',
46 bucket=page_set_module.PARTNER_BUCKET)
47
48 urls_list = [
49 'file://tough_scrolling_cases/background_fixed.html',
jdduke (slow) 2015/02/26 01:05:35 I wonder if we want all of these? Not sure, would
cblume 2015/02/26 20:22:00 We might not want all of these. I copied the list
jdduke (slow) 2015/02/26 20:34:12 I think the speed you have is fine, let's pick the
cblume 2015/02/26 21:33:07 Good idea. I'll do that.
50 'file://tough_scrolling_cases/cust_scrollbar.html',
51 'file://tough_scrolling_cases/div_scrolls.html',
52 'file://tough_scrolling_cases/fixed_nonstacking.html',
53 'file://tough_scrolling_cases/fixed_stacking.html',
54 'file://tough_scrolling_cases/iframe_scrolls.html',
55 'file://tough_scrolling_cases/simple.html',
56 'file://tough_scrolling_cases/wheel_body_prevdefault.html',
57 'file://tough_scrolling_cases/wheel_div_prevdefault.html'
58 ]
59
60 for url in urls_list:
61 self.AddUserStory(ToughPinchZoomDiagonalScrollingCasesPage(url, self))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698