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

Side by Side Diff: chrome/common/extensions/docs/server2/cron_servlet_test.py

Issue 145913003: Docserver: Fix cron test broken by requirement of whats_new.json. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import unittest 6 import unittest
7 7
8 from appengine_wrappers import GetAppVersion 8 from appengine_wrappers import GetAppVersion
9 from app_yaml_helper import AppYamlHelper 9 from app_yaml_helper import AppYamlHelper
10 from cron_servlet import CronServlet 10 from cron_servlet import CronServlet
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 'extensions': { 113 'extensions': {
114 'storage.html': '<h1>storage.html</h1> contents' 114 'storage.html': '<h1>storage.html</h1> contents'
115 }, 115 },
116 }, 116 },
117 'json': { 117 'json': {
118 'chrome_sidenav.json': '{}', 118 'chrome_sidenav.json': '{}',
119 'content_providers.json': ReadFile(CONTENT_PROVIDERS), 119 'content_providers.json': ReadFile(CONTENT_PROVIDERS),
120 'manifest.json': '{}', 120 'manifest.json': '{}',
121 'permissions.json': '{}', 121 'permissions.json': '{}',
122 'strings.json': '{}', 122 'strings.json': '{}',
123 'whats_new.json': '{}',
123 }, 124 },
124 } 125 }
125 } 126 }
126 } 127 }
127 128
128 updates = [] 129 updates = []
129 130
130 def app_yaml_update(version): 131 def app_yaml_update(version):
131 return MoveTo(SERVER2, { 132 return MoveTo(SERVER2, {
132 'app.yaml': AppYamlHelper.GenerateAppYaml(version) 133 'app.yaml': AppYamlHelper.GenerateAppYaml(version)
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 CronServlet(Request.ForTest('trunk'), delegate_for_test=delegate).Get() 229 CronServlet(Request.ForTest('trunk'), delegate_for_test=delegate).Get()
229 self.assertEqual(AppYamlHelper.GenerateAppYaml('2-1-0'), 230 self.assertEqual(AppYamlHelper.GenerateAppYaml('2-1-0'),
230 file_systems[-1].ReadSingle(APP_YAML).Get()) 231 file_systems[-1].ReadSingle(APP_YAML).Get())
231 self.assertEqual('<h1>y</h1> u not update!', 232 self.assertEqual('<h1>y</h1> u not update!',
232 file_systems[-1].ReadSingle(storage_html_path).Get()) 233 file_systems[-1].ReadSingle(storage_html_path).Get())
233 self.assertEqual('important content!', 234 self.assertEqual('important content!',
234 file_systems[-1].ReadSingle(static_txt_path).Get()) 235 file_systems[-1].ReadSingle(static_txt_path).Get())
235 236
236 if __name__ == '__main__': 237 if __name__ == '__main__':
237 unittest.main() 238 unittest.main()
OLDNEW
« 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