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
import story
8 class DomPage(page_module
.Page
):
10 def __init__(self
, url
, page_set
):
11 super(DomPage
, self
).__init
__(url
=url
, page_set
=page_set
)
14 class DomPageSet(story
.StorySet
):
16 """ DOM page_cycler benchmark """
19 super(DomPageSet
, self
).__init
__(
20 # pylint: disable=C0301
21 serving_dirs
=set(['../../../../data/page_cycler/dom']))
24 'file://../../../../data/page_cycler/dom/HTMLDocument_write/',
25 'file://../../../../data/page_cycler/dom/Document_getElementById/',
26 'file://../../../../data/page_cycler/dom/DOMWindow_document/',
27 'file://../../../../data/page_cycler/dom/DOMWindow_window/',
28 'file://../../../../data/page_cycler/dom/Element_getAttribute/',
29 'file://../../../../data/page_cycler/dom/HTMLCollection_length/',
30 'file://../../../../data/page_cycler/dom/HTMLElement_className/',
31 'file://../../../../data/page_cycler/dom/HTMLElement_id/',
32 'file://../../../../data/page_cycler/dom/NodeList_length/'
36 self
.AddStory(DomPage(url
, self
))