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

Unified Diff: chrome/common/extensions/docs/server2/integration_test.py

Issue 10823136: Extensions Docs Server: Locale tests in integration_test.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/integration_test.py
diff --git a/chrome/common/extensions/docs/server2/integration_test.py b/chrome/common/extensions/docs/server2/integration_test.py
index 4ccf97594e7f5474f9c806e4530d84111b593998..57a1a3a12d7ec538e1ca64dedddea721151c33c3 100755
--- a/chrome/common/extensions/docs/server2/integration_test.py
+++ b/chrome/common/extensions/docs/server2/integration_test.py
@@ -46,6 +46,16 @@ class IntegrationTest(unittest.TestCase):
self.assertEqual(404, bad_response.status)
self.assertTrue(bad_response.out.getvalue())
+ def testLocales(self):
+ # Use US English, Spanish, and Arabic.
+ for lang in ['en-US', 'es', 'ar']:
+ request = _MockRequest('samples.html')
+ request.headers['Accept-Language'] = lang + ';q=0.8'
+ response = _MockResponse()
+ Handler(request, response, local_path='../..').get()
+ self.assertEqual(200, response.status)
+ self.assertTrue(response.out.getvalue())
+
def testWarmupRequest(self):
for branch in ['dev', 'trunk', 'beta', 'stable']:
handler.BRANCH_UTILITY_MEMCACHE.Set(
« 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