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

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

Issue 63203002: Docserver: Make the hand-written Cron methods run first rather than last, since (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jeffrey Created 7 years, 1 month 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 server_instance import ServerInstance 9 from server_instance import ServerInstance
10 from test_file_system import TestFileSystem 10 from test_file_system import TestFileSystem
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 'example': {} 166 'example': {}
167 }, 167 },
168 'sockets': { 168 'sockets': {
169 'name': 'sockets', 169 'name': 'sockets',
170 'channel': 'dev', 170 'channel': 'dev',
171 'platforms': ['apps'] 171 'platforms': ['apps']
172 } 172 }
173 } 173 }
174 self.assertEqual( 174 self.assertEqual(
175 expected_features, 175 expected_features,
176 self._server.features_bundle.GetManifestFeatures()) 176 self._server.features_bundle.GetManifestFeatures().Get())
177 177
178 def testPermissionFeatures(self): 178 def testPermissionFeatures(self):
179 expected_features = { 179 expected_features = {
180 'bluetooth': { 180 'bluetooth': {
181 'name': 'bluetooth', 181 'name': 'bluetooth',
182 'channel': 'dev', 182 'channel': 'dev',
183 'platforms': ['apps'], 183 'platforms': ['apps'],
184 }, 184 },
185 'fakeUnsupportedFeature': { 185 'fakeUnsupportedFeature': {
186 'name': 'fakeUnsupportedFeature', 186 'name': 'fakeUnsupportedFeature',
(...skipping 12 matching lines...) Expand all
199 }, 199 },
200 'tabs': { 200 'tabs': {
201 'name': 'tabs', 201 'name': 'tabs',
202 'channel': 'stable', 202 'channel': 'stable',
203 'platforms': ['extensions'], 203 'platforms': ['extensions'],
204 'partial': 'permissions/tabs.html' 204 'partial': 'permissions/tabs.html'
205 } 205 }
206 } 206 }
207 self.assertEqual( 207 self.assertEqual(
208 expected_features, 208 expected_features,
209 self._server.features_bundle.GetPermissionFeatures()) 209 self._server.features_bundle.GetPermissionFeatures().Get())
210 210
211 def testAPIFeatures(self): 211 def testAPIFeatures(self):
212 expected_features = { 212 expected_features = {
213 'audioCapture': { 213 'audioCapture': {
214 'name': 'audioCapture', 214 'name': 'audioCapture',
215 'channel': 'stable', 215 'channel': 'stable',
216 'platforms': ['apps'] 216 'platforms': ['apps']
217 }, 217 },
218 'background': { 218 'background': {
219 'name': 'background', 219 'name': 'background',
(...skipping 27 matching lines...) Expand all
247 }, 247 },
248 'windows': { 248 'windows': {
249 'name': 'windows', 249 'name': 'windows',
250 'platforms': ['extensions'], 250 'platforms': ['extensions'],
251 'contexts': ['blessed_extension'], 251 'contexts': ['blessed_extension'],
252 'dependencies': ['api:tabs'] 252 'dependencies': ['api:tabs']
253 } 253 }
254 } 254 }
255 self.assertEqual( 255 self.assertEqual(
256 expected_features, 256 expected_features,
257 self._server.features_bundle.GetAPIFeatures()) 257 self._server.features_bundle.GetAPIFeatures().Get())
258 258
259 if __name__ == '__main__': 259 if __name__ == '__main__':
260 unittest.main() 260 unittest.main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698