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/permissions_data_source_test.py

Issue 23494015: Docserver: fix bug where we were overriding hand-written descriptions of (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: small clarification 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 | 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 import json 6 import json
7 import unittest 7 import unittest
8 8
9 from compiled_file_system import CompiledFileSystem 9 from compiled_file_system import CompiledFileSystem
10 from object_store_creator import ObjectStoreCreator 10 from object_store_creator import ObjectStoreCreator
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 'commandLinePrivate': { 56 'commandLinePrivate': {
57 'extension_types': 'all' 57 'extension_types': 'all'
58 }, 58 },
59 'cookies': { 59 'cookies': {
60 'extension_types': ['platform_app'] 60 'extension_types': ['platform_app']
61 } 61 }
62 }), 62 }),
63 '_api_features.json': json.dumps({ 63 '_api_features.json': json.dumps({
64 'cookies': { 64 'cookies': {
65 'dependencies': ['permission:cookies'] 65 'dependencies': ['permission:cookies']
66 },
67 'alarms': {
68 'dependencies': ['permission:alarms']
66 } 69 }
67 }) 70 })
68 }) 71 })
69 72
70 class PermissionsDataSourceTest(unittest.TestCase): 73 class PermissionsDataSourceTest(unittest.TestCase):
71 def testCreatePermissionsDataSource(self): 74 def testCreatePermissionsDataSource(self):
72 expected_extensions = [ 75 expected_extensions = [
73 { 76 {
74 'name': 'activeTab', 77 'name': 'activeTab',
75 'anchor': 'activeTab', 78 'anchor': 'activeTab',
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 140
138 self.assertEqual( 141 self.assertEqual(
139 expected_extensions, 142 expected_extensions,
140 permissions_data_source.get('declare_extensions')) 143 permissions_data_source.get('declare_extensions'))
141 self.assertEqual( 144 self.assertEqual(
142 expected_apps, 145 expected_apps,
143 permissions_data_source.get('declare_apps')) 146 permissions_data_source.get('declare_apps'))
144 147
145 if __name__ == '__main__': 148 if __name__ == '__main__':
146 unittest.main() 149 unittest.main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698