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

Unified Diff: chrome/test/pyautolib/pyauto.py

Issue 9159025: [pyauto] Force plugin load at startup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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 | « chrome/test/functional/process_count.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/pyauto.py
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py
index 8f15d5dca1b483d6973ebf10184248ef5f789e7a..58714d987eee52913baee6d7a180484626ad08b8 100755
--- a/chrome/test/pyautolib/pyauto.py
+++ b/chrome/test/pyautolib/pyauto.py
@@ -194,6 +194,12 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
# on ChromeOS).
self.SetUp()
+ # Forcibly trigger all plugins to get registered. crbug.com/94123
+ # Sometimes flash files loaded too quickly after firing browser
+ # ends up getting downloaded, which seems to indicate that the plugin
+ # hasn't been registered yet.
+ self.GetPluginsInfo()
+
# TODO(dtu): Remove this after crosbug.com/4558 is fixed.
if self.IsChromeOS():
self.WaitUntil(lambda: not self.GetNetworkInfo()['offline_mode'])
« no previous file with comments | « chrome/test/functional/process_count.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698