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

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

Issue 17397010: Adding AvailabilityFinder to Doc Server (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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
(Empty)
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 CANNED_BRANCHES = {
6 'trunk' : 'trunk',
7 28 : 1500,
8 27 : 1453,
9 26 : 1410,
10 25 : 1364,
11 24 : 1312,
12 23 : 1271,
13 22 : 1229,
14 21 : 1180,
15 20 : 1132,
16 19 : 1084,
17 18 : 1025,
18 17 : 963,
19 16 : 912,
20 15 : 874,
21 14 : 835,
22 13 : 782,
23 12 : 742,
24 11 : 696,
25 10 : 648,
26 9 : 597,
27 8 : 552,
28 7 : 544,
29 6 : 495,
30 5 : 396
31 }
32
33 CANNED_API_FILE_SYSTEM_DATA = {
34 'trunk': {
35 'docs': {
36 'templates': {
37 'json': {
38 'api_availabilities.json': '{"jsonAPI1": {"channel": "stable", "versio n": 10}, "jsonAPI2": {"channel": "trunk"}, "jsonAPI3" : {"channel": "dev"}}',
39 'intro_tables.json': '{"test": [{"Permissions": "probably none"}]}'
not at google - send to devlin 2013/06/20 16:15:20 is there some kind of JSON pretty printer you can
epeterson 2013/06/21 00:48:26 I had some adventures with this change... But this
40 }
41 }
42 },
43 'api': {
44 '_api_features.json': '{"contextMenus": {"channel": "stable"}, "events": { "channel": "stable"}, "extension": {"channel": "stable"}}',
45 '_manifest_features.json': '{"history": {"channel": "beta"}, "runtime": {" channel": "stable"}, "storage": {"channel": "beta"}, "sync": {"channel": "trunk" }}',
46 '_permission_features.json': '{"alarms": {"channel": "stable"}, "bluetooth ": {"channel": "dev"}, "bookmarks": {"channel": "stable"}, "cookies": {"channel" : "dev"}, "declarativeContent": {"channel": "trunk"}, "falseBetaAPI": {"channel" : "beta"}, "trunkAPI": {"channel": "trunk"}}',
47 'idle.json': 'idle contents',
48 'input_ime.json': 'input.ime contents',
49 'menus.json': 'menus contents',
50 'tabs.json': 'tabs contents',
51 'windows.json': 'windows contents'
52 }
53 },
54 '1500': {
55 'api': {
56 '_api_features.json': '{"events": {"channel": "trunk"}, "extension": {"cha nnel": "stable"}, "systemInfo.stuff": {"channel": "dev"}}',
57 '_manifest_features.json': '{"contextMenus": {"channel": "trunk"}, "notifi cations" : {"channel": "beta"}, "runtime": {"channel": "stable"}, "storage": {"c hannel": "dev"}, "sync": {"channel": "trunk"}}',
58 '_permission_features.json': '{"alarms": {"channel": "stable"}, "bluetooth ": {"channel": "dev"}, "bookmarks": {"channel": "stable"}, "cookies": {"channel" : "dev"}, "declarativeContent": {"channel": "trunk"}, "downloads": {"channel": " beta"}}',
59 'idle.json': 'idle contents',
60 'input_ime.json': 'input.ime contents',
61 'menus.json': 'menus contents',
62 'tabs.json': 'tabs contents',
63 'windows.json': 'windows contents'
64 }
65 },
66 '1453': {
67 'api': {
68 '_api_features.json': '{"events": {"channel": "dev"}, "extension": {"chann el": "stable"}, "systemInfo.cpu": {"channel": "stable"}, "systemInfo.stuff": {"c hannel": "dev"}}',
69 '_manifest_features.json': '{"notifications": {"channel": "dev"}, "runtime ": {"channel": "stable"}, "storage": {"channel": "dev"}}',
70 '_permission_features.json': '{"alarms": {"channel": "stable"}, "bluetooth ": {"channel": "dev"}, "bookmarks": {"channel": "stable"}, "declarativeContent": {"channel": "trunk"}, "downloads": {"channel": "dev"}, "context_menus": {"chann el": "trunk"}}',
71 'idle.json': 'idle contents',
72 'input_ime.json': 'input.ime contents',
73 'menus.json': 'menus contents',
74 'tabs.json': 'tabs contents',
75 'windows.json': 'windows contents'
76 }
77 },
78 '1410': {
79 'api': {
80 '_manifest_features.json': '{"events": {"channel": "beta"}, "notifications ": {"channel": "dev"}, "page_action": {"channel": "stable"}, "runtime": {"channe l": "stable"}, "web_request": {"channel": "stable"}}',
81 '_permission_features.json': '{"alarms": {"channel": "stable"}, "bluetooth ": {"channel": "dev"}, "bookmarks": {"channel": "stable"}, "context_menus": {"ch annel": "trunk"}, "declarativeContent": {"channel": "trunk"}, "systemInfo.displa y": {"channel": "stable"}}',
82 'idle.json': 'idle contents',
83 'input_ime.json': 'input.ime contents',
84 'menus.json': 'menus contents',
85 'tabs.json': 'tabs contents',
86 'windows.json': 'windows contents'
87 }
88 },
89 '1364': {
90 'api': {
91 '_manifest_features.json': '{"page_action": {"channel": "stable"}, "runtim e": {"channel": "stable"}}',
92 '_permission_features.json': '{"alarms": {"channel": "stable"}, "bookmarks ": {"channel": "stable"}, "systemInfo.display": {"channel": "stable"}, "webReque st": {"channel": "stable"}}',
93 'idle.json': 'idle contents',
94 'input_ime.json': 'input.ime contents',
95 'menus.json': 'menus contents',
96 'tabs.json': 'tabs contents',
97 'windows.json': 'windows contents'
98 }
99 },
100 '1312': {
101 'api': {
102 '_manifest_features.json': '{"page_action": {"channel": "stable"}, "runtim e": {"channel": "stable"}, "web_request": {"channel": "stable"}}',
103 '_permission_features.json': '{"alarms": {"channel": "stable"}, "bookmarks ": {"channel": "stable"}, "systemInfo.display": {"channel": "stable"}}',
104 'idle.json': 'idle contents',
105 'input_ime.json': 'input.ime contents',
106 'menus.json': 'menus contents',
107 'tabs.json': 'tabs contents',
108 'windows.json': 'windows contents'
109 }
110 },
111 '1271': {
112 'api': {
113 '_manifest_features.json': '{"page_action": {"channel": "stable"}, "runtim e": {"channel": "stable"}, "system_info_display": {"channel": "stable"}}',
114 '_permission_features.json': '{"alarms": {"channel": "beta"}, "bookmarks": {"channel": "stable"}, "webRequest": {"channel": "stable"}}',
115 'idle.json': 'idle contents',
116 'input_ime.json': 'input.ime contents',
117 'menus.json': 'menus contents',
118 'tabs.json': 'tabs contents',
119 'windows.json': 'windows contents'
120 }
121 },
122 '1229': {
123 'api': {
124 '_manifest_features.json': '{"page_action": {"channel": "stable"}, "runtim e": {"channel": "stable"}, "web_request": {"channel": "stable"}}',
125 '_permission_features.json': '{"bookmarks": {"channel": "stable"}, "system Info.display": {"channel": "beta"}}',
126 'idle.json': 'idle contents',
127 'input_ime.json': 'input.ime contents',
128 'menus.json': 'menus contents',
129 'tabs.json': 'tabs contents'
130 }
131 },
132 '1180': {
133 'api': {
134 '_manifest_features.json': '{"page_action": {"channel": "stable"}, "runtim e": {"channel": "stable"}}',
135 '_permission_features.json': '{"bookmarks": {"channel": "stable"}, "webReq uest": {"channel": "stable"}}',
136 'idle.json': 'idle contents',
137 'input_ime.json': 'input.ime contents',
138 'menus.json': 'menus contents',
139 'tabs.json': 'tabs contents'
140 }
141 },
142 '1132': {
143 'api': {
144 '_manifest_features.json': '{"page_action": {"channel": "stable"}}',
145 '_permission_features.json': '{"webRequest": {"channel": "stable"}}',
146 'idle.json': 'idle contents',
147 'input.ime.json': 'input.ime contents',
148 'menus.json': 'menus contents',
149 'tabs.json': 'tabs contents'
150 }
151 },
152 '1084': {
153 'api': {
154 '_manifest_features.json': '{"contents": "nothing of interest here, really "}',
155 'idle.json': 'idle contents',
156 'input.ime.json': 'input.ime contents',
157 'menus.json': 'menus contents',
158 'pageAction.json': 'pageAction contents',
159 'tabs.json': 'tabs contents',
160 'webRequest.json': 'webRequest contents'
161 }
162 },
163 '1025': {
164 'api': {
165 'idle.json': 'idle contents',
166 'input.ime.json': 'input.ime contents',
167 'menus.json': 'menus contents',
168 'pageAction.json': 'pageAction contents',
169 'tabs.json': 'tabs contents',
170 'webRequest.json': 'webRequest contents'
171 }
172 },
173 '963': {
174 'api': {
175 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}, {"n amespace": "pageAction"}, {"namespace": "webRequest"}]'
176 }
177 },
178 '912': {
179 'api': {
180 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}, {"n amespace": "pageAction"}, {"namespace": "experimental.webRequest"}]'
181 }
182 },
183 '874': {
184 'api': {
185 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}, {"n amespace": "pageAction"}]'
186 }
187 },
188 '835': {
189 'api': {
190 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}, {"n amespace": "pageAction"}]'
191 }
192 },
193 '782': {
194 'api': {
195 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}, {"n amespace": "pageAction"}]'
196 }
197 },
198 '742': {
199 'api': {
200 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}, {"n amespace": "pageAction"}]'
201 }
202 },
203 '696': {
204 'api': {
205 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}, {"n amespace": "pageAction"}]'
206 }
207 },
208 '648': {
209 'api': {
210 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}, {"n amespace": "pageAction"}]'
211 }
212 },
213 '597': {
214 'api': {
215 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}, {"n amespace": "pageAction"}]'
216 }
217 },
218 '552': {
219 'api': {
220 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}, {"n amespace": "pageAction"}]'
221 }
222 },
223 '544': {
224 'api': {
225 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]'
226 }
227 },
228 '495': {
229 'api': {
230 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]'
231 }
232 },
233 '396': {
234 'api': {
235 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "experimental .menus"}]'
236 }
237 }
238 }
239
240 CANNED_TEST_FILE_SYSTEM_DATA = {
241 'api': {
242 '_manifest_features.json': '{"manifest": "features"}',
243 '_permission_features.json': '{"permission": "features"}'
244 },
245 'docs': {
246 'templates': {
247 'intros': {
248 'test.html': '<h1>hi</h1>you<h2>first</h2><h3>inner</h3><h2>second</h2>'
249 },
250 'json': {
251 'api_availabilities.json': '{"tester": "42"}',
252 'intro_tables.json': '{ "tester": {"Permissions": [{"permission": "teste r" }, {"extra": "is an API." }], "LearnMore": [{"href": "https://tester.test.com /welcome.html", "content": "Welcome!" }]}}'
253 }
254 }
255 }
256 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698