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

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

Issue 68873003: Docserver: Serve docs out of src/ not src/chrome/common/extensions. This allows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix samples Created 7 years, 1 month 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 | Annotate | Revision Log
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
7 from extensions_paths import EXTENSIONS
6 from third_party.json_schema_compiler.json_parse import OrderedDict 8 from third_party.json_schema_compiler.json_parse import OrderedDict
9 from test_file_system import MoveAllTo, MoveTo
7 10
8 11
9 CANNED_CHANNELS = OrderedDict([ 12 CANNED_CHANNELS = OrderedDict([
10 ('trunk', 'trunk'), 13 ('trunk', 'trunk'),
11 ('dev', 28), 14 ('dev', 28),
12 ('beta', 27), 15 ('beta', 27),
13 ('stable', 26) 16 ('stable', 26)
14 ]) 17 ])
15 18
16 19
(...skipping 19 matching lines...) Expand all
36 (11, '696'), 39 (11, '696'),
37 (10, '648'), 40 (10, '648'),
38 ( 9, '597'), 41 ( 9, '597'),
39 ( 8, '552'), 42 ( 8, '552'),
40 ( 7, '544'), 43 ( 7, '544'),
41 ( 6, '495'), 44 ( 6, '495'),
42 ( 5, '396'), 45 ( 5, '396'),
43 ]) 46 ])
44 47
45 48
46 CANNED_TEST_FILE_SYSTEM_DATA = { 49 CANNED_TEST_FILE_SYSTEM_DATA = MoveTo(EXTENSIONS, {
47 'api': { 50 'api': {
48 '_api_features.json': json.dumps({ 51 '_api_features.json': json.dumps({
49 'ref_test': { 'dependencies': ['permission:ref_test'] }, 52 'ref_test': { 'dependencies': ['permission:ref_test'] },
50 'tester': { 'dependencies': ['permission:tester', 'manifest:tester'] } 53 'tester': { 'dependencies': ['permission:tester', 'manifest:tester'] }
51 }), 54 }),
52 '_manifest_features.json': json.dumps({ 55 '_manifest_features.json': json.dumps({
53 'manifest': 'features' 56 'manifest': 'features'
54 }), 57 }),
55 '_permission_features.json': json.dumps({ 58 '_permission_features.json': json.dumps({
56 'permission': 'features' 59 'permission': 'features'
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 100 }
98 }) 101 })
99 }, 102 },
100 'private': { 103 'private': {
101 'intro_tables': { 104 'intro_tables': {
102 'trunk_message.html': 'available on trunk' 105 'trunk_message.html': 'available on trunk'
103 } 106 }
104 } 107 }
105 } 108 }
106 } 109 }
107 } 110 })
108 111
109 112
110 CANNED_API_FILE_SYSTEM_DATA = { 113 CANNED_API_FILE_SYSTEM_DATA = MoveAllTo(EXTENSIONS, {
111 'trunk': { 114 'trunk': {
112 'api': { 115 'api': {
113 '_api_features.json': json.dumps({ 116 '_api_features.json': json.dumps({
114 'contextMenus': { 117 'contextMenus': {
115 'channel': 'stable' 118 'channel': 'stable'
116 }, 119 },
117 'events': { 120 'events': {
118 'channel': 'stable' 121 'channel': 'stable'
119 }, 122 },
120 'extension': { 123 'extension': {
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 'extension_api.json': json.dumps([ 787 'extension_api.json': json.dumps([
785 { 788 {
786 'namespace': 'idle' 789 'namespace': 'idle'
787 }, 790 },
788 { 791 {
789 'namespace': 'experimental.menus' 792 'namespace': 'experimental.menus'
790 } 793 }
791 ]) 794 ])
792 } 795 }
793 } 796 }
794 } 797 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698