[Android WebViewShell] Add inclusion test for webview exposed stable interfaces.
[chromium-blink-merge.git] / tools / perf / page_sets / tough_webgl_cases.py
blob5e330e32bbe16f9d1bbe05d63cc3158f4c962ae4
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
3 # found in the LICENSE file.
5 from telemetry.page import page as page_module
6 from telemetry import story
8 from page_sets import webgl_supported_shared_state
11 class ToughWebglCasesPage(page_module.Page):
13 def __init__(self, url, page_set):
14 super(ToughWebglCasesPage, self).__init__(
15 url=url, page_set=page_set,
16 shared_page_state_class=(
17 webgl_supported_shared_state.WebGLSupportedSharedState),
18 make_javascript_deterministic=False)
19 self.archive_data_file = 'data/tough_webgl_cases.json'
22 @property
23 def skipped_gpus(self):
24 # crbug.com/462729
25 return ['arm', 'broadcom', 'hisilicon', 'imagination', 'qualcomm',
26 'vivante']
28 def RunNavigateSteps(self, action_runner):
29 super(ToughWebglCasesPage, self).RunNavigateSteps(action_runner)
30 action_runner.WaitForJavaScriptCondition(
31 'document.readyState == "complete"')
32 action_runner.Wait(2)
34 def RunPageInteractions(self, action_runner):
35 with action_runner.CreateInteraction('WebGLAnimation'):
36 action_runner.Wait(5)
39 class ToughWebglCasesPageSet(story.StorySet):
41 """
42 Description: Self-driven WebGL animation examples
43 """
45 def __init__(self):
46 super(ToughWebglCasesPageSet, self).__init__(
47 archive_data_file='data/tough_webgl_cases.json',
48 cloud_storage_bucket=story.PUBLIC_BUCKET)
50 urls_list = [
51 # pylint: disable=C0301
52 'http://www.khronos.org/registry/webgl/sdk/demos/google/nvidia-vertex-buffer-object/index.html',
53 # pylint: disable=C0301
54 'http://www.khronos.org/registry/webgl/sdk/demos/google/san-angeles/index.html',
55 # pylint: disable=C0301
56 'http://www.khronos.org/registry/webgl/sdk/demos/google/particles/index.html',
57 'http://www.khronos.org/registry/webgl/sdk/demos/webkit/Earth.html',
58 # pylint: disable=C0301
59 'http://www.khronos.org/registry/webgl/sdk/demos/webkit/ManyPlanetsDeep.html',
60 'http://webglsamples.googlecode.com/hg/aquarium/aquarium.html',
61 'http://webglsamples.googlecode.com/hg/blob/blob.html',
62 # pylint: disable=C0301
63 'http://webglsamples.googlecode.com/hg/dynamic-cubemap/dynamic-cubemap.html'
65 for url in urls_list:
66 self.AddStory(ToughWebglCasesPage(url, self))