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

Side by Side Diff: tools/perf/page_sets/todomvc.py

Issue 1781603002: [telemetry] Add TodoMVC examples based test for V8 to telemetry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 4 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
« no previous file with comments | « tools/perf/page_sets/data/todomvc_000.wpr.sha1 ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 shared_page_state_class=shared_page_state.SharedDesktopPageState)
29
30 def RunPageInteractions(self, action_runner):
31 pass
32
33
34 class TodoMVCPageSet(story.StorySet):
35
36 """ TodoMVC examples """
37
38 def __init__(self):
39 super(TodoMVCPageSet, self).__init__(
40 archive_data_file='data/todomvc.json',
41 cloud_storage_bucket=story.PUBLIC_BUCKET)
42
43 for name, url in URL_LIST:
44 self.AddStory(TodoMVCPage(url, self, name))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/data/todomvc_000.wpr.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698