OLD | NEW |
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 CANNED_CHANNELS = { | 7 CANNED_CHANNELS = { |
8 'trunk': 'trunk', | 8 'trunk': 'trunk', |
9 'dev': 28, | 9 'dev': 28, |
10 'beta': 27, | 10 'beta': 27, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 'api_availabilities.json': json.dumps({ | 57 'api_availabilities.json': json.dumps({ |
58 'tester': { | 58 'tester': { |
59 'channel': 'stable', | 59 'channel': 'stable', |
60 'version': 42 | 60 'version': 42 |
61 } | 61 } |
62 }), | 62 }), |
63 'intro_tables.json': json.dumps({ | 63 'intro_tables.json': json.dumps({ |
64 'tester': { | 64 'tester': { |
65 'Permissions': [ | 65 'Permissions': [ |
66 { | 66 { |
67 'permission': 'tester' | 67 'perm': 'tester', |
| 68 'text': '"thing1", "thing2"' |
68 }, | 69 }, |
69 { | 70 { |
70 'extra': 'is an API.' | 71 'text': 'is an API for testing things.' |
71 } | 72 } |
72 ], | 73 ], |
73 'LearnMore': [ | 74 'Learn More': [ |
74 { | 75 { |
75 'href': 'https://tester.test.com/welcome.html', | 76 'link': 'https://tester.test.com/welcome.html', |
76 'content': 'Welcome!' | 77 'text': 'Welcome!' |
77 } | 78 } |
78 ] | 79 ] |
79 } | 80 } |
80 }) | 81 }) |
| 82 }, |
| 83 'private': { |
| 84 'intro_tables': { |
| 85 'trunk_message.html': 'available on trunk' |
| 86 } |
81 } | 87 } |
82 } | 88 } |
83 } | 89 } |
84 } | 90 } |
85 | 91 |
86 CANNED_API_FILE_SYSTEM_DATA = { | 92 CANNED_API_FILE_SYSTEM_DATA = { |
87 'trunk': { | 93 'trunk': { |
88 'api': { | 94 'api': { |
89 '_api_features.json': json.dumps({ | 95 '_api_features.json': json.dumps({ |
90 'contextMenus': { | 96 'contextMenus': { |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 'alarms': { | 408 'alarms': { |
403 'channel': 'beta' | 409 'channel': 'beta' |
404 }, | 410 }, |
405 'bookmarks': { | 411 'bookmarks': { |
406 'channel': 'stable' | 412 'channel': 'stable' |
407 }, | 413 }, |
408 'webRequest': { | 414 'webRequest': { |
409 'channel': 'stable' | 415 'channel': 'stable' |
410 } | 416 } |
411 }), | 417 }), |
| 418 'alarms.idl': 'alarms contents', |
412 'idle.json': 'idle contents', | 419 'idle.json': 'idle contents', |
413 'input_ime.json': 'input.ime contents', | 420 'input_ime.json': 'input.ime contents', |
414 'menus.json': 'menus contents', | 421 'menus.json': 'menus contents', |
415 'tabs.json': 'tabs contents', | 422 'tabs.json': 'tabs contents', |
416 'windows.json': 'windows contents' | 423 'windows.json': 'windows contents' |
417 } | 424 } |
418 }, | 425 }, |
419 '1229': { | 426 '1229': { |
420 'api': { | 427 'api': { |
421 '_manifest_features.json': json.dumps({ | 428 '_manifest_features.json': json.dumps({ |
422 'page_action': { | 429 'page_action': { |
423 'channel': 'stable' | 430 'channel': 'stable' |
424 }, | 431 }, |
425 'runtime': { | 432 'runtime': { |
426 'channel': 'stable' | 433 'channel': 'stable' |
427 }, | 434 }, |
428 'web_request': { | 435 'web_request': { |
429 'channel': 'stable' | 436 'channel': 'stable' |
430 } | 437 } |
431 }), | 438 }), |
432 '_permission_features.json': json.dumps({ | 439 '_permission_features.json': json.dumps({ |
433 'bookmarks': { | 440 'bookmarks': { |
434 'channel': 'stable' | 441 'channel': 'stable' |
435 }, | 442 }, |
436 'systemInfo.display': { | 443 'systemInfo.display': { |
437 'channel': 'beta' | 444 'channel': 'beta' |
438 } | 445 } |
439 }), | 446 }), |
| 447 'alarms.idl': 'alarms contents', |
440 'idle.json': 'idle contents', | 448 'idle.json': 'idle contents', |
441 'input_ime.json': 'input.ime contents', | 449 'input_ime.json': 'input.ime contents', |
442 'menus.json': 'menus contents', | 450 'menus.json': 'menus contents', |
| 451 'system_info_display.idl': 'systemInfo.display contents', |
443 'tabs.json': 'tabs contents' | 452 'tabs.json': 'tabs contents' |
444 } | 453 } |
445 }, | 454 }, |
446 '1180': { | 455 '1180': { |
447 'api': { | 456 'api': { |
448 '_manifest_features.json': json.dumps({ | 457 '_manifest_features.json': json.dumps({ |
449 'page_action': { | 458 'page_action': { |
450 'channel': 'stable' | 459 'channel': 'stable' |
451 }, | 460 }, |
452 'runtime': { | 461 'runtime': { |
453 'channel': 'stable' | 462 'channel': 'stable' |
454 } | 463 } |
455 }), | 464 }), |
456 '_permission_features.json': json.dumps({ | 465 '_permission_features.json': json.dumps({ |
457 'bookmarks': { | 466 'bookmarks': { |
458 'channel': 'stable' | 467 'channel': 'stable' |
459 }, | 468 }, |
460 'webRequest': { | 469 'webRequest': { |
461 'channel': 'stable' | 470 'channel': 'stable' |
462 } | 471 } |
463 }), | 472 }), |
| 473 'bookmarks.json': 'bookmarks contents', |
464 'idle.json': 'idle contents', | 474 'idle.json': 'idle contents', |
465 'input_ime.json': 'input.ime contents', | 475 'input_ime.json': 'input.ime contents', |
466 'menus.json': 'menus contents', | 476 'menus.json': 'menus contents', |
467 'tabs.json': 'tabs contents' | 477 'tabs.json': 'tabs contents' |
468 } | 478 } |
469 }, | 479 }, |
470 '1132': { | 480 '1132': { |
471 'api': { | 481 'api': { |
472 '_manifest_features.json': json.dumps({ | 482 '_manifest_features.json': json.dumps({ |
| 483 'bookmarks': { |
| 484 'channel': 'trunk' |
| 485 }, |
473 'page_action': { | 486 'page_action': { |
474 'channel': 'stable' | 487 'channel': 'stable' |
475 } | 488 } |
476 }), | 489 }), |
477 '_permission_features.json': json.dumps({ | 490 '_permission_features.json': json.dumps({ |
478 'webRequest': { | 491 'webRequest': { |
479 'channel': 'stable' | 492 'channel': 'stable' |
480 } | 493 } |
481 }), | 494 }), |
| 495 'bookmarks.json': 'bookmarks contents', |
482 'idle.json': 'idle contents', | 496 'idle.json': 'idle contents', |
483 'input.ime.json': 'input.ime contents', | 497 'input.ime.json': 'input.ime contents', |
484 'menus.json': 'menus contents', | 498 'menus.json': 'menus contents', |
485 'tabs.json': 'tabs contents' | 499 'tabs.json': 'tabs contents' |
486 } | 500 } |
487 }, | 501 }, |
488 '1084': { | 502 '1084': { |
489 'api': { | 503 'api': { |
490 '_manifest_features.json': json.dumps({ | 504 '_manifest_features.json': json.dumps({ |
491 'contents': 'nothing of interest here,really' | 505 'contents': 'nothing of interest here,really' |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 { | 708 { |
695 'namespace': 'idle' | 709 'namespace': 'idle' |
696 }, | 710 }, |
697 { | 711 { |
698 'namespace': 'experimental.menus' | 712 'namespace': 'experimental.menus' |
699 } | 713 } |
700 ]) | 714 ]) |
701 } | 715 } |
702 } | 716 } |
703 } | 717 } |
OLD | NEW |