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

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

Issue 216943006: Remove ReferenceResolver dependency in APIDataSource. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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 content_providers import IgnoreMissingContentProviders 10 from content_providers import IgnoreMissingContentProviders
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 'examples': { 102 'examples': {
103 'examples.txt': 'examples.txt contents' 103 'examples.txt': 'examples.txt contents'
104 }, 104 },
105 'server2': { 105 'server2': {
106 'app.yaml': AppYamlHelper.GenerateAppYaml('2-0-8') 106 'app.yaml': AppYamlHelper.GenerateAppYaml('2-0-8')
107 }, 107 },
108 'static': { 108 'static': {
109 'static.txt': 'static.txt contents' 109 'static.txt': 'static.txt contents'
110 }, 110 },
111 'templates': { 111 'templates': {
112 'articles': {
113 'activeTab.html': 'activeTab.html contents'
114 },
115 'intros': {
116 'browserAction.html': 'activeTab.html contents'
117 },
112 'private': { 118 'private': {
113 'table_of_contents.html': 'table_of_contents.html contents', 119 'table_of_contents.html': 'table_of_contents.html contents',
114 }, 120 },
115 'public': { 121 'public': {
116 'apps': { 122 'apps': {
117 'storage.html': '<h1>storage.html</h1> contents' 123 'storage.html': '<h1>storage.html</h1> contents'
118 }, 124 },
119 'extensions': { 125 'extensions': {
120 'storage.html': '<h1>storage.html</h1> contents' 126 'storage.html': '<h1>storage.html</h1> contents'
121 }, 127 },
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 self.assertEqual(AppYamlHelper.GenerateAppYaml('2-1-0'), 242 self.assertEqual(AppYamlHelper.GenerateAppYaml('2-1-0'),
237 file_systems[-1].ReadSingle(APP_YAML).Get()) 243 file_systems[-1].ReadSingle(APP_YAML).Get())
238 self.assertEqual('<h1>y</h1> u not update!', 244 self.assertEqual('<h1>y</h1> u not update!',
239 file_systems[-1].ReadSingle(storage_html_path).Get()) 245 file_systems[-1].ReadSingle(storage_html_path).Get())
240 self.assertEqual('important content!', 246 self.assertEqual('important content!',
241 file_systems[-1].ReadSingle(static_txt_path).Get()) 247 file_systems[-1].ReadSingle(static_txt_path).Get())
242 248
243 249
244 if __name__ == '__main__': 250 if __name__ == '__main__':
245 unittest.main() 251 unittest.main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698