| Index: chrome/common/extensions/docs/server2/test_data/canned_data.py
|
| diff --git a/chrome/common/extensions/docs/server2/test_data/canned_data.py b/chrome/common/extensions/docs/server2/test_data/canned_data.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e7051555aee7bf5640accd03ace0d2feb0fc68a7
|
| --- /dev/null
|
| +++ b/chrome/common/extensions/docs/server2/test_data/canned_data.py
|
| @@ -0,0 +1,240 @@
|
| +# Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +CANNED_BRANCHES = {
|
| + 'trunk' : 'trunk',
|
| + 28 : 1500,
|
| + 27 : 1453,
|
| + 26 : 1410,
|
| + 25 : 1364,
|
| + 24 : 1312,
|
| + 23 : 1271,
|
| + 22 : 1229,
|
| + 21 : 1180,
|
| + 20 : 1132,
|
| + 19 : 1084,
|
| + 18 : 1025,
|
| + 17 : 963,
|
| + 16 : 912,
|
| + 15 : 874,
|
| + 14 : 835,
|
| + 13 : 782,
|
| + 12 : 742,
|
| + 11 : 696,
|
| + 10 : 648,
|
| + 9 : 597,
|
| + 8 : 552,
|
| + 7 : 544,
|
| + 6 : 495,
|
| + 5 : 396
|
| +}
|
| +
|
| +CANNED_API_FILE_SYSTEM_DATA = {
|
| + 'trunk': {
|
| + 'docs': {
|
| + 'templates': {
|
| + 'json': {
|
| + 'api_availabilities.json': '{"earlyAPI1": {"channel": "stable", "version": "10"}, "earlyAPI2": {"channel": "trunk"}}',
|
| + 'intro_tables.json': '{"test": [{"Permissions": "blue"}]}'
|
| + }
|
| + }
|
| + },
|
| + 'api': {
|
| + '_api_features.json': '{"contextMenus": {"channel": "stable"}, "extension": {"channel": "stable"}, "trunk": {"channel": "trunk"}}',
|
| + '_permission_features.json': '{"alarms": {"channel": "stable"}, "bookmarks": {"channel": "stable"}, "cookies": {"channel": "dev"}, "notReallyBetaAPI": {"channel": "beta"}, "trunkAPI": {"channel": "trunk"}}',
|
| + '_manifest_features.json': '{"runtime": {"channel": "stable"}, "storage": {"channel": "beta"}, "sync": {"channel": "trunk"}}',
|
| + 'cookies.json': 'cookies contents',
|
| + 'idle.json': 'idle contents',
|
| + 'menus.json': 'menus contents',
|
| + 'tabs.json': 'tabs contents',
|
| + 'windows.json': 'windows contents'
|
| + }
|
| + },
|
| + '1500': {
|
| + 'api': {
|
| + '_api_features.json': '{"extension": {"channel": "stable"}}',
|
| + '_manifest_features.json': '{"contextMenus": {"channel": "trunk"}, "notifications" : {"channel": "beta"}, "runtime": {"channel": "stable"}, "storage": {"channel": "dev"}, "sync": {"channel": "trunk"}}',
|
| + '_permission_features.json': '{"alarms": {"channel": "stable"}, "bookmarks": {"channel": "stable"}, "cookies": {"channel": "dev"}, "downloads": {"channel": "beta"}}',
|
| + 'idle.json': 'idle contents',
|
| + 'menus.json': 'menus contents',
|
| + 'tabs.json': 'tabs contents',
|
| + 'windows.json': 'windows contents'
|
| + }
|
| + },
|
| + '1453': {
|
| + 'api': {
|
| + '_api_features.json': '{"extension": {"channel": "stable"}, "systemInfo.cpu": {"channel": "stable"}}',
|
| + '_manifest_features.json': '{"notifications": {"channel": "dev"}, "runtime": {"channel": "stable"}, "storage": {"channel": "dev"}}',
|
| + '_permission_features.json': '{"alarms": {"channel": "stable"}, "bookmarks": {"channel": "stable"}, "downloads": {"channel": "dev"}, "context_menus": {"channel": "trunk"}}',
|
| + 'idle.json': 'idle contents',
|
| + 'menus.json': 'menus contents',
|
| + 'tabs.json': 'tabs contents',
|
| + 'windows.json': 'windows contents'
|
| + }
|
| + },
|
| + '1410': {
|
| + 'api': {
|
| + '_manifest_features.json': '{"notifications": {"channel": "dev"}, "runtime": {"channel": "stable"}}',
|
| + '_permission_features.json': '{"alarms": {"channel": "stable"}, "bookmarks": {"channel": "stable"}, "context_menus": {"channel": "trunk"}, "systemInfo.display": {"channel": "stable"}}',
|
| + 'idle.json': 'idle contents',
|
| + 'menus.json': 'menus contents',
|
| + 'tabs.json': 'tabs contents',
|
| + 'windows.json': 'windows contents'
|
| + }
|
| + },
|
| + '1364': {
|
| + 'api': {
|
| + '_manifest_features.json': '{"runtime": {"channel": "stable"}}',
|
| + '_permission_features.json': '{"alarms": {"channel": "stable"}, "bookmarks": {"channel": "stable"}, "systemInfo.display": {"channel": "stable"}}',
|
| + 'idle.json': 'idle contents',
|
| + 'menus.json': 'menus contents',
|
| + 'tabs.json': 'tabs contents',
|
| + 'windows.json': 'windows contents'
|
| + }
|
| + },
|
| + '1312': {
|
| + 'api': {
|
| + '_manifest_features.json': '{"runtime": {"channel": "stable"}}',
|
| + '_permission_features.json': '{"alarms": {"channel": "stable"}, "bookmarks": {"channel": "stable"}, "systemInfo.display": {"channel": "stable"}}',
|
| + 'idle.json': 'idle contents',
|
| + 'menus.json': 'menus contents',
|
| + 'tabs.json': 'tabs contents',
|
| + 'windows.json': 'windows contents'
|
| + }
|
| + },
|
| + '1271': {
|
| + 'api': {
|
| + '_manifest_features.json': '{"runtime": {"channel": "stable"}, "system_info_display": {"channel": "stable"}}',
|
| + '_permission_features.json': '{"alarms": {"channel": "beta"}, "bookmarks": {"channel": "stable"}}',
|
| + 'idle.json': 'idle contents',
|
| + 'menus.json': 'menus contents',
|
| + 'tabs.json': 'tabs contents',
|
| + 'windows.json': 'windows contents'
|
| + }
|
| + },
|
| + '1229': {
|
| + 'api': {
|
| + '_manifest_features.json': '{"runtime": {"channel": "stable"}}',
|
| + '_permission_features.json': '{"bookmarks": {"channel": "stable"}, "systemInfo.display": {"channel": "beta"}}',
|
| + 'idle.json': 'idle contents',
|
| + 'menus.json': 'menus contents',
|
| + 'tabs.json': 'tabs contents'
|
| + }
|
| + },
|
| + '1180': {
|
| + 'api': {
|
| + '_manifest_features.json': '{"runtime": {"channel": "stable"}}',
|
| + '_permission_features.json': '{"bookmarks": {"channel": "stable"}}',
|
| + 'idle.json': 'idle contents',
|
| + 'menus.json': 'menus contents',
|
| + 'tabs.json': 'tabs contents'
|
| + }
|
| + },
|
| + '1132': {
|
| + 'api': {
|
| + '_manifest_features.json': '{"contents": "null"}',
|
| + '_permission_features.json': '{"contents": "null"}',
|
| + 'idle.json': 'idle contents',
|
| + 'menus.json': 'menus contents',
|
| + 'tabs.json': 'tabs contents'
|
| + }
|
| + },
|
| + '1084': {
|
| + 'api': {
|
| + 'idle.json': 'idle contents',
|
| + 'menus.json': 'menus contents',
|
| + 'tabs.json': 'tabs contents'
|
| + }
|
| + },
|
| + '1025': {
|
| + 'api': {
|
| + 'idle.json': 'idle contents',
|
| + 'menus.json': 'menus contents',
|
| + 'tabs.json': 'tabs contents'
|
| + }
|
| + },
|
| + '963': {
|
| + 'api': {
|
| + 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]'
|
| + }
|
| + },
|
| + '912': {
|
| + 'api': {
|
| + 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]'
|
| + }
|
| + },
|
| + '874': {
|
| + 'api': {
|
| + 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]'
|
| + }
|
| + },
|
| + '835': {
|
| + 'api': {
|
| + 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]'
|
| + }
|
| + },
|
| + '782': {
|
| + 'api': {
|
| + 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]'
|
| + }
|
| + },
|
| + '742': {
|
| + 'api': {
|
| + 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]'
|
| + }
|
| + },
|
| + '696': {
|
| + 'api': {
|
| + 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]'
|
| + }
|
| + },
|
| + '648': {
|
| + 'api': {
|
| + 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]'
|
| + }
|
| + },
|
| + '597': {
|
| + 'api': {
|
| + 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]'
|
| + }
|
| + },
|
| + '552': {
|
| + 'api': {
|
| + 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]'
|
| + }
|
| + },
|
| + '544': {
|
| + 'api': {
|
| + 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]'
|
| + }
|
| + },
|
| + '495': {
|
| + 'api': {
|
| + 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]'
|
| + }
|
| + },
|
| + '396': {
|
| + 'api': {
|
| + 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "experimental.menus"}]'
|
| + }
|
| + }
|
| +}
|
| +
|
| +CANNED_TEST_FILE_SYSTEM_DATA = {
|
| + 'api': {
|
| + '_manifest_features.json': '{"manifest": "features"}',
|
| + '_permission_features.json': '{"permission": "features"}'
|
| + },
|
| + 'docs': {
|
| + 'templates': {
|
| + 'intros': {
|
| + 'test.html': '<h1>hi</h1>you<h2>first</h2><h3>inner</h3><h2>second</h2>'
|
| + },
|
| + 'json': {
|
| + 'api_availabilities.json': '{"tester": "42"}',
|
| + 'intro_tables.json': '{ "tester": {"Permissions": [{"permission": "tester" }, {"extra": "is an API." }], "LearnMore": [{"href": "https://tester.test.com/welcome.html", "content": "Welcome!" }]}}'
|
| + }
|
| + }
|
| + }
|
| +}
|
|
|