Commit e977cd3d authored by cduvall@chromium.org's avatar cduvall@chromium.org

Extensions Docs Server: Locale tests in integration_test.py

Added tests for English, Spanish, and Arabic rendering the samples page.

BUG=131095

Review URL: https://chromiumcodereview.appspot.com/10823136

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149661 0039d316-1c4b-4281-b951-d872f2087c98
parent 4b12413f
......@@ -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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment