Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(837)

Side by Side Diff: tools/telemetry/unittest_data/test_page_set.py

Issue 180873008: Add support for python pageset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove attributes from page constructor Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright (c) 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
5 from telemetry.page.page_set import PageSet
6 from telemetry.page.page import Page
7
8 class TestPageSet(PageSet):
9 def __init__(self):
10 super(TestPageSet, self).__init__(
11 description='A pageset for testing purpose',
12 archive_data_file='data/test.json',
13 credentials_path='data/credential',
14 user_agent_type='desktop')
15
16 #top google property; a google tab is often open
17 class Google(Page):
18 def __init__(self):
19 super(Google, self).__init__('https://www.google.com')
20
21 def RunGetActionRunner(self, action_runner):
22 return action_runner
23
24 self.AddPage(Google())
25
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/page/record_wpr.py ('k') | tools/telemetry/unittest_data/test_simple_one_page_set.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698