| OLD | NEW |
| 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 | 4 |
| 5 from telemetry.page import page as page_module | 5 from telemetry.page import page as page_module |
| 6 from telemetry import story | 6 from telemetry import story |
| 7 | 7 |
| 8 from page_sets import webgl_supported_shared_state | 8 from page_sets import webgl_supported_shared_state |
| 9 | 9 |
| 10 | 10 |
| 11 class ToughWebglCasesPage(page_module.Page): | 11 class ToughWebglCasesPage(page_module.Page): |
| 12 | 12 |
| 13 def __init__(self, url, page_set): | 13 def __init__(self, url, page_set): |
| 14 super(ToughWebglCasesPage, self).__init__( | 14 super(ToughWebglCasesPage, self).__init__( |
| 15 url=url, page_set=page_set, | 15 url=url, page_set=page_set, |
| 16 shared_page_state_class=( | 16 shared_page_state_class=( |
| 17 webgl_supported_shared_state.WebGLSupportedSharedState), | 17 webgl_supported_shared_state.WebGLSupportedSharedState), |
| 18 make_javascript_deterministic=False) | 18 make_javascript_deterministic=False) |
| 19 self.archive_data_file = 'data/tough_webgl_cases.json' | 19 self.archive_data_file = 'data/tough_webgl_cases.json' |
| 20 | 20 |
| 21 | 21 |
| 22 @property | 22 @property |
| 23 def skipped_gpus(self): | 23 def skipped_gpus(self): |
| 24 # crbug.com/462729 | 24 # crbug.com/462729 |
| 25 return ['arm', 'broadcom', 'hisilicon', 'imagination', 'qualcomm', | 25 return ['arm', 'broadcom', 'hisilicon', 'imagination', 'qualcomm', |
| 26 'vivante'] | 26 'vivante'] |
| 27 | 27 |
| 28 def RunNavigateSteps(self, action_runner): | 28 def RunNavigateSteps(self, action_runner): |
| 29 super(ToughWebglCasesPage, self).RunNavigateSteps(action_runner) | 29 super(ToughWebglCasesPage, self).RunNavigateSteps(action_runner) |
| 30 action_runner.WaitForJavaScriptCondition2( | 30 action_runner.WaitForJavaScriptCondition( |
| 31 'document.readyState == "complete"') | 31 'document.readyState == "complete"') |
| 32 action_runner.Wait(2) | 32 action_runner.Wait(2) |
| 33 | 33 |
| 34 def RunPageInteractions(self, action_runner): | 34 def RunPageInteractions(self, action_runner): |
| 35 with action_runner.CreateInteraction('WebGLAnimation'): | 35 with action_runner.CreateInteraction('WebGLAnimation'): |
| 36 action_runner.Wait(5) | 36 action_runner.Wait(5) |
| 37 | 37 |
| 38 | 38 |
| 39 class ToughWebglCasesPageSet(story.StorySet): | 39 class ToughWebglCasesPageSet(story.StorySet): |
| 40 | 40 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 59 'http://www.khronos.org/registry/webgl/sdk/demos/webkit/ManyPlanetsDeep.ht
ml', | 59 'http://www.khronos.org/registry/webgl/sdk/demos/webkit/ManyPlanetsDeep.ht
ml', |
| 60 'http://webglsamples.org/aquarium/aquarium.html', | 60 'http://webglsamples.org/aquarium/aquarium.html', |
| 61 'http://webglsamples.org/blob/blob.html', | 61 'http://webglsamples.org/blob/blob.html', |
| 62 # pylint: disable=line-too-long | 62 # pylint: disable=line-too-long |
| 63 'http://webglsamples.org/dynamic-cubemap/dynamic-cubemap.html', | 63 'http://webglsamples.org/dynamic-cubemap/dynamic-cubemap.html', |
| 64 # pylint: disable=line-too-long | 64 # pylint: disable=line-too-long |
| 65 'http://kenrussell.github.io/webgl-animometer/Animometer/tests/3d/webgl.ht
ml', | 65 'http://kenrussell.github.io/webgl-animometer/Animometer/tests/3d/webgl.ht
ml', |
| 66 ] | 66 ] |
| 67 for url in urls_list: | 67 for url in urls_list: |
| 68 self.AddStory(ToughWebglCasesPage(url, self)) | 68 self.AddStory(ToughWebglCasesPage(url, self)) |
| OLD | NEW |