| 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 }) |
| 81 } | 82 } |
| 82 } | 83 } |
| 83 } | 84 } |
| 84 } | 85 } |
| 85 | 86 |
| 86 CANNED_API_FILE_SYSTEM_DATA = { | 87 CANNED_API_FILE_SYSTEM_DATA = { |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 'alarms': { | 403 'alarms': { |
| 403 'channel': 'beta' | 404 'channel': 'beta' |
| 404 }, | 405 }, |
| 405 'bookmarks': { | 406 'bookmarks': { |
| 406 'channel': 'stable' | 407 'channel': 'stable' |
| 407 }, | 408 }, |
| 408 'webRequest': { | 409 'webRequest': { |
| 409 'channel': 'stable' | 410 'channel': 'stable' |
| 410 } | 411 } |
| 411 }), | 412 }), |
| 413 'alarms.idl': 'alarms contents', |
| 412 'idle.json': 'idle contents', | 414 'idle.json': 'idle contents', |
| 413 'input_ime.json': 'input.ime contents', | 415 'input_ime.json': 'input.ime contents', |
| 414 'menus.json': 'menus contents', | 416 'menus.json': 'menus contents', |
| 415 'tabs.json': 'tabs contents', | 417 'tabs.json': 'tabs contents', |
| 416 'windows.json': 'windows contents' | 418 'windows.json': 'windows contents' |
| 417 } | 419 } |
| 418 }, | 420 }, |
| 419 '1229': { | 421 '1229': { |
| 420 'api': { | 422 'api': { |
| 421 '_manifest_features.json': json.dumps({ | 423 '_manifest_features.json': json.dumps({ |
| 422 'page_action': { | 424 'page_action': { |
| 423 'channel': 'stable' | 425 'channel': 'stable' |
| 424 }, | 426 }, |
| 425 'runtime': { | 427 'runtime': { |
| 426 'channel': 'stable' | 428 'channel': 'stable' |
| 427 }, | 429 }, |
| 428 'web_request': { | 430 'web_request': { |
| 429 'channel': 'stable' | 431 'channel': 'stable' |
| 430 } | 432 } |
| 431 }), | 433 }), |
| 432 '_permission_features.json': json.dumps({ | 434 '_permission_features.json': json.dumps({ |
| 433 'bookmarks': { | 435 'bookmarks': { |
| 434 'channel': 'stable' | 436 'channel': 'stable' |
| 435 }, | 437 }, |
| 436 'systemInfo.display': { | 438 'systemInfo.display': { |
| 437 'channel': 'beta' | 439 'channel': 'beta' |
| 438 } | 440 } |
| 439 }), | 441 }), |
| 442 'alarms.idl': 'alarms contents', |
| 440 'idle.json': 'idle contents', | 443 'idle.json': 'idle contents', |
| 441 'input_ime.json': 'input.ime contents', | 444 'input_ime.json': 'input.ime contents', |
| 442 'menus.json': 'menus contents', | 445 'menus.json': 'menus contents', |
| 446 'system_info_display.idl': 'systemInfo.display contents', |
| 443 'tabs.json': 'tabs contents' | 447 'tabs.json': 'tabs contents' |
| 444 } | 448 } |
| 445 }, | 449 }, |
| 446 '1180': { | 450 '1180': { |
| 447 'api': { | 451 'api': { |
| 448 '_manifest_features.json': json.dumps({ | 452 '_manifest_features.json': json.dumps({ |
| 449 'page_action': { | 453 'page_action': { |
| 450 'channel': 'stable' | 454 'channel': 'stable' |
| 451 }, | 455 }, |
| 452 'runtime': { | 456 'runtime': { |
| 453 'channel': 'stable' | 457 'channel': 'stable' |
| 454 } | 458 } |
| 455 }), | 459 }), |
| 456 '_permission_features.json': json.dumps({ | 460 '_permission_features.json': json.dumps({ |
| 457 'bookmarks': { | 461 'bookmarks': { |
| 458 'channel': 'stable' | 462 'channel': 'stable' |
| 459 }, | 463 }, |
| 460 'webRequest': { | 464 'webRequest': { |
| 461 'channel': 'stable' | 465 'channel': 'stable' |
| 462 } | 466 } |
| 463 }), | 467 }), |
| 468 'bookmarks.json': 'bookmarks contents', |
| 464 'idle.json': 'idle contents', | 469 'idle.json': 'idle contents', |
| 465 'input_ime.json': 'input.ime contents', | 470 'input_ime.json': 'input.ime contents', |
| 466 'menus.json': 'menus contents', | 471 'menus.json': 'menus contents', |
| 467 'tabs.json': 'tabs contents' | 472 'tabs.json': 'tabs contents' |
| 468 } | 473 } |
| 469 }, | 474 }, |
| 470 '1132': { | 475 '1132': { |
| 471 'api': { | 476 'api': { |
| 472 '_manifest_features.json': json.dumps({ | 477 '_manifest_features.json': json.dumps({ |
| 478 'bookmarks': { |
| 479 'channel': 'trunk' |
| 480 }, |
| 473 'page_action': { | 481 'page_action': { |
| 474 'channel': 'stable' | 482 'channel': 'stable' |
| 475 } | 483 } |
| 476 }), | 484 }), |
| 477 '_permission_features.json': json.dumps({ | 485 '_permission_features.json': json.dumps({ |
| 478 'webRequest': { | 486 'webRequest': { |
| 479 'channel': 'stable' | 487 'channel': 'stable' |
| 480 } | 488 } |
| 481 }), | 489 }), |
| 490 'bookmarks.json': 'bookmarks contents', |
| 482 'idle.json': 'idle contents', | 491 'idle.json': 'idle contents', |
| 483 'input.ime.json': 'input.ime contents', | 492 'input.ime.json': 'input.ime contents', |
| 484 'menus.json': 'menus contents', | 493 'menus.json': 'menus contents', |
| 485 'tabs.json': 'tabs contents' | 494 'tabs.json': 'tabs contents' |
| 486 } | 495 } |
| 487 }, | 496 }, |
| 488 '1084': { | 497 '1084': { |
| 489 'api': { | 498 'api': { |
| 490 '_manifest_features.json': json.dumps({ | 499 '_manifest_features.json': json.dumps({ |
| 491 'contents': 'nothing of interest here,really' | 500 'contents': 'nothing of interest here,really' |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 { | 703 { |
| 695 'namespace': 'idle' | 704 'namespace': 'idle' |
| 696 }, | 705 }, |
| 697 { | 706 { |
| 698 'namespace': 'experimental.menus' | 707 'namespace': 'experimental.menus' |
| 699 } | 708 } |
| 700 ]) | 709 ]) |
| 701 } | 710 } |
| 702 } | 711 } |
| 703 } | 712 } |
| OLD | NEW |