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

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

Issue 595033002: Move declarative_webrequest_custom_bindings.js. and declarative_web_request.json. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 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 extensions_paths import CHROME_API, CHROME_EXTENSIONS 9 from extensions_paths import CHROME_API, CHROME_EXTENSIONS
10 from mock_file_system import MockFileSystem 10 from mock_file_system import MockFileSystem
(...skipping 15 matching lines...) Expand all
26 'app.runtime.foo': {'extension_types': ['extension']}, 26 'app.runtime.foo': {'extension_types': ['extension']},
27 'declarativeWebRequest': {'extension_types': ['extension']}, 27 'declarativeWebRequest': {'extension_types': ['extension']},
28 'devtools.inspectedWindow': {'extension_types': ['extension']}, 28 'devtools.inspectedWindow': {'extension_types': ['extension']},
29 'input': {'extension_types': 'all'}, 29 'input': {'extension_types': 'all'},
30 'input.ime': {'extension_types': ['extension', 'platform_app']}, 30 'input.ime': {'extension_types': ['extension', 'platform_app']},
31 'storage': {'extension_types': ['extension']}, 31 'storage': {'extension_types': ['extension']},
32 }), 32 }),
33 '_manifest_features.json': '{}', 33 '_manifest_features.json': '{}',
34 '_permission_features.json': '{}', 34 '_permission_features.json': '{}',
35 'alarms.idl': ReadFile(CHROME_API, 'alarms.idl'), 35 'alarms.idl': ReadFile(CHROME_API, 'alarms.idl'),
36 'declarative_web_request.json': ReadFile(
37 CHROME_API, 'declarative_web_request.json'),
38 'input_ime.json': ReadFile(CHROME_API, 'input_ime.json'), 36 'input_ime.json': ReadFile(CHROME_API, 'input_ime.json'),
39 'page_action.json': ReadFile(CHROME_API, 'page_action.json'), 37 'page_action.json': ReadFile(CHROME_API, 'page_action.json'),
40 }, 38 },
41 'docs': { 39 'docs': {
42 'templates': { 40 'templates': {
43 'json': { 41 'json': {
44 'manifest.json': '{}', 42 'manifest.json': '{}',
45 'permissions.json': '{}', 43 'permissions.json': '{}',
46 } 44 }
47 } 45 }
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 # Check that 'app' is resolved successfully in apps, but is None otherwise. 144 # Check that 'app' is resolved successfully in apps, but is None otherwise.
147 self.assertNotEqual( 145 self.assertNotEqual(
148 None, 146 None,
149 self._platform_bundle.GetReferenceResolver('apps').GetLink('app')) 147 self._platform_bundle.GetReferenceResolver('apps').GetLink('app'))
150 self.assertEqual( 148 self.assertEqual(
151 None, 149 None,
152 self._platform_bundle.GetReferenceResolver('extensions').GetLink('app')) 150 self._platform_bundle.GetReferenceResolver('extensions').GetLink('app'))
153 151
154 if __name__ == '__main__': 152 if __name__ == '__main__':
155 unittest.main() 153 unittest.main()
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/api_models_test.py ('k') | chrome/common/extensions_api_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698