Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <?xml version="1.0" encoding="utf-8" ?> |
michael@0 | 2 | <searchresults total_results="1111"> |
michael@0 | 3 | <!-- Passes all requirements --> |
michael@0 | 4 | <addon> |
michael@0 | 5 | <name>PASS</name> |
michael@0 | 6 | <type id="1">Extension</type> |
michael@0 | 7 | <guid>test1@tests.mozilla.org</guid> |
michael@0 | 8 | <version>1.1</version> |
michael@0 | 9 | <authors> |
michael@0 | 10 | <author> |
michael@0 | 11 | <name>Test Creator 1</name> |
michael@0 | 12 | <link>http://localhost:%PORT%/creator1.html</link> |
michael@0 | 13 | </author> |
michael@0 | 14 | </authors> |
michael@0 | 15 | <status id="8">Preliminarily Reviewed</status> |
michael@0 | 16 | <compatible_applications> |
michael@0 | 17 | <application> |
michael@0 | 18 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 19 | <min_version>1</min_version> |
michael@0 | 20 | <max_version>1</max_version> |
michael@0 | 21 | </application> |
michael@0 | 22 | </compatible_applications> |
michael@0 | 23 | <!-- Test that a negative rating is ignored --> |
michael@0 | 24 | <rating>-2</rating> |
michael@0 | 25 | <!-- Test that a <reviews> with a blank review URL is ignored --> |
michael@0 | 26 | <reviews num=" 1111 "> </reviews> |
michael@0 | 27 | <!-- Test that a negative total_downloads is ignored --> |
michael@0 | 28 | <total_downloads>-2</total_downloads> |
michael@0 | 29 | <install>http://localhost:%PORT%/test1.xpi</install> |
michael@0 | 30 | </addon> |
michael@0 | 31 | |
michael@0 | 32 | <!-- Passes requirements. Tests optional attributes. Also tests that |
michael@0 | 33 | integer properties that are NaN in the XML are ignored --> |
michael@0 | 34 | <addon> |
michael@0 | 35 | <name>PASS</name> |
michael@0 | 36 | <!-- Test that extensions pass --> |
michael@0 | 37 | <type id="1">Extension</type> |
michael@0 | 38 | <guid>test2@tests.mozilla.org</guid> |
michael@0 | 39 | <version>1.2</version> |
michael@0 | 40 | <authors> |
michael@0 | 41 | <!-- Test that the first author becomes the creator, |
michael@0 | 42 | and the second one is a developer --> |
michael@0 | 43 | <author> |
michael@0 | 44 | <name>Test Creator 2</name> |
michael@0 | 45 | <link>http://localhost:%PORT%/creator2.html</link> |
michael@0 | 46 | </author> |
michael@0 | 47 | <author> |
michael@0 | 48 | <name>Test Developer 2</name> |
michael@0 | 49 | <link>http://localhost:%PORT%/developer2.html</link> |
michael@0 | 50 | </author> |
michael@0 | 51 | </authors> |
michael@0 | 52 | <summary><h1>Test Summary 2</h1><p>paragraph</p></summary> |
michael@0 | 53 | <description>Test Description 2<br>newline</description> |
michael@0 | 54 | <developer_comments>Test Developer |
michael@0 | 55 | Comments 2</developer_comments> |
michael@0 | 56 | <eula>Test EULA 2</eula> |
michael@0 | 57 | <icon size="64">http://localhost:%PORT%/icon2-64.png</icon> |
michael@0 | 58 | <icon size="48">http://localhost:%PORT%/icon2-48.png</icon> |
michael@0 | 59 | <icon size="32">http://localhost:%PORT%/icon2-32.png</icon> |
michael@0 | 60 | <status id="4">Public</status> |
michael@0 | 61 | <compatible_applications> |
michael@0 | 62 | <application> |
michael@0 | 63 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 64 | <min_version>1</min_version> |
michael@0 | 65 | <max_version>1</max_version> |
michael@0 | 66 | </application> |
michael@0 | 67 | </compatible_applications> |
michael@0 | 68 | <!-- Test that multiple preview images are correctly parsed --> |
michael@0 | 69 | <previews> |
michael@0 | 70 | <preview primary="0"> |
michael@0 | 71 | <full type="image/png">http://localhost:%PORT%/full1-2.png</full> |
michael@0 | 72 | <thumbnail type="image/png">http://localhost:%PORT%/thumbnail1-2.png</thumbnail> |
michael@0 | 73 | </preview> |
michael@0 | 74 | <preview primary="0"> |
michael@0 | 75 | <full type="image/png">http://localhost:%PORT%/full2-2.png</full> |
michael@0 | 76 | <thumbnail type="image/png">http://localhost:%PORT%/thumbnail2-2.png</thumbnail> |
michael@0 | 77 | <caption>Caption 2</caption> |
michael@0 | 78 | </preview> |
michael@0 | 79 | </previews> |
michael@0 | 80 | <rating>NaN</rating> |
michael@0 | 81 | <!-- Test that learnmore is used as the add-on's homepageURL |
michael@0 | 82 | if there is no homepage defined --> |
michael@0 | 83 | <learnmore>http://localhost:%PORT%/learnmore2.html</learnmore> |
michael@0 | 84 | <homepage/> |
michael@0 | 85 | <support>http://localhost:%PORT%/support2.html</support> |
michael@0 | 86 | <contribution_data> |
michael@0 | 87 | <link>http://localhost:%PORT%/contribution2.html</link> |
michael@0 | 88 | <meet_developers>http://localhost:%PORT%/meetDevelopers2.html</meet_developers> |
michael@0 | 89 | </contribution_data> |
michael@0 | 90 | <reviews num="NaN">http://localhost:%PORT%/review2.html</reviews> |
michael@0 | 91 | <total_downloads>NaN</total_downloads> |
michael@0 | 92 | <weekly_downloads>NaN</weekly_downloads> |
michael@0 | 93 | <daily_users>NaN</daily_users> |
michael@0 | 94 | <last_updated epoch="NaN">Not an acual date</last_updated> |
michael@0 | 95 | <install size="NaN" os="ALL">http://localhost:%PORT%/test2.xpi</install> |
michael@0 | 96 | </addon> |
michael@0 | 97 | |
michael@0 | 98 | <!-- Passes requirements. Tests optional attributes with extra whitespace. --> |
michael@0 | 99 | <addon> |
michael@0 | 100 | <name> PASS </name> |
michael@0 | 101 | <!-- Test that themes pass --> |
michael@0 | 102 | <type id=" 2 ">Theme</type> |
michael@0 | 103 | <guid> test3@tests.mozilla.org </guid> |
michael@0 | 104 | <version> 1.3 </version> |
michael@0 | 105 | <authors> |
michael@0 | 106 | <!-- Test that authors with blank names are ignored --> |
michael@0 | 107 | <author> |
michael@0 | 108 | <name> </name> |
michael@0 | 109 | <link> http://localhost:%PORT%/ignore3.html </link> |
michael@0 | 110 | </author> |
michael@0 | 111 | <!-- Test that authors with blank links are ignored --> |
michael@0 | 112 | <author> |
michael@0 | 113 | <name> Test Creator Ignore </name> |
michael@0 | 114 | <link> </link> |
michael@0 | 115 | </author> |
michael@0 | 116 | <author> |
michael@0 | 117 | <name> Test Creator 3 </name> |
michael@0 | 118 | <link> http://localhost:%PORT%/creator3.html </link> |
michael@0 | 119 | </author> |
michael@0 | 120 | <author> |
michael@0 | 121 | <name> First Test Developer 3 </name> |
michael@0 | 122 | <link> http://localhost:%PORT%/developer1-3.html </link> |
michael@0 | 123 | </author> |
michael@0 | 124 | <author> |
michael@0 | 125 | <name> </name> |
michael@0 | 126 | <link> </link> |
michael@0 | 127 | </author> |
michael@0 | 128 | <author> |
michael@0 | 129 | <name> Second Test Developer 3 </name> |
michael@0 | 130 | <link> http://localhost:%PORT%/developer2-3.html </link> |
michael@0 | 131 | </author> |
michael@0 | 132 | </authors> |
michael@0 | 133 | <summary> Test Summary 3 </summary> |
michael@0 | 134 | <description> Test Description 3<br><ul><li>List item 1<li>List item 2</ul> </description> |
michael@0 | 135 | <developer_comments> Test Developer Comments 3 </developer_comments> |
michael@0 | 136 | <eula> Test EULA 3 </eula> |
michael@0 | 137 | <icon size="32"> http://localhost:%PORT%/icon3.png </icon> |
michael@0 | 138 | <status id=" 8 ">Preliminarily Reviewed</status> |
michael@0 | 139 | <!-- Test that an incompatible + compatible application list passes --> |
michael@0 | 140 | <compatible_applications> |
michael@0 | 141 | <application> |
michael@0 | 142 | <appID> unknown@tests.mozilla.org </appID> |
michael@0 | 143 | <min_version> 1 </min_version> |
michael@0 | 144 | <max_version> 1 </max_version> |
michael@0 | 145 | </application> |
michael@0 | 146 | <application> |
michael@0 | 147 | <appID> xpcshell@tests.mozilla.org </appID> |
michael@0 | 148 | <min_version> 1 </min_version> |
michael@0 | 149 | <max_version> 1 </max_version> |
michael@0 | 150 | </application> |
michael@0 | 151 | </compatible_applications> |
michael@0 | 152 | <!-- Test that primary images appear first in the add-on's screenshots array --> |
michael@0 | 153 | <previews> |
michael@0 | 154 | <preview primary=" 0 "> |
michael@0 | 155 | <full type=" image/png "> http://localhost:%PORT%/full2-3.png </full> |
michael@0 | 156 | <caption> Caption 2 - 3 </caption> |
michael@0 | 157 | </preview> |
michael@0 | 158 | <!-- Test that a preview without a <full> element is ignored --> |
michael@0 | 159 | <preview primary=" 0 "> |
michael@0 | 160 | <caption> Caption ignore - 3 </caption> |
michael@0 | 161 | </preview> |
michael@0 | 162 | <!-- Test that a preview with an empty <full> element is ignored --> |
michael@0 | 163 | <preview primary=" 0 "> |
michael@0 | 164 | <full type=" image/png "> </full> |
michael@0 | 165 | <caption> Caption ignore - 3 </caption> |
michael@0 | 166 | <preview primary=" 1 "> |
michael@0 | 167 | <full type=" image/png "> http://localhost:%PORT%/full1-3.png </full> |
michael@0 | 168 | <thumbnail type=" image/png "> http://localhost:%PORT%/thumbnail1-3.png </thumbnail> |
michael@0 | 169 | <caption> Caption 1 - 3 </caption> |
michael@0 | 170 | </preview> |
michael@0 | 171 | <preview primary=" 0 "> |
michael@0 | 172 | <full type=" image/png "> http://localhost:%PORT%/full3-3.png </full> |
michael@0 | 173 | <thumbnail type=" image/png "> http://localhost:%PORT%/thumbnail3-3.png </thumbnail> |
michael@0 | 174 | <caption> Caption 3 - 3 </caption> |
michael@0 | 175 | </preview> |
michael@0 | 176 | </preview> |
michael@0 | 177 | </previews> |
michael@0 | 178 | <!-- Test that a rating between 1 and 5 is correctly parsed --> |
michael@0 | 179 | <rating> 2 </rating> |
michael@0 | 180 | <!-- Test that hompage is used as the add-on's homepageURL |
michael@0 | 181 | even if learnmore is defined --> |
michael@0 | 182 | <learnmore> http://localhost:%PORT%/learnmore3.html </learnmore> |
michael@0 | 183 | <homepage> http://localhost:%PORT%/homepage3.html </homepage> |
michael@0 | 184 | <support> http://localhost:%PORT%/support3.html </support> |
michael@0 | 185 | <contribution_data> |
michael@0 | 186 | <link> http://localhost:%PORT%/contribution3.html </link> |
michael@0 | 187 | <suggested_amount currency="USD"> $11.11 </suggested_amount> |
michael@0 | 188 | <meet_developers> http://localhost:%PORT%/meetDevelopers3.html </meet_developers> |
michael@0 | 189 | </contribution_data> |
michael@0 | 190 | <reviews num=" 1111 "> http://localhost:%PORT%/review3.html </reviews> |
michael@0 | 191 | <total_downloads> 2222 </total_downloads> |
michael@0 | 192 | <weekly_downloads> 3333 </weekly_downloads> |
michael@0 | 193 | <daily_users> 4444 </daily_users> |
michael@0 | 194 | <last_updated epoch=" 1265033045 "> 2010-02-01T14:04:05Z </last_updated> |
michael@0 | 195 | <!-- Test that an incompatible install is ignored --> |
michael@0 | 196 | <install size=" 9999 " os=" UNKNOWN "> http://localhost:%PORT%/fail3.xpi </install> |
michael@0 | 197 | <!-- Test that OS matching is case-insensitive --> |
michael@0 | 198 | <install size=" 5555 " os=" xpCShell " hash=" sha1:c26f0b0d62e5dcddcda95074d3f3fedb9bbc26e3 "> http://localhost:%PORT%/test3.xpi </install> |
michael@0 | 199 | </addon> |
michael@0 | 200 | |
michael@0 | 201 | <!-- Fails because name is undefined --> |
michael@0 | 202 | <addon> |
michael@0 | 203 | <type id="1">Extension</type> |
michael@0 | 204 | <guid>test4@tests.mozilla.org</guid> |
michael@0 | 205 | <version>1.4</version> |
michael@0 | 206 | <authors><author><name>Test Creator 4</name></author></authors> |
michael@0 | 207 | <status id="4">Public</status> |
michael@0 | 208 | <summary>Add-on with undefined name should be ignored.</summary> |
michael@0 | 209 | <compatible_applications> |
michael@0 | 210 | <application> |
michael@0 | 211 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 212 | <min_version>1</min_version> |
michael@0 | 213 | <max_version>1</max_version> |
michael@0 | 214 | </application> |
michael@0 | 215 | </compatible_applications> |
michael@0 | 216 | <install>http://localhost:%PORT%/test4.xpi</install> |
michael@0 | 217 | </addon> |
michael@0 | 218 | |
michael@0 | 219 | <!-- Fails because name is empty--> |
michael@0 | 220 | <addon> |
michael@0 | 221 | <name> </name> |
michael@0 | 222 | <type id="1">Extension</type> |
michael@0 | 223 | <guid>test5@tests.mozilla.org</guid> |
michael@0 | 224 | <version>1.5</version> |
michael@0 | 225 | <authors><author><name>Test Creator 5</name></author></authors> |
michael@0 | 226 | <status id="4">Public</status> |
michael@0 | 227 | <summary>Add-on with empty name should be ignored.</summary> |
michael@0 | 228 | <compatible_applications> |
michael@0 | 229 | <application> |
michael@0 | 230 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 231 | <min_version>1</min_version> |
michael@0 | 232 | <max_version>1</max_version> |
michael@0 | 233 | </application> |
michael@0 | 234 | </compatible_applications> |
michael@0 | 235 | <install>http://localhost:%PORT%/test5.xpi</install> |
michael@0 | 236 | </addon> |
michael@0 | 237 | |
michael@0 | 238 | <!-- Fails because type is undefined --> |
michael@0 | 239 | <addon> |
michael@0 | 240 | <name>FAIL</name> |
michael@0 | 241 | <guid>test6@tests.mozilla.org</guid> |
michael@0 | 242 | <version>1.6</version> |
michael@0 | 243 | <authors><author><name>Test Creator 6</name></author></authors> |
michael@0 | 244 | <status id="4">Public</status> |
michael@0 | 245 | <summary>Add-on with undefined type should be ignored</summary> |
michael@0 | 246 | <compatible_applications> |
michael@0 | 247 | <application> |
michael@0 | 248 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 249 | <min_version>1</min_version> |
michael@0 | 250 | <max_version>1</max_version> |
michael@0 | 251 | </application> |
michael@0 | 252 | </compatible_applications> |
michael@0 | 253 | <install>http://localhost:%PORT%/test6.xpi</install> |
michael@0 | 254 | </addon> |
michael@0 | 255 | |
michael@0 | 256 | <!-- Fails because type is empty --> |
michael@0 | 257 | <addon> |
michael@0 | 258 | <name>FAIL</name> |
michael@0 | 259 | <type id="">Empty id attribute</type> |
michael@0 | 260 | <guid>test7@tests.mozilla.org</guid> |
michael@0 | 261 | <version>1.7</version> |
michael@0 | 262 | <authors><author><name>Test Creator 7</name></author></authors> |
michael@0 | 263 | <status id="4">Public</status> |
michael@0 | 264 | <summary>Add-on with empty type should be ignored</summary> |
michael@0 | 265 | <compatible_applications> |
michael@0 | 266 | <application> |
michael@0 | 267 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 268 | <min_version>1</min_version> |
michael@0 | 269 | <max_version>1</max_version> |
michael@0 | 270 | </application> |
michael@0 | 271 | </compatible_applications> |
michael@0 | 272 | <install>http://localhost:%PORT%/test7.xpi</install> |
michael@0 | 273 | </addon> |
michael@0 | 274 | |
michael@0 | 275 | <!-- Fails because type is unknown --> |
michael@0 | 276 | <addon> |
michael@0 | 277 | <name>FAIL</name> |
michael@0 | 278 | <type id="9999">Unknown</type> |
michael@0 | 279 | <guid>test8@tests.mozilla.org</guid> |
michael@0 | 280 | <version>1.8</version> |
michael@0 | 281 | <authors><author><name>Test Creator 8</name></author></authors> |
michael@0 | 282 | <status id="4">Public</status> |
michael@0 | 283 | <summary>Add-on with unknown type should be ignored</summary> |
michael@0 | 284 | <compatible_applications> |
michael@0 | 285 | <application> |
michael@0 | 286 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 287 | <min_version>1</min_version> |
michael@0 | 288 | <max_version>1</max_version> |
michael@0 | 289 | </application> |
michael@0 | 290 | </compatible_applications> |
michael@0 | 291 | <install>http://localhost:%PORT%/test8.xpi</install> |
michael@0 | 292 | </addon> |
michael@0 | 293 | |
michael@0 | 294 | <!-- Fails because guid is undefined --> |
michael@0 | 295 | <addon> |
michael@0 | 296 | <name>FAIL</name> |
michael@0 | 297 | <type id="1">Extension</type> |
michael@0 | 298 | <version>1.9</version> |
michael@0 | 299 | <authors><author><name>Test Creator 9</name></author></authors> |
michael@0 | 300 | <status id="4">Public</status> |
michael@0 | 301 | <summary>Add-on with undefined guid should be ignored.</summary> |
michael@0 | 302 | <compatible_applications> |
michael@0 | 303 | <application> |
michael@0 | 304 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 305 | <min_version>1</min_version> |
michael@0 | 306 | <max_version>1</max_version> |
michael@0 | 307 | </application> |
michael@0 | 308 | </compatible_applications> |
michael@0 | 309 | <install>http://localhost:%PORT%/test9.xpi</install> |
michael@0 | 310 | </addon> |
michael@0 | 311 | |
michael@0 | 312 | <!-- Fails because guid is empty --> |
michael@0 | 313 | <addon> |
michael@0 | 314 | <name>FAIL</name> |
michael@0 | 315 | <type id="1">Extension</type> |
michael@0 | 316 | <guid> </guid> |
michael@0 | 317 | <version>1.10</version> |
michael@0 | 318 | <authors><author><name>Test Creator 10</name></author></authors> |
michael@0 | 319 | <status id="4">Public</status> |
michael@0 | 320 | <summary>Add-on with empty guid should be ignored.</summary> |
michael@0 | 321 | <compatible_applications> |
michael@0 | 322 | <application> |
michael@0 | 323 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 324 | <min_version>1</min_version> |
michael@0 | 325 | <max_version>1</max_version> |
michael@0 | 326 | </application> |
michael@0 | 327 | </compatible_applications> |
michael@0 | 328 | <install>http://localhost:%PORT%/test10.xpi</install> |
michael@0 | 329 | </addon> |
michael@0 | 330 | |
michael@0 | 331 | <!-- Fails because guid matches previously successful result --> |
michael@0 | 332 | <addon> |
michael@0 | 333 | <name>FAIL</name> |
michael@0 | 334 | <type id="1">Extension</type> |
michael@0 | 335 | <guid>test1@tests.mozilla.org</guid> |
michael@0 | 336 | <version>1.11</version> |
michael@0 | 337 | <authors><author><name>Test Creator 11</name></author></authors> |
michael@0 | 338 | <status id="4">Public</status> |
michael@0 | 339 | <summary>Add-on with a guid that matches a previously successful result should be ignored.</summary> |
michael@0 | 340 | <compatible_applications> |
michael@0 | 341 | <application> |
michael@0 | 342 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 343 | <min_version>1</min_version> |
michael@0 | 344 | <max_version>1</max_version> |
michael@0 | 345 | </application> |
michael@0 | 346 | </compatible_applications> |
michael@0 | 347 | <install>http://localhost:%PORT%/test11.xpi</install> |
michael@0 | 348 | </addon> |
michael@0 | 349 | |
michael@0 | 350 | <!-- Fails because guid matches already installed add-on --> |
michael@0 | 351 | <addon> |
michael@0 | 352 | <name>FAIL</name> |
michael@0 | 353 | <type id="1">Extension</type> |
michael@0 | 354 | <guid>test_AddonRepository_1@tests.mozilla.org</guid> |
michael@0 | 355 | <version>1.12</version> |
michael@0 | 356 | <authors><author><name>Test Creator 12</name></author></authors> |
michael@0 | 357 | <status id="4">Public</status> |
michael@0 | 358 | <summary>Add-on with a guid that matches an installed Addon should be ignored.</summary> |
michael@0 | 359 | <compatible_applications> |
michael@0 | 360 | <application> |
michael@0 | 361 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 362 | <min_version>1</min_version> |
michael@0 | 363 | <max_version>1</max_version> |
michael@0 | 364 | </application> |
michael@0 | 365 | </compatible_applications> |
michael@0 | 366 | <install>http://localhost:%PORT%/test12.xpi</install> |
michael@0 | 367 | </addon> |
michael@0 | 368 | |
michael@0 | 369 | <!-- Fails because version is undefined --> |
michael@0 | 370 | <addon> |
michael@0 | 371 | <name>FAIL</name> |
michael@0 | 372 | <type id="1">Extension</type> |
michael@0 | 373 | <guid>test13@tests.mozilla.org</guid> |
michael@0 | 374 | <authors><author><name>Test Creator 13</name></author></authors> |
michael@0 | 375 | <status id="4">Public</status> |
michael@0 | 376 | <summary>Add-on with undefined version should be ignored.</summary> |
michael@0 | 377 | <compatible_applications> |
michael@0 | 378 | <application> |
michael@0 | 379 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 380 | <min_version>1</min_version> |
michael@0 | 381 | <max_version>1</max_version> |
michael@0 | 382 | </application> |
michael@0 | 383 | </compatible_applications> |
michael@0 | 384 | <install>http://localhost:%PORT%/test13.xpi</install> |
michael@0 | 385 | </addon> |
michael@0 | 386 | |
michael@0 | 387 | <!-- Fails because version is empty --> |
michael@0 | 388 | <addon> |
michael@0 | 389 | <name>FAIL</name> |
michael@0 | 390 | <type id="1">Extension</type> |
michael@0 | 391 | <guid>test14@tests.mozilla.org</guid> |
michael@0 | 392 | <version> </version> |
michael@0 | 393 | <authors><author><name>Test Creator 14</name></author></authors> |
michael@0 | 394 | <status id="4">Public</status> |
michael@0 | 395 | <summary>Add-on with empty version should be ignored.</summary> |
michael@0 | 396 | <compatible_applications> |
michael@0 | 397 | <application> |
michael@0 | 398 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 399 | <min_version>1</min_version> |
michael@0 | 400 | <max_version>1</max_version> |
michael@0 | 401 | </application> |
michael@0 | 402 | </compatible_applications> |
michael@0 | 403 | <install>http://localhost:%PORT%/test14.xpi</install> |
michael@0 | 404 | </addon> |
michael@0 | 405 | |
michael@0 | 406 | <!-- Fails because authors undefined --> |
michael@0 | 407 | <addon> |
michael@0 | 408 | <name>FAIL</name> |
michael@0 | 409 | <type id="1">Extension</type> |
michael@0 | 410 | <guid>test15@tests.mozilla.org</guid> |
michael@0 | 411 | <version>1.15</version> |
michael@0 | 412 | <status id="4">Public</status> |
michael@0 | 413 | <summary>Add-on with undefined authors should be ignored.</summary> |
michael@0 | 414 | <compatible_applications> |
michael@0 | 415 | <application> |
michael@0 | 416 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 417 | <min_version>1</min_version> |
michael@0 | 418 | <max_version>1</max_version> |
michael@0 | 419 | </application> |
michael@0 | 420 | </compatible_applications> |
michael@0 | 421 | <install>http://localhost:%PORT%/test15.xpi</install> |
michael@0 | 422 | </addon> |
michael@0 | 423 | |
michael@0 | 424 | <!-- Fails because it has no defined author elements --> |
michael@0 | 425 | <addon> |
michael@0 | 426 | <name>FAIL</name> |
michael@0 | 427 | <type id="1">Extension</type> |
michael@0 | 428 | <guid>test16@tests.mozilla.org</guid> |
michael@0 | 429 | <version>1.16</version> |
michael@0 | 430 | <authors></authors> |
michael@0 | 431 | <status id="4">Public</status> |
michael@0 | 432 | <summary>Add-on with no defined author elements should be ignored.</summary> |
michael@0 | 433 | <compatible_applications> |
michael@0 | 434 | <application> |
michael@0 | 435 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 436 | <min_version>1</min_version> |
michael@0 | 437 | <max_version>1</max_version> |
michael@0 | 438 | </application> |
michael@0 | 439 | </compatible_applications> |
michael@0 | 440 | <install>http://localhost:%PORT%/test16.xpi</install> |
michael@0 | 441 | </addon> |
michael@0 | 442 | |
michael@0 | 443 | <!-- Fails because no non-empty author elements --> |
michael@0 | 444 | <addon> |
michael@0 | 445 | <name>FAIL</name> |
michael@0 | 446 | <type id="1">Extension</type> |
michael@0 | 447 | <guid>test17@tests.mozilla.org</guid> |
michael@0 | 448 | <version>1.17</version> |
michael@0 | 449 | <authors> |
michael@0 | 450 | <author><name></name></author> |
michael@0 | 451 | <author><name></name> </author> |
michael@0 | 452 | </authors> |
michael@0 | 453 | <status id="4">Public</status> |
michael@0 | 454 | <summary>Add-on with no non-empty author elements should be ignored.</summary> |
michael@0 | 455 | <compatible_applications> |
michael@0 | 456 | <application> |
michael@0 | 457 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 458 | <min_version>1</min_version> |
michael@0 | 459 | <max_version>1</max_version> |
michael@0 | 460 | </application> |
michael@0 | 461 | </compatible_applications> |
michael@0 | 462 | <install>http://localhost:%PORT%/test17.xpi</install> |
michael@0 | 463 | </addon> |
michael@0 | 464 | |
michael@0 | 465 | <!-- Fails because status is undefined --> |
michael@0 | 466 | <addon> |
michael@0 | 467 | <name>FAIL</name> |
michael@0 | 468 | <type id="1">Extension</type> |
michael@0 | 469 | <guid>test18@tests.mozilla.org</guid> |
michael@0 | 470 | <version>1.18</version> |
michael@0 | 471 | <authors><author><name>Test Creator 18</name></author></authors> |
michael@0 | 472 | <summary>Add-on with undefined status should be ignored.</summary> |
michael@0 | 473 | <compatible_applications> |
michael@0 | 474 | <application> |
michael@0 | 475 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 476 | <min_version>1</min_version> |
michael@0 | 477 | <max_version>1</max_version> |
michael@0 | 478 | </application> |
michael@0 | 479 | </compatible_applications> |
michael@0 | 480 | <install>http://localhost:%PORT%/test18.xpi</install> |
michael@0 | 481 | </addon> |
michael@0 | 482 | |
michael@0 | 483 | <!-- Fails because status is not Public --> |
michael@0 | 484 | <addon> |
michael@0 | 485 | <name>FAIL</name> |
michael@0 | 486 | <type id="1">Extension</type> |
michael@0 | 487 | <guid>test19@tests.mozilla.org</guid> |
michael@0 | 488 | <version>1.19</version> |
michael@0 | 489 | <authors><author><name>Test Creator 19</name></author></authors> |
michael@0 | 490 | <status id="9999">Unknown</status> |
michael@0 | 491 | <summary>Add-on with non-Public status should be ignored.</summary> |
michael@0 | 492 | <compatible_applications> |
michael@0 | 493 | <application> |
michael@0 | 494 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 495 | <min_version>1</min_version> |
michael@0 | 496 | <max_version>1</max_version> |
michael@0 | 497 | </application> |
michael@0 | 498 | </compatible_applications> |
michael@0 | 499 | <install>http://localhost:%PORT%/test19.xpi</install> |
michael@0 | 500 | </addon> |
michael@0 | 501 | |
michael@0 | 502 | <!-- Fails because compatible_applications is undefined --> |
michael@0 | 503 | <addon> |
michael@0 | 504 | <name>FAIL</name> |
michael@0 | 505 | <type id="1">Extension</type> |
michael@0 | 506 | <guid>test20@tests.mozilla.org</guid> |
michael@0 | 507 | <version>1.20</version> |
michael@0 | 508 | <authors><author><name>Test Creator 20</name></author></authors> |
michael@0 | 509 | <status id="4">Public</status> |
michael@0 | 510 | <summary>Add-on with undefined compatible_applications should be ignored.</summary> |
michael@0 | 511 | <install>http://localhost:%PORT%/test20.xpi</install> |
michael@0 | 512 | </addon> |
michael@0 | 513 | |
michael@0 | 514 | <!-- Fails because no compatible applications matched --> |
michael@0 | 515 | <addon> |
michael@0 | 516 | <name>FAIL</name> |
michael@0 | 517 | <type id="1">Extension</type> |
michael@0 | 518 | <guid>test21@tests.mozilla.org</guid> |
michael@0 | 519 | <version>1.21</version> |
michael@0 | 520 | <authors><author><name>Test Creator 21</name></author></authors> |
michael@0 | 521 | <status id="4">Public</status> |
michael@0 | 522 | <summary>Add-on with no compatible applications should be ignored.</summary> |
michael@0 | 523 | <compatible_applications> |
michael@0 | 524 | <application> |
michael@0 | 525 | <appID>unknown@tests.mozilla.org</appID> |
michael@0 | 526 | <min_version>1</min_version> |
michael@0 | 527 | <max_version>1</max_version> |
michael@0 | 528 | </application> |
michael@0 | 529 | </compatible_applications> |
michael@0 | 530 | <install>http://localhost:%PORT%/test21.xpi</install> |
michael@0 | 531 | </addon> |
michael@0 | 532 | |
michael@0 | 533 | <!-- Fails because compatible application's min version is undefined --> |
michael@0 | 534 | <addon> |
michael@0 | 535 | <name>FAIL</name> |
michael@0 | 536 | <type id="1">Extension</type> |
michael@0 | 537 | <guid>test22@tests.mozilla.org</guid> |
michael@0 | 538 | <version>1.22</version> |
michael@0 | 539 | <authors><author><name>Test Creator 22</name></author></authors> |
michael@0 | 540 | <status id="4">Public</status> |
michael@0 | 541 | <summary>Add-on with too high of a compatible application min version should be ignored.</summary> |
michael@0 | 542 | <compatible_applications> |
michael@0 | 543 | <application> |
michael@0 | 544 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 545 | <max_version>2.0</max_version> |
michael@0 | 546 | </application> |
michael@0 | 547 | </compatible_applications> |
michael@0 | 548 | <install>http://localhost:%PORT%/test22.xpi</install> |
michael@0 | 549 | </addon> |
michael@0 | 550 | |
michael@0 | 551 | <!-- Fails because compatible application's min version too high --> |
michael@0 | 552 | <addon> |
michael@0 | 553 | <name>FAIL</name> |
michael@0 | 554 | <type id="1">Extension</type> |
michael@0 | 555 | <guid>test23@tests.mozilla.org</guid> |
michael@0 | 556 | <version>1.23</version> |
michael@0 | 557 | <authors><author><name>Test Creator 23</name></author></authors> |
michael@0 | 558 | <status id="4">Public</status> |
michael@0 | 559 | <summary>Add-on with too high of a compatible application min version should be ignored.</summary> |
michael@0 | 560 | <compatible_applications> |
michael@0 | 561 | <application> |
michael@0 | 562 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 563 | <min_version>1.1</min_version> |
michael@0 | 564 | <max_version>2.0</max_version> |
michael@0 | 565 | </application> |
michael@0 | 566 | </compatible_applications> |
michael@0 | 567 | <install>http://localhost:%PORT%/test23.xpi</install> |
michael@0 | 568 | </addon> |
michael@0 | 569 | |
michael@0 | 570 | <!-- Fails because compatible application's max version is undefined --> |
michael@0 | 571 | <addon> |
michael@0 | 572 | <name>FAIL</name> |
michael@0 | 573 | <type id="1">Extension</type> |
michael@0 | 574 | <guid>test24@tests.mozilla.org</guid> |
michael@0 | 575 | <version>1.24</version> |
michael@0 | 576 | <authors><author><name>Test Creator 24</name></author></authors> |
michael@0 | 577 | <status id="4">Public</status> |
michael@0 | 578 | <summary>Add-on with too low of a compatible application max version should be ignored.</summary> |
michael@0 | 579 | <compatible_applications> |
michael@0 | 580 | <application> |
michael@0 | 581 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 582 | <min_version>0.9</min_version> |
michael@0 | 583 | </application> |
michael@0 | 584 | </compatible_applications> |
michael@0 | 585 | <install>http://localhost:%PORT%/test24.xpi</install> |
michael@0 | 586 | </addon> |
michael@0 | 587 | |
michael@0 | 588 | <!-- Fails because compatible application's max version is too low --> |
michael@0 | 589 | <addon> |
michael@0 | 590 | <name>FAIL</name> |
michael@0 | 591 | <type id="1">Extension</type> |
michael@0 | 592 | <guid>test25@tests.mozilla.org</guid> |
michael@0 | 593 | <version>1.25</version> |
michael@0 | 594 | <authors><author><name>Test Creator 25</name></author></authors> |
michael@0 | 595 | <status id="4">Public</status> |
michael@0 | 596 | <summary>Add-on with too low of a compatible application max version should be ignored.</summary> |
michael@0 | 597 | <compatible_applications> |
michael@0 | 598 | <application> |
michael@0 | 599 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 600 | <min_version>0.9</min_version> |
michael@0 | 601 | <max_version>0.9.9</max_version> |
michael@0 | 602 | </application> |
michael@0 | 603 | </compatible_applications> |
michael@0 | 604 | <install>http://localhost:%PORT%/test25.xpi</install> |
michael@0 | 605 | </addon> |
michael@0 | 606 | |
michael@0 | 607 | <!-- Fails because XPI URL is undefined --> |
michael@0 | 608 | <addon> |
michael@0 | 609 | <name>FAIL</name> |
michael@0 | 610 | <type id="1">Extension</type> |
michael@0 | 611 | <guid>test26@tests.mozilla.org</guid> |
michael@0 | 612 | <version>1.26</version> |
michael@0 | 613 | <authors><author><name>Test Creator 26</name></author></authors> |
michael@0 | 614 | <status id="4">Public</status> |
michael@0 | 615 | <summary>Add-on with undefined XPI URL should be ignored.</summary> |
michael@0 | 616 | <compatible_applications> |
michael@0 | 617 | <application> |
michael@0 | 618 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 619 | <min_version>1</min_version> |
michael@0 | 620 | <max_version>1</max_version> |
michael@0 | 621 | </application> |
michael@0 | 622 | </compatible_applications> |
michael@0 | 623 | </addon> |
michael@0 | 624 | |
michael@0 | 625 | <!-- Fails because XPI URL is empty --> |
michael@0 | 626 | <addon> |
michael@0 | 627 | <name>FAIL</name> |
michael@0 | 628 | <type id="1">Extension</type> |
michael@0 | 629 | <guid>test27@tests.mozilla.org</guid> |
michael@0 | 630 | <version>1.27</version> |
michael@0 | 631 | <authors><author><name>Test Creator 27</name></author></authors> |
michael@0 | 632 | <status id="4">Public</status> |
michael@0 | 633 | <summary>Add-on with an empty XPI URL should be ignored.</summary> |
michael@0 | 634 | <compatible_applications> |
michael@0 | 635 | <application> |
michael@0 | 636 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 637 | <min_version>1</min_version> |
michael@0 | 638 | <max_version>1</max_version> |
michael@0 | 639 | </application> |
michael@0 | 640 | </compatible_applications> |
michael@0 | 641 | <install> </install> |
michael@0 | 642 | </addon> |
michael@0 | 643 | |
michael@0 | 644 | <!-- Fails because install not compatible with OS --> |
michael@0 | 645 | <addon> |
michael@0 | 646 | <name>FAIL</name> |
michael@0 | 647 | <type id="1">Extension</type> |
michael@0 | 648 | <guid>test28@tests.mozilla.org</guid> |
michael@0 | 649 | <version>1.28</version> |
michael@0 | 650 | <authors><author><name>Test Creator 28</name></author></authors> |
michael@0 | 651 | <status id="4">Public</status> |
michael@0 | 652 | <summary>Add-on with no installs with compatible OS should be ignored.</summary> |
michael@0 | 653 | <compatible_applications> |
michael@0 | 654 | <application> |
michael@0 | 655 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 656 | <min_version>1</min_version> |
michael@0 | 657 | <max_version>1</max_version> |
michael@0 | 658 | </application> |
michael@0 | 659 | </compatible_applications> |
michael@0 | 660 | <install os="UNKNOWN1">http://localhost:%PORT%/test28.xpi</install> |
michael@0 | 661 | <install os="UNKNOWN2">http://localhost:%PORT%/test28.xpi</install> |
michael@0 | 662 | </addon> |
michael@0 | 663 | |
michael@0 | 664 | <!-- Fails because XPI URL matches an installing AddonInstall --> |
michael@0 | 665 | <addon> |
michael@0 | 666 | <name>FAIL</name> |
michael@0 | 667 | <type id="1">Extension</type> |
michael@0 | 668 | <guid>test29@tests.mozilla.org</guid> |
michael@0 | 669 | <version>1.29</version> |
michael@0 | 670 | <authors><author><name>Test Creator 29</name></author></authors> |
michael@0 | 671 | <status id="4">Public</status> |
michael@0 | 672 | <summary>Add-on with an XPI URL that matches an installing AddonInstall should be ignored.</summary> |
michael@0 | 673 | <compatible_applications> |
michael@0 | 674 | <application> |
michael@0 | 675 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 676 | <min_version>1</min_version> |
michael@0 | 677 | <max_version>1</max_version> |
michael@0 | 678 | </application> |
michael@0 | 679 | </compatible_applications> |
michael@0 | 680 | <install>http://localhost:%PORT%/addons/test_AddonRepository_2.xpi</install> |
michael@0 | 681 | </addon> |
michael@0 | 682 | |
michael@0 | 683 | <!-- Passes because the add-on has the right payment info --> |
michael@0 | 684 | <addon> |
michael@0 | 685 | <name>PASS</name> |
michael@0 | 686 | <type id="1">Extension</type> |
michael@0 | 687 | <guid>purchase1@tests.mozilla.org</guid> |
michael@0 | 688 | <version>2.0</version> |
michael@0 | 689 | <authors> |
michael@0 | 690 | <author> |
michael@0 | 691 | <name>Test Creator - Last Passing</name> |
michael@0 | 692 | <link>http://localhost:%PORT%/creatorLastPassing.html</link> |
michael@0 | 693 | </author> |
michael@0 | 694 | </authors> |
michael@0 | 695 | <status id="4">Public</status> |
michael@0 | 696 | <all_compatible_os> |
michael@0 | 697 | <os>ALL</os> |
michael@0 | 698 | </all_compatible_os> |
michael@0 | 699 | <compatible_applications> |
michael@0 | 700 | <application> |
michael@0 | 701 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 702 | <min_version>1</min_version> |
michael@0 | 703 | <max_version>1</max_version> |
michael@0 | 704 | </application> |
michael@0 | 705 | </compatible_applications> |
michael@0 | 706 | <rating>5</rating> |
michael@0 | 707 | <payment_data> |
michael@0 | 708 | <link>http://localhost:%PORT%/purchaseURL1</link> |
michael@0 | 709 | <amount amount="5">$5</amount> |
michael@0 | 710 | </payment_data> |
michael@0 | 711 | </addon> |
michael@0 | 712 | |
michael@0 | 713 | <!-- Passes because the add-on has the right payment info --> |
michael@0 | 714 | <addon> |
michael@0 | 715 | <name>PASS</name> |
michael@0 | 716 | <type id="1">Extension</type> |
michael@0 | 717 | <guid>purchase2@tests.mozilla.org</guid> |
michael@0 | 718 | <version>2.0</version> |
michael@0 | 719 | <authors> |
michael@0 | 720 | <author> |
michael@0 | 721 | <name>Test Creator - Last Passing</name> |
michael@0 | 722 | <link>http://localhost:%PORT%/creatorLastPassing.html</link> |
michael@0 | 723 | </author> |
michael@0 | 724 | </authors> |
michael@0 | 725 | <status id="4">Public</status> |
michael@0 | 726 | <all_compatible_os> |
michael@0 | 727 | <os>XPCShell</os> |
michael@0 | 728 | </all_compatible_os> |
michael@0 | 729 | <compatible_applications> |
michael@0 | 730 | <application> |
michael@0 | 731 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 732 | <min_version>1</min_version> |
michael@0 | 733 | <max_version>1</max_version> |
michael@0 | 734 | </application> |
michael@0 | 735 | </compatible_applications> |
michael@0 | 736 | <rating>5</rating> |
michael@0 | 737 | <payment_data> |
michael@0 | 738 | <link>http://localhost:%PORT%/purchaseURL2</link> |
michael@0 | 739 | <amount amount="10.0">$10</amount> |
michael@0 | 740 | </payment_data> |
michael@0 | 741 | </addon> |
michael@0 | 742 | |
michael@0 | 743 | <!-- Fails because the add-on doesn't match the platform --> |
michael@0 | 744 | <addon> |
michael@0 | 745 | <name>FAIL</name> |
michael@0 | 746 | <type id="1">Extension</type> |
michael@0 | 747 | <guid>purchase3@tests.mozilla.org</guid> |
michael@0 | 748 | <version>2.0</version> |
michael@0 | 749 | <authors> |
michael@0 | 750 | <author> |
michael@0 | 751 | <name>Test Creator - Last Passing</name> |
michael@0 | 752 | <link>http://localhost:%PORT%/creatorLastPassing.html</link> |
michael@0 | 753 | </author> |
michael@0 | 754 | </authors> |
michael@0 | 755 | <status id="4">Public</status> |
michael@0 | 756 | <all_compatible_os> |
michael@0 | 757 | <os>FOO</os> |
michael@0 | 758 | </all_compatible_os> |
michael@0 | 759 | <compatible_applications> |
michael@0 | 760 | <application> |
michael@0 | 761 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 762 | <min_version>1</min_version> |
michael@0 | 763 | <max_version>1</max_version> |
michael@0 | 764 | </application> |
michael@0 | 765 | </compatible_applications> |
michael@0 | 766 | <rating>5</rating> |
michael@0 | 767 | <payment_data> |
michael@0 | 768 | <link>http://localhost:%PORT%/purchaseURL3</link> |
michael@0 | 769 | <amount amount="10">$10</amount> |
michael@0 | 770 | </payment_data> |
michael@0 | 771 | </addon> |
michael@0 | 772 | |
michael@0 | 773 | <!-- Passes because the Addon that has a matching XPI URL |
michael@0 | 774 | has a state = STATE_AVAILABLE (non-active install). This is the |
michael@0 | 775 | last passing add-on. --> |
michael@0 | 776 | <addon> |
michael@0 | 777 | <name>PASS</name> |
michael@0 | 778 | <type id="1">Extension</type> |
michael@0 | 779 | <guid>test-lastPassing@tests.mozilla.org</guid> |
michael@0 | 780 | <version>2.0</version> |
michael@0 | 781 | <authors> |
michael@0 | 782 | <author> |
michael@0 | 783 | <name>Test Creator - Last Passing</name> |
michael@0 | 784 | <link>http://localhost:%PORT%/creatorLastPassing.html</link> |
michael@0 | 785 | </author> |
michael@0 | 786 | </authors> |
michael@0 | 787 | <status id="4">Public</status> |
michael@0 | 788 | <compatible_applications> |
michael@0 | 789 | <application> |
michael@0 | 790 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 791 | <min_version>1</min_version> |
michael@0 | 792 | <max_version>1</max_version> |
michael@0 | 793 | </application> |
michael@0 | 794 | </compatible_applications> |
michael@0 | 795 | <!-- Test that a rating > 5 becomes a rating = 5 --> |
michael@0 | 796 | <rating>10</rating> |
michael@0 | 797 | <install>http://localhost:%PORT%/addons/test_AddonRepository_3.xpi</install> |
michael@0 | 798 | </addon> |
michael@0 | 799 | |
michael@0 | 800 | <!-- Fails because of MAX_RESULTS limit. The previous <addon> should |
michael@0 | 801 | be the last passing add-on in order to correctly test the limit. --> |
michael@0 | 802 | <addon> |
michael@0 | 803 | <name>FAIL</name> |
michael@0 | 804 | <type id="1">Extension</type> |
michael@0 | 805 | <guid>test-surpassesLimit@tests.mozilla.org</guid> |
michael@0 | 806 | <version>9.9</version> |
michael@0 | 807 | <authors><author><name>Test Creator - Surpasses Limit</name></author></authors> |
michael@0 | 808 | <status id="4">Public</status> |
michael@0 | 809 | <summary>Add-on should not be added because doing so would surpass MAX_RESULTS limit</summary> |
michael@0 | 810 | <compatible_applications> |
michael@0 | 811 | <application> |
michael@0 | 812 | <appID>xpcshell@tests.mozilla.org</appID> |
michael@0 | 813 | <min_version>1</min_version> |
michael@0 | 814 | <max_version>1</max_version> |
michael@0 | 815 | </application> |
michael@0 | 816 | </compatible_applications> |
michael@0 | 817 | <install>http://localhost:%PORT%/test-surpassesLimit.xpi</install> |
michael@0 | 818 | </addon> |
michael@0 | 819 | </searchresults> |
michael@0 | 820 |