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

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

Issue 189123002: Docserver: Correctly disambiguate between what 'platform' means in a features (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup debugging Created 6 years, 9 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 extensions_paths import EXTENSIONS 9 from extensions_paths import EXTENSIONS
10 from server_instance import ServerInstance 10 from server_instance import ServerInstance
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 'background': { 63 'background': {
64 'channel': 'stable', 64 'channel': 'stable',
65 'extension_types': ['extension', 'legacy_packaged_app', 'hosted_app'] 65 'extension_types': ['extension', 'legacy_packaged_app', 'hosted_app']
66 }, 66 },
67 'manifest_version': { 67 'manifest_version': {
68 'channel': 'stable', 68 'channel': 'stable',
69 'extension_types': 'all' 69 'extension_types': 'all'
70 }, 70 },
71 'omnibox': { 71 'omnibox': {
72 'channel': 'stable', 72 'channel': 'stable',
73 'extension_types': ['extension'] 73 'extension_types': ['extension'],
74 'platforms': ['win']
74 }, 75 },
75 'page_action': { 76 'page_action': {
76 'channel': 'stable', 77 'channel': 'stable',
77 'extension_types': ['extension'] 78 'extension_types': ['extension']
78 }, 79 },
79 'sockets': { 80 'sockets': {
80 'channel': 'dev', 81 'channel': 'dev',
81 'extension_types': ['platform_app'] 82 'extension_types': ['platform_app']
82 } 83 }
83 }), 84 }),
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 'dependencies': ['api:tabs'] 257 'dependencies': ['api:tabs']
257 } 258 }
258 } 259 }
259 self.assertEqual( 260 self.assertEqual(
260 expected_features, 261 expected_features,
261 self._server.features_bundle.GetAPIFeatures().Get()) 262 self._server.features_bundle.GetAPIFeatures().Get())
262 263
263 264
264 if __name__ == '__main__': 265 if __name__ == '__main__':
265 unittest.main() 266 unittest.main()
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/cron.yaml ('k') | chrome/common/extensions/docs/server2/features_utility.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698