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

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

Issue 92143003: Docserver: Reorganise the site templates into a single site.html file which (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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
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 from copy import deepcopy 6 from copy import deepcopy
7 import json 7 import json
8 import unittest 8 import unittest
9 9
10 from compiled_file_system import CompiledFileSystem 10 from compiled_file_system import CompiledFileSystem
11 from features_bundle import FeaturesBundle 11 from features_bundle import FeaturesBundle
12 from future import Future 12 from future import Future
13 import manifest_data_source 13 import manifest_data_source
14 from object_store_creator import ObjectStoreCreator 14 from object_store_creator import ObjectStoreCreator
15 15
16 16
17 convert_and_annotate_docs = { 17 convert_and_annotate_docs = {
18 'name': { 18 'name': {
19 'example': "My {{title}}", 19 'example': "My {{platform}}",
20 'name': 'name', 20 'name': 'name',
21 'level': 'required' 21 'level': 'required'
22 }, 22 },
23 'doc2': { 23 'doc2': {
24 'level': 'required', 24 'level': 'required',
25 'name': 'doc2' 25 'name': 'doc2'
26 }, 26 },
27 'doc1': { 27 'doc1': {
28 'level': 'required', 28 'level': 'required',
29 'name': 'doc1', 29 'name': 'doc1',
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 class FakeServerInstance(object): 288 class FakeServerInstance(object):
289 def __init__(self): 289 def __init__(self):
290 self.features_bundle = FakeFeaturesBundle() 290 self.features_bundle = FakeFeaturesBundle()
291 self.object_store_creator = ObjectStoreCreator.ForTest() 291 self.object_store_creator = ObjectStoreCreator.ForTest()
292 292
293 mds = manifest_data_source.ManifestDataSource(FakeServerInstance(), None) 293 mds = manifest_data_source.ManifestDataSource(FakeServerInstance(), None)
294 self.assertEqual(expected_app, mds.get('apps')) 294 self.assertEqual(expected_app, mds.get('apps'))
295 295
296 if __name__ == '__main__': 296 if __name__ == '__main__':
297 unittest.main() 297 unittest.main()
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/manifest_data_source.py ('k') | chrome/common/extensions/docs/server2/render_servlet.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698