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

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

Issue 2073713003: [tools/perf] Keep both browsers open from the start of dual browser test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/dual_browser_story.py
diff --git a/tools/perf/page_sets/dual_browser_story.py b/tools/perf/page_sets/dual_browser_story.py
index e511044f5dcf4e1a0f5d10fa6c7851feb313fd53..036a9297fd10d633a4b4bc7f24c863a41f6b0355 100644
--- a/tools/perf/page_sets/dual_browser_story.py
+++ b/tools/perf/page_sets/dual_browser_story.py
@@ -101,6 +101,11 @@ class MultiBrowserSharedState(story_module.SharedState):
self.platform.network_controller.Open(wpr_mode,
browser_options.extra_wpr_args)
+ # Make sure all browsers are open before starting.
+ for story in story_set:
+ if story.browser_type not in self._browsers:
+ self._SetCurrentBrowser(story.browser_type)
+
@property
def current_tab(self):
return self._current_tab
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698