Upstream version 11.40.277.0
[platform/framework/web/crosswalk.git] / src / tools / perf / page_sets / five_blank_pages.py
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
6
7
8 # The PageSet searches for pages relative to the directory the page class is
9 # defined in so we need to subclass here.
10 class BlankPage(page_module.Page):
11   pass
12
13
14 class FiveBlankPagesPageSet(page_set_module.PageSet):
15
16   """ Five blank pages. """
17
18   def __init__(self):
19     super(FiveBlankPagesPageSet, self).__init__()
20     for _ in xrange(5):
21       self.AddPage(BlankPage('file://blank_page/blank_page.html', self))