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.
4 from telemetry
.story
import story_set
as story_set_module
6 from gpu_tests
import gpu_test_base
8 class MemoryTestsPage(gpu_test_base
.PageBase
):
10 def __init__(self
, story_set
, expectations
):
11 super(MemoryTestsPage
, self
).__init
__(
12 url
='file://../../data/gpu/mem_css3d.html', page_set
=story_set
,
14 expectations
=expectations
)
16 def RunNavigateStepsInner(self
, action_runner
):
17 action_runner
.WaitForJavaScriptCondition(
18 'domAutomationController._finished', timeout_in_seconds
=60)
21 class MemoryTestsStorySet(story_set_module
.StorySet
):
23 """ Tests that validate GPU memory management """
25 def __init__(self
, expectations
):
26 super(MemoryTestsStorySet
, self
).__init
__()
28 self
.AddStory(MemoryTestsPage(self
, expectations
))