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

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

Issue 3066017: Test to verify the 'multiple downloads' infobar (Closed)
Patch Set: jrg Created 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/infobars.py
diff --git a/chrome/test/functional/infobars.py b/chrome/test/functional/infobars.py
index ebf1656137f2f167cbcc1d40f96069c871874aed..e2d1fc689522f96235ebdf974829e402f8704f2a 100644
--- a/chrome/test/functional/infobars.py
+++ b/chrome/test/functional/infobars.py
@@ -110,7 +110,6 @@ class InfobarTest(pyauto.PyUITest):
def testMultipleDownloadsInfobar(self):
"""Verify the mutiple downloads infobar."""
- assert pyauto.PyUITest.IsEnUS()
file_url = self.GetFileURLForPath(
os.path.join(self.DataDir(), 'downloads', 'download-a_zip_file.html'))
match_text = 'This site is attempting to download multiple files. ' \
@@ -128,10 +127,13 @@ class InfobarTest(pyauto.PyUITest):
infobars = tab_info['infobars']
self.assertTrue(infobars, 'Expected the multiple downloads infobar')
self.assertEqual(1, len(infobars))
- self.assertEqual(match_text, infobars[0]['text'])
self.assertEqual(2, len(infobars[0]['buttons']))
- self.assertEqual('Allow', infobars[0]['buttons'][0])
- self.assertEqual('Deny', infobars[0]['buttons'][1])
+ if pyauto.PyUITest.IsEnUS():
+ self.assertEqual(match_text, infobars[0]['text'])
+ self.assertEqual('Allow', infobars[0]['buttons'][0])
+ self.assertEqual('Deny', infobars[0]['buttons'][1])
+ else:
+ logging.warn('Not matching text in infobar for non en-US')
# Ensure we quit only after all downloads have completed
self.WaitForAllDownloadsToComplete()
downloaded_pkg = os.path.join(self.GetDownloadDirectory().value(),
« 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