blob: ef539c748d936fb5c2459fbc1c88962f9cf19d70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# pylint: disable=W0401,W0614
from telemetry.page.actions.all_page_actions import *
from telemetry.page import page as page_module
from telemetry.page import page_set as page_set_module
class MemoryTestsPage(page_module.Page):
def __init__(self, page_set):
super(MemoryTestsPage, self).__init__(
url='file://../../data/gpu/mem_css3d.html', page_set=page_set,
name='Memory.CSS3D')
self.user_agent_type = 'desktop'
def RunNavigateSteps(self, action_runner):
action_runner.NavigateToPage(self)
action_runner.WaitForJavaScriptCondition(
'domAutomationController._finished', timeout=60)
class MemoryTestsPageSet(page_set_module.PageSet):
""" Tests that validate GPU memory management """
def __init__(self):
super(MemoryTestsPageSet, self).__init__(
user_agent_type='desktop')
self.AddPage(MemoryTestsPage(self))
|