| Index: tools/perf/page_sets/test.py
|
| diff --git a/tools/perf/page_sets/test.py b/tools/perf/page_sets/test.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..26e44df23914d6d4f3cbf225e9d432be6a3f36d4
|
| --- /dev/null
|
| +++ b/tools/perf/page_sets/test.py
|
| @@ -0,0 +1,41 @@
|
| +# Copyright 2014 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +import cgi
|
| +import json
|
| +import os
|
| +import sys
|
| +
|
| +from telemetry.page import page as page_module
|
| +from telemetry.page import shared_page_state
|
| +from telemetry import story
|
| +
|
| +DUMP_WAIT_TIME = 10
|
| +DUMP_COUNT = 10
|
| +
|
| +__location__ = os.path.realpath(
|
| + os.path.join(os.getcwd(), os.path.dirname(__file__)))
|
| +
|
| +
|
| +_TEST_PAGES_FILE = os.path.join(__location__, 'test.json')
|
| +
|
| +
|
| +class TestPage(page_module.Page):
|
| + def __init__(self, url, urls_list, page_set):
|
| + super(TestPage, self).__init__(
|
| + url=url, page_set=page_set,
|
| +# shared_page_state_class=shared_page_state.SharedMobilePageState,
|
| + shared_page_state_class=shared_page_state.SharedPageState,
|
| + credentials_path='data/credentials.json')
|
| +
|
| + def RunPageInteractions(self, action_runner):
|
| + action_runner.Wait(30)
|
| +
|
| +
|
| +class TestPageSet(story.StorySet):
|
| + def __init__(self):
|
| + super(TestPageSet, self).__init__()
|
| +
|
| + for i in range(40):
|
| + self.AddStory(
|
| + TestPage('https://www.google.com/#q=obama', [], self))
|
|
|