OLD | NEW |
(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': '{"earlyAPI1": {"channel": "stable", "versi
on": "10"}, "earlyAPI2": {"channel": "trunk"}}', |
| 39 'intro_tables.json': '{"test": [{"Permissions": "blue"}]}' |
| 40 } |
| 41 } |
| 42 }, |
| 43 'api': { |
| 44 '_api_features.json': '{"contextMenus": {"channel": "stable"}, "extension"
: {"channel": "stable"}, "trunk": {"channel": "trunk"}}', |
| 45 '_permission_features.json': '{"alarms": {"channel": "stable"}, "bookmarks
": {"channel": "stable"}, "cookies": {"channel": "dev"}, "notReallyBetaAPI": {"c
hannel": "beta"}, "trunkAPI": {"channel": "trunk"}}', |
| 46 '_manifest_features.json': '{"runtime": {"channel": "stable"}, "storage":
{"channel": "beta"}, "sync": {"channel": "trunk"}}', |
| 47 'cookies.json': 'cookies contents', |
| 48 'idle.json': 'idle 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': '{"extension": {"channel": "stable"}}', |
| 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"}, "bookmarks
": {"channel": "stable"}, "cookies": {"channel": "dev"}, "downloads": {"channel"
: "beta"}}', |
| 59 'idle.json': 'idle contents', |
| 60 'menus.json': 'menus contents', |
| 61 'tabs.json': 'tabs contents', |
| 62 'windows.json': 'windows contents' |
| 63 } |
| 64 }, |
| 65 '1453': { |
| 66 'api': { |
| 67 '_api_features.json': '{"extension": {"channel": "stable"}, "systemInfo.cp
u": {"channel": "stable"}}', |
| 68 '_manifest_features.json': '{"notifications": {"channel": "dev"}, "runtime
": {"channel": "stable"}, "storage": {"channel": "dev"}}', |
| 69 '_permission_features.json': '{"alarms": {"channel": "stable"}, "bookmarks
": {"channel": "stable"}, "downloads": {"channel": "dev"}, "context_menus": {"ch
annel": "trunk"}}', |
| 70 'idle.json': 'idle contents', |
| 71 'menus.json': 'menus contents', |
| 72 'tabs.json': 'tabs contents', |
| 73 'windows.json': 'windows contents' |
| 74 } |
| 75 }, |
| 76 '1410': { |
| 77 'api': { |
| 78 '_manifest_features.json': '{"notifications": {"channel": "dev"}, "runtime
": {"channel": "stable"}}', |
| 79 '_permission_features.json': '{"alarms": {"channel": "stable"}, "bookmarks
": {"channel": "stable"}, "context_menus": {"channel": "trunk"}, "systemInfo.dis
play": {"channel": "stable"}}', |
| 80 'idle.json': 'idle contents', |
| 81 'menus.json': 'menus contents', |
| 82 'tabs.json': 'tabs contents', |
| 83 'windows.json': 'windows contents' |
| 84 } |
| 85 }, |
| 86 '1364': { |
| 87 'api': { |
| 88 '_manifest_features.json': '{"runtime": {"channel": "stable"}}', |
| 89 '_permission_features.json': '{"alarms": {"channel": "stable"}, "bookmarks
": {"channel": "stable"}, "systemInfo.display": {"channel": "stable"}}', |
| 90 'idle.json': 'idle contents', |
| 91 'menus.json': 'menus contents', |
| 92 'tabs.json': 'tabs contents', |
| 93 'windows.json': 'windows contents' |
| 94 } |
| 95 }, |
| 96 '1312': { |
| 97 'api': { |
| 98 '_manifest_features.json': '{"runtime": {"channel": "stable"}}', |
| 99 '_permission_features.json': '{"alarms": {"channel": "stable"}, "bookmarks
": {"channel": "stable"}, "systemInfo.display": {"channel": "stable"}}', |
| 100 'idle.json': 'idle contents', |
| 101 'menus.json': 'menus contents', |
| 102 'tabs.json': 'tabs contents', |
| 103 'windows.json': 'windows contents' |
| 104 } |
| 105 }, |
| 106 '1271': { |
| 107 'api': { |
| 108 '_manifest_features.json': '{"runtime": {"channel": "stable"}, "system_inf
o_display": {"channel": "stable"}}', |
| 109 '_permission_features.json': '{"alarms": {"channel": "beta"}, "bookmarks":
{"channel": "stable"}}', |
| 110 'idle.json': 'idle contents', |
| 111 'menus.json': 'menus contents', |
| 112 'tabs.json': 'tabs contents', |
| 113 'windows.json': 'windows contents' |
| 114 } |
| 115 }, |
| 116 '1229': { |
| 117 'api': { |
| 118 '_manifest_features.json': '{"runtime": {"channel": "stable"}}', |
| 119 '_permission_features.json': '{"bookmarks": {"channel": "stable"}, "system
Info.display": {"channel": "beta"}}', |
| 120 'idle.json': 'idle contents', |
| 121 'menus.json': 'menus contents', |
| 122 'tabs.json': 'tabs contents' |
| 123 } |
| 124 }, |
| 125 '1180': { |
| 126 'api': { |
| 127 '_manifest_features.json': '{"runtime": {"channel": "stable"}}', |
| 128 '_permission_features.json': '{"bookmarks": {"channel": "stable"}}', |
| 129 'idle.json': 'idle contents', |
| 130 'menus.json': 'menus contents', |
| 131 'tabs.json': 'tabs contents' |
| 132 } |
| 133 }, |
| 134 '1132': { |
| 135 'api': { |
| 136 '_manifest_features.json': '{"contents": "null"}', |
| 137 '_permission_features.json': '{"contents": "null"}', |
| 138 'idle.json': 'idle contents', |
| 139 'menus.json': 'menus contents', |
| 140 'tabs.json': 'tabs contents' |
| 141 } |
| 142 }, |
| 143 '1084': { |
| 144 'api': { |
| 145 'idle.json': 'idle contents', |
| 146 'menus.json': 'menus contents', |
| 147 'tabs.json': 'tabs contents' |
| 148 } |
| 149 }, |
| 150 '1025': { |
| 151 'api': { |
| 152 'idle.json': 'idle contents', |
| 153 'menus.json': 'menus contents', |
| 154 'tabs.json': 'tabs contents' |
| 155 } |
| 156 }, |
| 157 '963': { |
| 158 'api': { |
| 159 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]' |
| 160 } |
| 161 }, |
| 162 '912': { |
| 163 'api': { |
| 164 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]' |
| 165 } |
| 166 }, |
| 167 '874': { |
| 168 'api': { |
| 169 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]' |
| 170 } |
| 171 }, |
| 172 '835': { |
| 173 'api': { |
| 174 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]' |
| 175 } |
| 176 }, |
| 177 '782': { |
| 178 'api': { |
| 179 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]' |
| 180 } |
| 181 }, |
| 182 '742': { |
| 183 'api': { |
| 184 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]' |
| 185 } |
| 186 }, |
| 187 '696': { |
| 188 'api': { |
| 189 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]' |
| 190 } |
| 191 }, |
| 192 '648': { |
| 193 'api': { |
| 194 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]' |
| 195 } |
| 196 }, |
| 197 '597': { |
| 198 'api': { |
| 199 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]' |
| 200 } |
| 201 }, |
| 202 '552': { |
| 203 'api': { |
| 204 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]' |
| 205 } |
| 206 }, |
| 207 '544': { |
| 208 'api': { |
| 209 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]' |
| 210 } |
| 211 }, |
| 212 '495': { |
| 213 'api': { |
| 214 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "menus"}]' |
| 215 } |
| 216 }, |
| 217 '396': { |
| 218 'api': { |
| 219 'extension_api.json': '[{"namespace": "idle"}, {"namespace": "experimental
.menus"}]' |
| 220 } |
| 221 } |
| 222 } |
| 223 |
| 224 CANNED_TEST_FILE_SYSTEM_DATA = { |
| 225 'api': { |
| 226 '_manifest_features.json': '{"manifest": "features"}', |
| 227 '_permission_features.json': '{"permission": "features"}' |
| 228 }, |
| 229 'docs': { |
| 230 'templates': { |
| 231 'intros': { |
| 232 'test.html': '<h1>hi</h1>you<h2>first</h2><h3>inner</h3><h2>second</h2>' |
| 233 }, |
| 234 'json': { |
| 235 'api_availabilities.json': '{"tester": "42"}', |
| 236 'intro_tables.json': '{ "tester": {"Permissions": [{"permission": "teste
r" }, {"extra": "is an API." }], "LearnMore": [{"href": "https://tester.test.com
/welcome.html", "content": "Welcome!" }]}}' |
| 237 } |
| 238 } |
| 239 } |
| 240 } |
OLD | NEW |