Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2016 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 import page as page_module | |
| 6 from telemetry.page import shared_page_state | |
| 7 from telemetry import story | |
| 8 | |
| 9 | |
| 10 URL_LIST = [ | |
| 11 ('Polymer', 'http://todomvc.com/examples/polymer'), | |
| 12 ('AngularJS', 'http://todomvc.com/examples/angularjs'), | |
| 13 ('React', 'http://todomvc.com/examples/react'), | |
| 14 ('Backbone.js', 'http://todomvc.com/examples/backbone'), | |
| 15 ('Ember.js', 'http://todomvc.com/examples/emberjs'), | |
| 16 ('Closure', 'http://todomvc.com/examples/closure'), | |
| 17 ('GWT', 'http://todomvc.com/examples/gwt'), | |
| 18 ('Dart', 'http://todomvc.com/examples/vanilladart/build/web'), | |
| 19 ('Vanilla JS', 'http://todomvc.com/examples/vanillajs'), | |
| 20 ] | |
| 21 | |
| 22 | |
| 23 class TodoMVCPage(page_module.Page): | |
| 24 | |
| 25 def __init__(self, url, page_set, name): | |
| 26 super(TodoMVCPage, self).__init__( | |
| 27 url=url, page_set=page_set, name=name, | |
| 28 credentials_path='data/credentials.json', | |
|
Sami
2016/03/09 18:39:02
It doesn't look like you need to login to any of t
jochen (gone - plz use gerrit)
2016/03/09 18:44:42
will do
| |
| 29 shared_page_state_class=shared_page_state.SharedDesktopPageState) | |
| 30 | |
| 31 def RunPageInteractions(self, action_runner): | |
| 32 pass | |
| 33 | |
| 34 | |
| 35 class TodoMVCPageSet(story.StorySet): | |
| 36 | |
| 37 """ TodoMVC examples """ | |
| 38 | |
| 39 def __init__(self): | |
| 40 super(TodoMVCPageSet, self).__init__( | |
| 41 archive_data_file='data/todomvc.json', | |
| 42 cloud_storage_bucket=story.PARTNER_BUCKET) | |
|
Sami
2016/03/09 18:39:02
Seems like this could be PUBLIC_BUCKET since these
jochen (gone - plz use gerrit)
2016/03/09 18:44:42
will do
| |
| 43 | |
| 44 for name, url in URL_LIST: | |
| 45 self.AddStory(TodoMVCPage(url, self, name)) | |
| OLD | NEW |