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

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

Issue 799183002: Rename AddPage -> AddUserStory in tools/perf/page_sets/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 from telemetry.page import page as page_module 4 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module 5 from telemetry.page import page_set as page_set_module
6 6
7 7
8 class ToughScrollingCasesPage(page_module.Page): 8 class ToughScrollingCasesPage(page_module.Page):
9 9
10 def __init__(self, url, page_set): 10 def __init__(self, url, page_set):
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 'file://tough_scrolling_cases/div_scrolls.html', 49 'file://tough_scrolling_cases/div_scrolls.html',
50 'file://tough_scrolling_cases/fixed_nonstacking.html', 50 'file://tough_scrolling_cases/fixed_nonstacking.html',
51 'file://tough_scrolling_cases/fixed_stacking.html', 51 'file://tough_scrolling_cases/fixed_stacking.html',
52 'file://tough_scrolling_cases/iframe_scrolls.html', 52 'file://tough_scrolling_cases/iframe_scrolls.html',
53 'file://tough_scrolling_cases/simple.html', 53 'file://tough_scrolling_cases/simple.html',
54 'file://tough_scrolling_cases/wheel_body_prevdefault.html', 54 'file://tough_scrolling_cases/wheel_body_prevdefault.html',
55 'file://tough_scrolling_cases/wheel_div_prevdefault.html' 55 'file://tough_scrolling_cases/wheel_div_prevdefault.html'
56 ] 56 ]
57 57
58 for url in urls_list: 58 for url in urls_list:
59 self.AddPage(ToughScrollingCasesPage(url, self)) 59 self.AddUserStory(ToughScrollingCasesPage(url, self))
60 60
61 fast_scrolling_page_name_list = [ 61 fast_scrolling_page_name_list = [
62 'text', 62 'text',
63 'canvas' 63 'canvas'
64 ] 64 ]
65 65
66 fast_scrolling_speed_list = [ 66 fast_scrolling_speed_list = [
67 5000, 10000, 15000, 20000, 30000, 40000, 50000, 60000, 75000, 90000 67 5000, 10000, 15000, 20000, 30000, 40000, 50000, 60000, 75000, 90000
68 ] 68 ]
69 69
70 for name in fast_scrolling_page_name_list: 70 for name in fast_scrolling_page_name_list:
71 for speed in fast_scrolling_speed_list: 71 for speed in fast_scrolling_speed_list:
72 self.AddPage(ToughFastScrollingCasesPage( 72 self.AddUserStory(ToughFastScrollingCasesPage(
73 'file://tough_scrolling_cases/' + name + '.html', 73 'file://tough_scrolling_cases/' + name + '.html',
74 name + '_' + str(speed).zfill(5) + '_pixels_per_second', 74 name + '_' + str(speed).zfill(5) + '_pixels_per_second',
75 speed, 75 speed,
76 self)) 76 self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/tough_scheduling_cases.py ('k') | tools/perf/page_sets/tough_texture_upload_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698