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

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

Issue 721443005: [Telemetry] Move test.DidRunTest call to shared_page_state.TearDown(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Chris's comment Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/telemetry/telemetry/page/page_runner.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/page/shared_page_state.py
diff --git a/tools/telemetry/telemetry/page/shared_page_state.py b/tools/telemetry/telemetry/page/shared_page_state.py
index 2858ef4f373cc3d40e4c4aa82aebc8f61dfbca34..913914e01c3130e94da1f45eae2a7c7ff41e5c44 100644
--- a/tools/telemetry/telemetry/page/shared_page_state.py
+++ b/tools/telemetry/telemetry/page/shared_page_state.py
@@ -210,7 +210,10 @@ class SharedPageState(object):
self._ImplicitPageNavigation()
self._test.RunPage(self._current_page, self._current_tab, results)
- def TearDown(self):
+ def TearDown(self, results):
+ # NOTE: this is a HACK to get page_runner to be generic enough for any
+ # user_story. Other SharedUserStory should not call DidRunTest this way.
+ self._test.DidRunTest(self.browser, results)
self._StopBrowser()
def _StopBrowser(self):
« no previous file with comments | « tools/telemetry/telemetry/page/page_runner.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698