[refactor] More post-NSS WebCrypto cleanups (utility functions).
[chromium-blink-merge.git] / content / test / gpu / page_sets / memory_tests.py
blob4a20919bb56d7153ba03b0a9714e116147a3183c
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,
13 name='Memory.CSS3D',
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))