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'
23 def skipped_gpus(self
):
25 return ['arm', 'broadcom', 'hisilicon', 'imagination', 'qualcomm',
28 def RunNavigateSteps(self
, action_runner
):
29 super(ToughWebglCasesPage
, self
).RunNavigateSteps(action_runner
)
30 action_runner
.WaitForJavaScriptCondition(
31 'document.readyState == "complete"')
34 def RunPageInteractions(self
, action_runner
):
35 with action_runner
.CreateInteraction('WebGLAnimation'):
39 class ToughWebglCasesPageSet(story
.StorySet
):
42 Description: Self-driven WebGL animation examples
46 super(ToughWebglCasesPageSet
, self
).__init
__(
47 archive_data_file
='data/tough_webgl_cases.json',
48 cloud_storage_bucket
=story
.PUBLIC_BUCKET
)
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'
66 self
.AddStory(ToughWebglCasesPage(url
, self
))