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_MASTER_FS_DATA = {
10 '_api_features.json': json.dumps({
11 'add_rules_tester': { 'dependencies': ['permission:add_rules_tester'] },
12 'ref_test': { 'dependencies': ['permission:ref_test'] },
14 'dependencies': ['permission:tester', 'manifest:tester'],
15 'contexts': ['content_script']
17 'tester.test1': {'contexts': ['content_script']},
20 '_manifest_features.json': json.dumps({'tester': {}, 'ref_test': {}}),
21 '_permission_features.json': json.dumps({
24 'add_rules_tester': {}
26 'add_rules_tester.json': json.dumps([{
27 'namespace': 'add_rules_tester',
28 'description': ('A test api with a couple of events which support or '
29 'do not support rules.'),
36 'supportsRules': True,
44 'description': 'Listeners can be registered with this event.',
49 'events.json': json.dumps([{
50 'namespace': 'events',
51 'description': 'These are events.',
56 'description': 'An Event object.',
59 'name': 'addListener',
61 'description': 'Adds a listener.'
67 'tester.json': json.dumps([{
68 'namespace': 'tester',
69 'description': 'a test api',
74 'description': 'A cool thing.',
76 'a': {'nodoc': True, 'type': 'string', 'minimum': 0},
77 'b': {'type': 'array', 'optional': True, 'items': {'$ref': 'TypeA'},
78 'description': 'List of TypeA.'}
86 'description': 'Gets stuff.',
90 'description': 'a param',
93 {'type': 'array', 'items': {'type': 'string'}, 'minItems': 1}
100 {'name': 'results', 'type': 'array', 'items': {'$ref': 'TypeA'}}
110 'description': 'A cool event.',
112 {'type': 'string', 'name': 'id'},
121 'ref_test.json': json.dumps([{
122 'namespace': 'ref_test',
123 'description': 'An API for testing ref\'s',
128 'description': '$ref:type2'
133 'description': 'A $ref:type3, or $ref:type2'
138 'description': '$ref:other.type2 != $ref:ref_test.type2'
145 'description': 'We like $ref:type1',
176 'test.html': '<h1>hi</h1>you<h2>first</h2><h3>inner</h3><h2>second</h2>'
179 'api_availabilities.json': json.dumps({
194 'intro_tables.json': json.dumps({
202 'text': 'is an API for testing things.'
207 'link': 'https://tester.test.com/welcome.html',
213 'manifest.json': '{}',
214 'permissions.json': '{}'
218 'master_message.html': 'available on master',
219 'stable_message.html': 'Since {{content.version}}.',
220 'content_scripts.html': 'Content Scripts'