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

Unified Diff: chrome/test/functional/media_stream_infobar.py

Issue 10832084: Fixed race condition in media_stream_infobar.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added docstrings Created 8 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 | « no previous file | chrome/test/functional/webrtc_call.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/media_stream_infobar.py
diff --git a/chrome/test/functional/media_stream_infobar.py b/chrome/test/functional/media_stream_infobar.py
index 52b574c0603e1d32a6ddd35c300fe64668ff6cd6..aec1158a1d270ebb9af82c1cfe828c79dea2102c 100755
--- a/chrome/test/functional/media_stream_infobar.py
+++ b/chrome/test/functional/media_stream_infobar.py
@@ -5,9 +5,10 @@
import pyauto_functional
import pyauto
+import webrtc_test_base
-class MediaStreamInfobarTest(pyauto.PyUITest):
+class MediaStreamInfobarTest(webrtc_test_base.WebrtcTestBase):
"""Performs basic tests on the media stream infobar.
This infobar is used to grant or deny access to WebRTC capabilities for a
@@ -73,8 +74,9 @@ class MediaStreamInfobarTest(pyauto.PyUITest):
self.WaitForInfobarCount(1)
self.PerformActionOnInfobar(with_action, infobar_index=0)
+ self.WaitForGetUserMediaResult(tab_index=0)
- return self.ExecuteJavascript('obtainGetUserMediaResult()')
+ return self.GetUserMediaResult(tab_index=0)
if __name__ == '__main__':
« no previous file with comments | « no previous file | chrome/test/functional/webrtc_call.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698