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