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

Unified Diff: tools/telemetry/telemetry/page/page_test.py

Issue 16158006: Defining the test expectations object (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 5 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/telemetry/telemetry/page/page_set.py ('k') | tools/telemetry/telemetry/page/page_test_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/page/page_test.py
diff --git a/tools/telemetry/telemetry/page/page_test.py b/tools/telemetry/telemetry/page/page_test.py
index 12f227f7879cfe6fec25cb0927225efbfe8e54de..491ba500c5603a591b13f46d0df5296daa41f5bb 100644
--- a/tools/telemetry/telemetry/page/page_test.py
+++ b/tools/telemetry/telemetry/page/page_test.py
@@ -5,6 +5,7 @@ import logging
from telemetry.core import util
from telemetry.page import gtest_test_results
+from telemetry.page import test_expectations
from telemetry.page import page_test_results
from telemetry.page.actions import all_page_actions
from telemetry.page.actions import page_action
@@ -142,6 +143,11 @@ class PageTest(object):
allowing arbitrary page sets entered from the command-line."""
return None
+ def CreateExpectations(self, page_set): # pylint: disable=W0613
+ """Override to make this test generate its own expectations instead of
+ any that may have been defined in the page set."""
+ return test_expectations.TestExpectations()
+
def AddOutputOptions(self, parser):
parser.add_option('--output-format',
default=self.output_format_choices[0],
« no previous file with comments | « tools/telemetry/telemetry/page/page_set.py ('k') | tools/telemetry/telemetry/page/page_test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698