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

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

Issue 826113003: [Telemetry] Rename RunSmoothness to RunPageInteractions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « tools/perf/page_sets/tough_texture_upload_cases.py ('k') | tools/perf/page_sets/typical_25.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 import logging 4 import logging
5 5
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 ToughWebglCasesPage(page_module.Page): 10 class ToughWebglCasesPage(page_module.Page):
11 11
12 def __init__(self, url, page_set): 12 def __init__(self, url, page_set):
13 super(ToughWebglCasesPage, self).__init__(url=url, page_set=page_set) 13 super(ToughWebglCasesPage, self).__init__(url=url, page_set=page_set)
14 self.archive_data_file = 'data/tough_webgl_cases.json' 14 self.archive_data_file = 'data/tough_webgl_cases.json'
15 15
16 def CanRunOnBrowser(self, browser_info): 16 def CanRunOnBrowser(self, browser_info):
17 if not browser_info.HasWebGLSupport(): 17 if not browser_info.HasWebGLSupport():
18 logging.warning('Browser does not support webgl, skipping test') 18 logging.warning('Browser does not support webgl, skipping test')
19 return False 19 return False
20 return True 20 return True
21 21
22 def RunNavigateSteps(self, action_runner): 22 def RunNavigateSteps(self, action_runner):
23 action_runner.NavigateToPage(self) 23 action_runner.NavigateToPage(self)
24 action_runner.WaitForJavaScriptCondition( 24 action_runner.WaitForJavaScriptCondition(
25 'document.readyState == "complete"') 25 'document.readyState == "complete"')
26 action_runner.Wait(2) 26 action_runner.Wait(2)
27 27
28 def RunSmoothness(self, action_runner): 28 def RunPageInteractions(self, action_runner):
29 action_runner.Wait(5) 29 action_runner.Wait(5)
30 30
31 31
32 class ToughWebglCasesPageSet(page_set_module.PageSet): 32 class ToughWebglCasesPageSet(page_set_module.PageSet):
33 33
34 """ 34 """
35 Description: Self-driven WebGL animation examples 35 Description: Self-driven WebGL animation examples
36 """ 36 """
37 37
38 def __init__(self): 38 def __init__(self):
(...skipping 11 matching lines...) Expand all
50 'http://www.khronos.org/registry/webgl/sdk/demos/webkit/Earth.html', 50 'http://www.khronos.org/registry/webgl/sdk/demos/webkit/Earth.html',
51 # pylint: disable=C0301 51 # pylint: disable=C0301
52 'http://www.khronos.org/registry/webgl/sdk/demos/webkit/ManyPlanetsDeep.ht ml', 52 'http://www.khronos.org/registry/webgl/sdk/demos/webkit/ManyPlanetsDeep.ht ml',
53 'http://webglsamples.googlecode.com/hg/aquarium/aquarium.html', 53 'http://webglsamples.googlecode.com/hg/aquarium/aquarium.html',
54 'http://webglsamples.googlecode.com/hg/blob/blob.html', 54 'http://webglsamples.googlecode.com/hg/blob/blob.html',
55 # pylint: disable=C0301 55 # pylint: disable=C0301
56 'http://webglsamples.googlecode.com/hg/dynamic-cubemap/dynamic-cubemap.htm l' 56 'http://webglsamples.googlecode.com/hg/dynamic-cubemap/dynamic-cubemap.htm l'
57 ] 57 ]
58 for url in urls_list: 58 for url in urls_list:
59 self.AddUserStory(ToughWebglCasesPage(url, self)) 59 self.AddUserStory(ToughWebglCasesPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/tough_texture_upload_cases.py ('k') | tools/perf/page_sets/typical_25.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698