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
3 # found in the LICENSE file.
8 CANNED_TRUNK_FS_DATA = {
10 '_api_features.json': json.dumps({
11 'add_rules_tester': { 'dependencies': ['permission:add_rules_tester'] },
12 'ref_test': { 'dependencies': ['permission:ref_test'] },
13 'tester': { 'dependencies': ['permission:tester', 'manifest:tester'] }
15 '_manifest_features.json': '{}',
16 '_permission_features.json': '{}',
17 'add_rules_tester.json': json.dumps([{
18 'namespace': 'add_rules_tester',
19 'description': ('A test api with a couple of events which support or '
20 'do not support rules.'),
27 'supportsRules': True,
35 'description': 'Listeners can be registered with this event.',
40 'tester.json': json.dumps([{
41 'namespace': 'tester',
42 'description': 'a test api',
47 'description': 'A cool thing.',
49 'a': {'nodoc': True, 'type': 'string', 'minimum': 0},
50 'b': {'type': 'array', 'optional': True, 'items': {'$ref': 'TypeA'},
51 'description': 'List of TypeA.'}
59 'description': 'Gets stuff.',
63 'description': 'a param',
66 {'type': 'array', 'items': {'type': 'string'}, 'minItems': 1}
73 {'name': 'results', 'type': 'array', 'items': {'$ref': 'TypeA'}}
83 'description': 'A cool event.',
85 {'type': 'string', 'name': 'id'},
94 'ref_test.json': json.dumps([{
95 'namespace': 'ref_test',
96 'description': 'An API for testing ref\'s',
101 'description': '$ref:type2'
106 'description': 'A $ref:type3, or $ref:type2'
111 'description': '$ref:other.type2 != $ref:ref_test.type2'
118 'description': 'We like $ref:type1',
149 'test.html': '<h1>hi</h1>you<h2>first</h2><h3>inner</h3><h2>second</h2>'
152 'api_availabilities.json': json.dumps({
167 'intro_tables.json': json.dumps({
175 'text': 'is an API for testing things.'
180 'link': 'https://tester.test.com/welcome.html',
186 'manifest.json': '{}',
187 'permissions.json': '{}'
191 'trunk_message.html': 'available on trunk'