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

Side by Side Diff: chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py

Issue 385703005: Docserver: Modify doc inlining so all relevant data is present in availability_finder.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import json 5 import json
6 6
7 from extensions_paths import CHROME_EXTENSIONS 7 from extensions_paths import CHROME_EXTENSIONS
8 from test_file_system import MoveAllTo 8 from test_file_system import MoveAllTo
9 9
10 10
11 TABS_SCHEMA_BRANCHES = MoveAllTo(CHROME_EXTENSIONS, { 11 TABS_SCHEMA_BRANCHES = MoveAllTo(CHROME_EXTENSIONS, {
12 'trunk': { 12 'trunk': {
13 'docs': { 13 'docs': {
14 'templates': { 14 'templates': {
15 'json': { 15 'json': {
16 'api_availabilities.json': '{}', 16 'api_availabilities.json': '{}',
17 'intro_tables.json': '{}' 17 'intro_tables.json': '{}'
18 } 18 }
19 } 19 }
20 }, 20 },
21 'api': { 21 'api': {
22 '_api_features.json': '{}', 22 '_api_features.json': '{}',
23 '_manifest_features.json': '{}', 23 '_manifest_features.json': '{}',
24 '_permission_features.json': '{}', 24 '_permission_features.json': '{}',
25 'fake_tabs.idl': '\n'.join(['// Some description here.',
26 'namespace fakeTabs {',
27 ' dictionary WasImplicitlyInlinedType {};',
28 ' interface Functions {',
29 ' // $ref:WasImplicitlyInlinedType',
30 ' static void myFunc();',
31 ' // $ref:WasImplicitlyInlinedType',
32 ' static void anotherFunc();',
33 ' };',
34 '};']),
25 'tabs.json': json.dumps([{ 35 'tabs.json': json.dumps([{
26 'namespace': 'tabs', 36 'namespace': 'tabs',
27 'types': [ 37 'types': [
28 { 38 {
29 'id': 'Tab', 39 'id': 'Tab',
30 'type': 'any', 40 'type': 'any',
31 'properties': { 41 'properties': {
32 'url': { 42 'url': {
33 'type': 'any' 43 'type': 'any'
34 }, 44 },
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } 171 }
162 ] 172 ]
163 }]) 173 }])
164 } 174 }
165 }, 175 },
166 '1500': { 176 '1500': {
167 'api': { 177 'api': {
168 '_api_features.json': "{}", 178 '_api_features.json': "{}",
169 '_manifest_features.json': "{}", 179 '_manifest_features.json': "{}",
170 '_permission_features.json': "{}", 180 '_permission_features.json': "{}",
181 'fake_tabs.idl': '\n'.join(['// Some description here.',
182 'namespace fakeTabs {',
183 ' dictionary WasImplicitlyInlinedType {};',
184 ' interface Functions {',
185 ' // $ref:WasImplicitlyInlinedType',
186 ' static void myFunc();',
187 ' // $ref:WasImplicitlyInlinedType',
188 ' static void anotherFunc();',
189 ' };',
190 '};']),
171 'tabs.json': json.dumps([{ 191 'tabs.json': json.dumps([{
172 'namespace': 'tabs', 192 'namespace': 'tabs',
173 'types': [ 193 'types': [
174 { 194 {
175 'id': 'Tab', 195 'id': 'Tab',
176 'properties': { 196 'properties': {
177 'url': {}, 197 'url': {},
178 'index': {}, 198 'index': {},
179 'selected': {}, 199 'selected': {},
180 'id': {}, 200 'id': {},
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 } 278 }
259 ] 279 ]
260 }]) 280 }])
261 } 281 }
262 }, 282 },
263 '1453': { 283 '1453': {
264 'api': { 284 'api': {
265 '_api_features.json': "{}", 285 '_api_features.json': "{}",
266 '_manifest_features.json': "{}", 286 '_manifest_features.json': "{}",
267 '_permission_features.json': "{}", 287 '_permission_features.json': "{}",
288 'fake_tabs.idl': '\n'.join(['// Some description here.',
289 'namespace fakeTabs {',
290 ' dictionary WasImplicitlyInlinedType {};',
291 ' interface Functions {',
292 ' // $ref:WasImplicitlyInlinedType',
293 ' static void myFunc();',
294 ' // $ref:WasImplicitlyInlinedType',
295 ' static void anotherFunc();',
296 ' };',
297 '};']),
268 'tabs.json': json.dumps([{ 298 'tabs.json': json.dumps([{
269 'namespace': 'tabs', 299 'namespace': 'tabs',
270 'types': [ 300 'types': [
271 { 301 {
272 'id': 'Tab', 302 'id': 'Tab',
273 'properties': { 303 'properties': {
274 'url': {}, 304 'url': {},
275 'index': {}, 305 'index': {},
276 'selected': {}, 306 'selected': {},
277 'id': {}, 307 'id': {},
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 ] 380 ]
351 } 381 }
352 ] 382 ]
353 }]) 383 }])
354 } 384 }
355 }, 385 },
356 '1410': { 386 '1410': {
357 'api': { 387 'api': {
358 '_manifest_features.json': "{}", 388 '_manifest_features.json': "{}",
359 '_permission_features.json': "{}", 389 '_permission_features.json': "{}",
390 'fake_tabs.idl': '\n'.join(['// Some description here.',
391 'namespace fakeTabs {',
392 ' dictionary WasImplicitlyInlinedType {};',
393 ' interface Functions {',
394 ' // $ref:WasImplicitlyInlinedType',
395 ' static void myFunc();',
396 ' // $ref:WasImplicitlyInlinedType',
397 ' static void anotherFunc();',
398 ' };',
399 '};']),
360 'tabs.json': json.dumps([{ 400 'tabs.json': json.dumps([{
361 'namespace': 'tabs', 401 'namespace': 'tabs',
362 'types': [ 402 'types': [
363 { 403 {
364 'id': 'Tab', 404 'id': 'Tab',
365 'properties': { 405 'properties': {
366 'url': {}, 406 'url': {},
367 'index': {}, 407 'index': {},
368 'selected': {}, 408 'selected': {},
369 'id': {}, 409 'id': {},
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 ] 468 ]
429 } 469 }
430 ] 470 ]
431 }]) 471 }])
432 } 472 }
433 }, 473 },
434 '1364': { 474 '1364': {
435 'api': { 475 'api': {
436 '_manifest_features.json': "{}", 476 '_manifest_features.json': "{}",
437 '_permission_features.json': "{}", 477 '_permission_features.json': "{}",
478 'fake_tabs.idl': '\n'.join(['// Some description here.',
479 'namespace fakeTabs {',
480 ' dictionary WasImplicitlyInlinedType {};',
481 ' interface Functions {',
482 ' // $ref:WasImplicitlyInlinedType',
ahernandez 2014/07/10 22:03:15 I need a bit of help with this IDL file test. I wa
not at google - send to devlin 2014/07/15 21:02:38 here's an example: https://code.google.com/p/chrom
483 ' static void myFunc();',
484 ' static void anotherFunc();',
485 ' };',
486 '};']),
438 'tabs.json': json.dumps([{ 487 'tabs.json': json.dumps([{
439 'namespace': 'tabs', 488 'namespace': 'tabs',
440 'types': [ 489 'types': [
441 { 490 {
442 'id': 'Tab', 491 'id': 'Tab',
443 'properties': { 492 'properties': {
444 'url': {}, 493 'url': {},
445 'index': {}, 494 'index': {},
446 'selected': {}, 495 'selected': {},
447 'id': {}, 496 'id': {},
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
1158 ] 1207 ]
1159 }]) 1208 }])
1160 } 1209 }
1161 }, 1210 },
1162 '782': { 1211 '782': {
1163 'api': { 1212 'api': {
1164 'extension_api.json': "{}" 1213 'extension_api.json': "{}"
1165 } 1214 }
1166 } 1215 }
1167 }) 1216 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698