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

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

Issue 645763004: [Telemetry] Rename RunSmoothness to RunPageInteractions for timeline_based_measurement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | tools/telemetry/telemetry/web_perf/timeline_based_measurement.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 # pylint: disable=W0401,W0614 4 # pylint: disable=W0401,W0614
5 from telemetry.page.actions.wait import * 5 from telemetry.page.actions.wait import *
6 from telemetry.page import page as page_module 6 from telemetry.page import page as page_module
7 from telemetry.page import page_set as page_set_module 7 from telemetry.page import page_set as page_set_module
8 8
9 9
10 class SpinningBallsPage(page_module.Page): 10 class SpinningBallsPage(page_module.Page):
11 11
12 def __init__(self, page_set): 12 def __init__(self, page_set):
13 super(SpinningBallsPage, self).__init__( 13 super(SpinningBallsPage, self).__init__(
14 # pylint: disable=C0301 14 # pylint: disable=C0301
15 url='http://v8.googlecode.com/svn/branches/bleeding_edge/benchmarks/spinni ng-balls/index.html', 15 url='http://v8.googlecode.com/svn/branches/bleeding_edge/benchmarks/spinni ng-balls/index.html',
16 page_set=page_set) 16 page_set=page_set)
17 17
18 def RunNavigateSteps(self, action_runner): 18 def RunNavigateSteps(self, action_runner):
19 action_runner.NavigateToPage(self) 19 action_runner.NavigateToPage(self)
20 action_runner.WaitForJavaScriptCondition( 20 action_runner.WaitForJavaScriptCondition(
21 "document.readyState == 'complete'") 21 "document.readyState == 'complete'")
22 action_runner.ClickElement(selector='input[type="submit"]') 22 action_runner.ClickElement(selector='input[type="submit"]')
23 action_runner.WaitForJavaScriptCondition( 23 action_runner.WaitForJavaScriptCondition(
24 "document.readyState == 'complete'") 24 "document.readyState == 'complete'")
25 25
26 def RunSmoothness(self, action_runner): 26 def RunPageInteractions(self, action_runner):
27 interaction = action_runner.BeginInteraction( 27 interaction = action_runner.BeginInteraction(
28 'RunSmoothAllActions', is_fast=True) 28 'RunSmoothAllActions', is_fast=True)
29 action_runner.Wait(15) 29 action_runner.Wait(15)
30 interaction.End() 30 interaction.End()
31 31
32 32
33 class GarbageCollectionCasesPageSet(page_set_module.PageSet): 33 class GarbageCollectionCasesPageSet(page_set_module.PageSet):
34 34
35 """ 35 """
36 Description: GC test cases 36 Description: GC test cases
37 """ 37 """
38 38
39 def __init__(self): 39 def __init__(self):
40 super(GarbageCollectionCasesPageSet, self).__init__( 40 super(GarbageCollectionCasesPageSet, self).__init__(
41 archive_data_file='data/garbage_collection_cases.json', 41 archive_data_file='data/garbage_collection_cases.json',
42 bucket=page_set_module.PARTNER_BUCKET) 42 bucket=page_set_module.PARTNER_BUCKET)
43 43
44 self.AddPage(SpinningBallsPage(self)) 44 self.AddPage(SpinningBallsPage(self))
OLDNEW
« no previous file with comments | « no previous file | tools/telemetry/telemetry/web_perf/timeline_based_measurement.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698