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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/todomvc.py
diff --git a/tools/perf/page_sets/todomvc.py b/tools/perf/page_sets/todomvc.py
new file mode 100644
index 0000000000000000000000000000000000000000..5536c83f3fbbcd5742641fc88215c03413a90fd1
--- /dev/null
+++ b/tools/perf/page_sets/todomvc.py
@@ -0,0 +1,44 @@
+# Copyright 2016 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.
+
+from telemetry.page import page as page_module
+from telemetry.page import shared_page_state
+from telemetry import story
+
+
+URL_LIST = [
+ ('Polymer', 'http://todomvc.com/examples/polymer'),
+ ('AngularJS', 'http://todomvc.com/examples/angularjs'),
+ ('React', 'http://todomvc.com/examples/react'),
+ ('Backbone.js', 'http://todomvc.com/examples/backbone'),
+ ('Ember.js', 'http://todomvc.com/examples/emberjs'),
+ ('Closure', 'http://todomvc.com/examples/closure'),
+ ('GWT', 'http://todomvc.com/examples/gwt'),
+ ('Dart', 'http://todomvc.com/examples/vanilladart/build/web'),
+ ('Vanilla JS', 'http://todomvc.com/examples/vanillajs'),
+]
+
+
+class TodoMVCPage(page_module.Page):
+
+ def __init__(self, url, page_set, name):
+ super(TodoMVCPage, self).__init__(
+ url=url, page_set=page_set, name=name,
+ shared_page_state_class=shared_page_state.SharedDesktopPageState)
+
+ def RunPageInteractions(self, action_runner):
+ pass
+
+
+class TodoMVCPageSet(story.StorySet):
+
+ """ TodoMVC examples """
+
+ def __init__(self):
+ super(TodoMVCPageSet, self).__init__(
+ archive_data_file='data/todomvc.json',
+ cloud_storage_bucket=story.PUBLIC_BUCKET)
+
+ for name, url in URL_LIST:
+ self.AddStory(TodoMVCPage(url, self, name))
« 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