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

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

Issue 1410683014: [tools/perf] Add dummy benchmark that produces Gaussian value with a known mean and std (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/dummy_page.html ('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 2015 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 from telemetry.page import page as page_module
5 from telemetry import story
6
7
8 class DummyPage(page_module.Page):
9
10 def __init__(self, page_set):
11 super(DummyPage, self).__init__(
12 url='file://dummy_page.html',
13 page_set=page_set)
14
15 def PerformPageInteractions(self, action_runner):
16 assert action_runner.EvaluateJavaScript('1 + window.__dummy_value') == 2
17
18
19 class DummyStorySet(story.StorySet):
20
21 def __init__(self):
22 super(DummyStorySet, self).__init__()
23 self.AddStory(DummyPage(self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/dummy_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698