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 # pylint: disable=W0401,W0614 5 from telemetry.page.actions.all_page_actions import * 6 from telemetry.page import page as page_module 7 from telemetry.page import page_set as page_set_module 8 9 10 class BrowserControlPage(page_module.Page): 11 """ Why: Continually attach and detach a DOM tree from a basic document. """ 12 13 def __init__(self, page_set): 14 super(BrowserControlPage, self).__init__( 15 url='file://endure/browser_control.html', 16 page_set=page_set, 17 name='browser_control') 18 self.user_agent_type = 'desktop' 19 20 def RunEndure(self, action_runner): 21 action_runner.Wait(2) 22 23 24 class BrowserControlPageSet(page_set_module.PageSet): 25 26 """ Chrome Endure control test for the browser. """ 27 28 def __init__(self): 29 super(BrowserControlPageSet, self).__init__( 30 user_agent_type='desktop') 31 32 self.AddPage(BrowserControlPage(self)) 33