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

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

Issue 22824042: Docserver: SidenavDataSource refactor, transition to DataSourceRegistry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup, deleted unused files/import Created 7 years, 3 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
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 'public': { 96 'public': {
97 'apps': { 97 'apps': {
98 'storage.html': 'storage.html contents' 98 'storage.html': 'storage.html contents'
99 }, 99 },
100 'extensions': { 100 'extensions': {
101 'storage.html': 'storage.html contents' 101 'storage.html': 'storage.html contents'
102 }, 102 },
103 }, 103 },
104 'json': { 104 'json': {
105 'manifest.json': '{}', 105 'manifest.json': '{}',
106 'strings.json': '{}' 106 'strings.json': '{}',
107 'apps_sidenav.json': '{}',
108 'extensions_sidenav.json': '{}',
107 }, 109 },
108 } 110 }
109 } 111 }
110 } 112 }
111 113
112 updates = [] 114 updates = []
113 115
114 def app_yaml_update(version): 116 def app_yaml_update(version):
115 return {'docs': {'server2': { 117 return {'docs': {'server2': {
116 'app.yaml': AppYamlHelper.GenerateAppYaml(version) 118 'app.yaml': AppYamlHelper.GenerateAppYaml(version)
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 CronServlet(Request.ForTest('trunk'), delegate_for_test=delegate).Get() 212 CronServlet(Request.ForTest('trunk'), delegate_for_test=delegate).Get()
211 self.assertEqual(AppYamlHelper.GenerateAppYaml('2-1-0'), 213 self.assertEqual(AppYamlHelper.GenerateAppYaml('2-1-0'),
212 file_systems[-1].ReadSingle(app_yaml_path)) 214 file_systems[-1].ReadSingle(app_yaml_path))
213 self.assertEqual('y u not update!', 215 self.assertEqual('y u not update!',
214 file_systems[-1].ReadSingle(storage_html_path)) 216 file_systems[-1].ReadSingle(storage_html_path))
215 self.assertEqual('important content!', 217 self.assertEqual('important content!',
216 file_systems[-1].ReadSingle(static_txt_path)) 218 file_systems[-1].ReadSingle(static_txt_path))
217 219
218 if __name__ == '__main__': 220 if __name__ == '__main__':
219 unittest.main() 221 unittest.main()
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/cron.yaml ('k') | chrome/common/extensions/docs/server2/data_source.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698