OLD | NEW |
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 Loading... |
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 Loading... |
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() |
OLD | NEW |