[refactor] More post-NSS WebCrypto cleanups (utility functions).
[chromium-blink-merge.git] / tools / perf / page_sets / page_cycler / dom.py
blob7e2614665d64d6d325edf2d9fdac6d0cd1be8d26
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 """
18 def __init__(self):
19 super(DomPageSet, self).__init__(
20 # pylint: disable=C0301
21 serving_dirs=set(['../../../../data/page_cycler/dom']))
23 urls_list = [
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/'
35 for url in urls_list:
36 self.AddStory(DomPage(url, self))