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
.page
import page
as page_module
5 from telemetry
.page
import page_set
as page_set_module
8 class BrowserControlPage(page_module
.Page
):
9 """ Why: Continually attach and detach a DOM tree from a basic document. """
11 def __init__(self
, page_set
):
12 super(BrowserControlPage
, self
).__init
__(
13 url
='file://endure/browser_control.html',
15 name
='browser_control')
16 self
.user_agent_type
= 'desktop'
18 def RunEndure(self
, action_runner
):
22 class BrowserControlPageSet(page_set_module
.PageSet
):
24 """ Chrome Endure control test for the browser. """
27 super(BrowserControlPageSet
, self
).__init
__(
28 user_agent_type
='desktop')
30 self
.AddPage(BrowserControlPage(self
))