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

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

Issue 386443003: Docserver: Add 'deprecated since' message for API nodes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit 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, SERVER2 7 from extensions_paths import CHROME_EXTENSIONS, SERVER2
8 from test_file_system import MoveAllTo 8 from test_file_system import MoveAllTo
9 from test_util import ReadFile 9 from test_util import ReadFile
10 10
(...skipping 24 matching lines...) Expand all
35 'trunk': { 35 'trunk': {
36 'docs': { 36 'docs': {
37 'templates': { 37 'templates': {
38 'json': { 38 'json': {
39 'api_availabilities.json': '{}', 39 'api_availabilities.json': '{}',
40 'intro_tables.json': '{}' 40 'intro_tables.json': '{}'
41 } 41 }
42 } 42 }
43 }, 43 },
44 'api': { 44 'api': {
45 '_api_features.json': '{}', 45 '_api_features.json': json.dumps({
46 'tabs.scheduledFunc': {
47 'channel': 'stable'
48 }
49 }),
46 '_manifest_features.json': '{}', 50 '_manifest_features.json': '{}',
47 '_permission_features.json': '{}', 51 '_permission_features.json': '{}',
48 'fake_tabs.idl': FAKE_TABS_IDL, 52 'fake_tabs.idl': FAKE_TABS_IDL,
49 'tabs.json': json.dumps([{ 53 'tabs.json': json.dumps([{
50 'namespace': 'tabs', 54 'namespace': 'tabs',
51 'types': [ 55 'types': [
52 { 56 {
53 'id': 'Tab', 57 'id': 'Tab',
54 'type': 'any', 58 'type': 'any',
55 'properties': { 59 'properties': {
(...skipping 26 matching lines...) Expand all
82 'allFrames': { 86 'allFrames': {
83 'type': 'any' 87 'type': 'any'
84 }, 88 },
85 'code': { 89 'code': {
86 'type': 'any' 90 'type': 'any'
87 }, 91 },
88 'file': { 92 'file': {
89 'type':'any' 93 'type':'any'
90 } 94 }
91 } 95 }
96 },
97 {
98 'id': 'DeprecatedType',
99 'type': 'any',
100 'deprecated': 'This is deprecated'
92 } 101 }
93 ], 102 ],
94 'properties': { 103 'properties': {
95 'fakeTabsProperty1': { 104 'fakeTabsProperty1': {
96 'type': 'any' 105 'type': 'any'
97 }, 106 },
98 'fakeTabsProperty2': { 107 'fakeTabsProperty2': {
99 'type': 'any' 108 'type': 'any'
100 }, 109 },
101 'fakeTabsProperty3': { 110 'fakeTabsProperty3': {
(...skipping 27 matching lines...) Expand all
129 'name': 'tab', 138 'name': 'tab',
130 'type': 'any' 139 'type': 'any'
131 } 140 }
132 ] 141 ]
133 }, 142 },
134 { 143 {
135 'name': 'tabId', 144 'name': 'tabId',
136 'type': 'any' 145 'type': 'any'
137 } 146 }
138 ] 147 ]
148 },
149 {
150 'name': 'scheduledFunc',
151 'parameters': []
139 } 152 }
140 ], 153 ],
141 'events': [ 154 'events': [
142 { 155 {
143 'name': 'onActivated', 156 'name': 'onActivated',
144 'type': 'event', 157 'type': 'event',
145 'parameters': [ 158 'parameters': [
146 { 159 {
147 'name': 'activeInfo', 160 'name': 'activeInfo',
148 'type': 'any', 161 'type': 'any',
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 } 195 }
183 } 196 }
184 ] 197 ]
185 } 198 }
186 ] 199 ]
187 }]) 200 }])
188 } 201 }
189 }, 202 },
190 '1500': { 203 '1500': {
191 'api': { 204 'api': {
192 '_api_features.json': "{}", 205 '_api_features.json': json.dumps({
206 'tabs.scheduledFunc': {
207 'channel': 'stable'
208 }
209 }),
193 '_manifest_features.json': "{}", 210 '_manifest_features.json': "{}",
194 '_permission_features.json': "{}", 211 '_permission_features.json': "{}",
195 'fake_tabs.idl': FAKE_TABS_IDL, 212 'fake_tabs.idl': FAKE_TABS_IDL,
196 'tabs.json': json.dumps([{ 213 'tabs.json': json.dumps([{
197 'namespace': 'tabs', 214 'namespace': 'tabs',
198 'types': [ 215 'types': [
199 { 216 {
200 'id': 'Tab', 217 'id': 'Tab',
201 'properties': { 218 'properties': {
202 'url': {}, 219 'url': {},
203 'index': {}, 220 'index': {},
204 'selected': {}, 221 'selected': {},
205 'id': {}, 222 'id': {},
206 'windowId': {} 223 'windowId': {}
207 } 224 }
208 }, 225 },
209 { 226 {
210 'id': 'InjectDetails', 227 'id': 'InjectDetails',
211 'properties': { 228 'properties': {
212 'allFrames': {}, 229 'allFrames': {},
213 'code': {}, 230 'code': {},
214 'file': {} 231 'file': {}
215 } 232 }
233 },
234 {
235 'id': 'DeprecatedType',
236 'deprecated': 'This is deprecated'
216 } 237 }
217 ], 238 ],
218 'properties': { 239 'properties': {
219 'fakeTabsProperty1': {}, 240 'fakeTabsProperty1': {},
220 'fakeTabsProperty2': {} 241 'fakeTabsProperty2': {}
221 }, 242 },
222 'functions': [ 243 'functions': [
223 { 244 {
224 'name': 'getCurrent', 245 'name': 'getCurrent',
225 'parameters': [ 246 'parameters': [
(...skipping 15 matching lines...) Expand all
241 'parameters': [ 262 'parameters': [
242 { 263 {
243 'name': 'tab' 264 'name': 'tab'
244 } 265 }
245 ] 266 ]
246 }, 267 },
247 { 268 {
248 'name': 'tabId' 269 'name': 'tabId'
249 } 270 }
250 ] 271 ]
272 },
273 {
274 'name': 'scheduledFunc',
275 'parameters': []
251 } 276 }
252 ], 277 ],
253 'events': [ 278 'events': [
254 { 279 {
255 'name': 'onActivated', 280 'name': 'onActivated',
256 'parameters': [ 281 'parameters': [
257 { 282 {
258 'name': 'activeInfo', 283 'name': 'activeInfo',
259 'properties': { 284 'properties': {
260 'tabId': {}, 285 'tabId': {},
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 'windowId': {} 329 'windowId': {}
305 } 330 }
306 }, 331 },
307 { 332 {
308 'id': 'InjectDetails', 333 'id': 'InjectDetails',
309 'properties': { 334 'properties': {
310 'allFrames': {}, 335 'allFrames': {},
311 'code': {}, 336 'code': {},
312 'file': {} 337 'file': {}
313 } 338 }
339 },
340 {
341 'id': 'DeprecatedType',
342 'deprecated': 'This is deprecated'
314 } 343 }
315 ], 344 ],
316 'properties': { 345 'properties': {
317 'fakeTabsProperty1': {}, 346 'fakeTabsProperty1': {},
318 'fakeTabsProperty2': {} 347 'fakeTabsProperty2': {}
319 }, 348 },
320 'functions': [ 349 'functions': [
321 { 350 {
322 'name': 'getCurrent', 351 'name': 'getCurrent',
323 'parameters': [ 352 'parameters': [
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 'windowId': {} 426 'windowId': {}
398 } 427 }
399 }, 428 },
400 { 429 {
401 'id': 'InjectDetails', 430 'id': 'InjectDetails',
402 'properties': { 431 'properties': {
403 'allFrames': {}, 432 'allFrames': {},
404 'code': {}, 433 'code': {},
405 'file': {} 434 'file': {}
406 } 435 }
436 },
437 {
438 'id': 'DeprecatedType',
439 'deprecated': 'This is deprecated'
407 } 440 }
408 ], 441 ],
409 'properties': { 442 'properties': {
410 'fakeTabsProperty1': {}, 443 'fakeTabsProperty1': {},
411 'fakeTabsProperty2': {} 444 'fakeTabsProperty2': {}
412 }, 445 },
413 'functions': [ 446 'functions': [
414 { 447 {
415 'name': 'getCurrent', 448 'name': 'getCurrent',
416 'parameters': [ 449 'parameters': [
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 'selected': {}, 507 'selected': {},
475 'id': {}, 508 'id': {},
476 'windowId': {} 509 'windowId': {}
477 } 510 }
478 }, 511 },
479 { 512 {
480 'id': 'InjectDetails', 513 'id': 'InjectDetails',
481 'properties': { 514 'properties': {
482 'allFrames': {} 515 'allFrames': {}
483 } 516 }
517 },
518 {
519 'id': 'DeprecatedType',
484 } 520 }
485 ], 521 ],
486 'properties': { 522 'properties': {
487 'fakeTabsProperty1': {}, 523 'fakeTabsProperty1': {},
488 'fakeTabsProperty2': {} 524 'fakeTabsProperty2': {}
489 }, 525 },
490 'functions': [ 526 'functions': [
491 { 527 {
492 'name': 'getCurrent', 528 'name': 'getCurrent',
493 'parameters': [ 529 'parameters': [
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 ] 1222 ]
1187 }]) 1223 }])
1188 } 1224 }
1189 }, 1225 },
1190 '782': { 1226 '782': {
1191 'api': { 1227 'api': {
1192 'extension_api.json': "{}" 1228 'extension_api.json': "{}"
1193 } 1229 }
1194 } 1230 }
1195 }) 1231 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698