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(), |