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

Unified Diff: tools/perf/page_sets/__init__.py

Issue 2885203003: [Telemetry] Add StoryExpectations to loading.desktop; disabling uol.com story on lin… (Closed)
Patch Set: Created 3 years, 7 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/benchmarks/loading.py ('k') | tools/perf/page_sets/loading_desktop.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/__init__.py
diff --git a/tools/perf/page_sets/__init__.py b/tools/perf/page_sets/__init__.py
index 5a112350469c309e250c10a3f6a3a9aac4cad9b3..7504b80dcbf109193bae7ed8435e17a907ae1705 100644
--- a/tools/perf/page_sets/__init__.py
+++ b/tools/perf/page_sets/__init__.py
@@ -13,8 +13,9 @@ from telemetry import story
# Import all submodules' PageSet classes.
start_dir = os.path.dirname(os.path.abspath(__file__))
top_level_dir = os.path.dirname(start_dir)
-base_class = story.StorySet
+base_classes = [story.StorySet, story.expectations.StoryExpectations]
-for cls in discover.DiscoverClasses(
- start_dir, top_level_dir, base_class).values():
- setattr(sys.modules[__name__], cls.__name__, cls)
+for base_class in base_classes:
+ for cls in discover.DiscoverClasses(
+ start_dir, top_level_dir, base_class).values():
+ setattr(sys.modules[__name__], cls.__name__, cls)
« no previous file with comments | « tools/perf/benchmarks/loading.py ('k') | tools/perf/page_sets/loading_desktop.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698