|
1 <?xml version="1.0" encoding="utf-8" ?> |
|
2 <searchresults total_results="1111"> |
|
3 <!-- Passes even though XPI URL matches an installing AddonInstall. |
|
4 Tests optional attributes. --> |
|
5 <addon> |
|
6 <name>PASS</name> |
|
7 <type id="1">Extension</type> |
|
8 <guid>test1@tests.mozilla.org</guid> |
|
9 <version>1.1</version> |
|
10 <authors> |
|
11 <author> |
|
12 <name>Test Creator 1</name> |
|
13 <link>http://localhost:%PORT%/creator1.html</link> |
|
14 </author> |
|
15 <author> |
|
16 <name>Test Developer 1</name> |
|
17 <link>http://localhost:%PORT%/developer1.html</link> |
|
18 </author> |
|
19 </authors> |
|
20 <summary>Test Summary 1</summary> |
|
21 <description>Test Description 1</description> |
|
22 <eula>Test EULA 1</eula> |
|
23 <developer_comments>Test Developer Comments 1</developer_comments> |
|
24 <icon size="32">http://localhost:%PORT%/icon1.png</icon> |
|
25 <status id="8">Preliminarily Reviewed</status> |
|
26 <compatible_applications> |
|
27 <application> |
|
28 <appID>xpcshell@tests.mozilla.org</appID> |
|
29 <min_version>1</min_version> |
|
30 <max_version>1</max_version> |
|
31 </application> |
|
32 </compatible_applications> |
|
33 <previews> |
|
34 <preview primary="1"> |
|
35 <full type="image/png" width="400" height="300"> |
|
36 http://localhost:%PORT%/full1-1.png |
|
37 </full> |
|
38 <thumbnail type="image/png" width="200" height="150"> |
|
39 http://localhost:%PORT%/thumbnail1-1.png |
|
40 </thumbnail> |
|
41 <caption>Caption 1 - 1</caption> |
|
42 </preview> |
|
43 <preview primary="0"> |
|
44 <full type="image/png">http://localhost:%PORT%/full2-1.png</full> |
|
45 <thumbnail type="image/png">http://localhost:%PORT%/thumbnail2-1.png</thumbnail> |
|
46 <caption>Caption 2 - 1</caption> |
|
47 </preview> |
|
48 </previews> |
|
49 <rating>4</rating> |
|
50 <learnmore>http://localhost:%PORT%/learnmore1.html</learnmore> |
|
51 <support>http://localhost:%PORT%/support1.html</support> |
|
52 <contribution_data> |
|
53 <link>http://localhost:%PORT%/contribution1.html</link> |
|
54 <suggested_amount currency="USD">$11.11</suggested_amount> |
|
55 <meet_developers>http://localhost:%PORT%/meetDevelopers1.html</meet_developers> |
|
56 </contribution_data> |
|
57 <reviews num="1111">http://localhost:%PORT%/review1.html</reviews> |
|
58 <total_downloads>2222</total_downloads> |
|
59 <weekly_downloads>3333</weekly_downloads> |
|
60 <daily_users>4444</daily_users> |
|
61 <last_updated epoch="1265033045">2010-02-01T14:04:05Z</last_updated> |
|
62 <install size="5555">http://localhost:%PORT%/addons/test_AddonRepository_2.xpi</install> |
|
63 </addon> |
|
64 |
|
65 <addon_compatibility hosted="true" id="123"> |
|
66 <guid>test1@tests.mozilla.org</guid> |
|
67 <name>PASS</name> |
|
68 <version_ranges> |
|
69 <!-- Will be included --> |
|
70 <version_range type="incompatible"> |
|
71 <min_version>0.1</min_version> |
|
72 <max_version>0.2</max_version> |
|
73 <compatible_applications> |
|
74 <application> |
|
75 <name>XPCShell</name> |
|
76 <application_id>666</application_id> |
|
77 <min_version>3.0</min_version> |
|
78 <max_version>4.0</max_version> |
|
79 <appID>xpcshell@tests.mozilla.org</appID> |
|
80 </application> |
|
81 </compatible_applications> |
|
82 </version_range> |
|
83 <!-- Will be included --> |
|
84 <version_range type="incompatible"> |
|
85 <min_version>0.2</min_version> |
|
86 <max_version>0.3</max_version> |
|
87 <compatible_applications> |
|
88 <application> |
|
89 <name>XPCShell</name> |
|
90 <application_id>666</application_id> |
|
91 <min_version>5.0</min_version> |
|
92 <max_version>6.0</max_version> |
|
93 <appID>xpcshell@tests.mozilla.org</appID> |
|
94 </application> |
|
95 </compatible_applications> |
|
96 </version_range> |
|
97 <!-- Won't be included - invalid type attribute --> |
|
98 <version_range type="unknown"> |
|
99 <min_version>9</min_version> |
|
100 <max_version>10</max_version> |
|
101 <compatible_applications> |
|
102 <application> |
|
103 <name>XPCShell</name> |
|
104 <application_id>666</application_id> |
|
105 <min_version>10.0</min_version> |
|
106 <max_version>11.0</max_version> |
|
107 <appID>xpcshell@tests.mozilla.org</appID> |
|
108 </application> |
|
109 </compatible_applications> |
|
110 </version_range> |
|
111 <!-- Won't be included - no matching appID --> |
|
112 <version_range type="incompatible"> |
|
113 <min_version>0.2</min_version> |
|
114 <max_version>0.3</max_version> |
|
115 <compatible_applications> |
|
116 <application> |
|
117 <name>Unknown App</name> |
|
118 <application_id>123</application_id> |
|
119 <min_version>1.0</min_version> |
|
120 <max_version>999.0</max_version> |
|
121 <appID>unknown-app@tests.mozilla.org</appID> |
|
122 </application> |
|
123 </compatible_applications> |
|
124 </version_range> |
|
125 </version_ranges> |
|
126 </addon_compatibility> |
|
127 |
|
128 <!-- Fails because guid matches previously successful result --> |
|
129 <addon> |
|
130 <name>FAIL</name> |
|
131 <type id="1">Extension</type> |
|
132 <guid>test1@tests.mozilla.org</guid> |
|
133 <version>1.2</version> |
|
134 <authors><author><name>Test Creator 2</name></author></authors> |
|
135 <status id="4">Public</status> |
|
136 <summary>Add-on with a guid that matches a previously successful result should be ignored.</summary> |
|
137 <compatible_applications> |
|
138 <application> |
|
139 <appID>xpcshell@tests.mozilla.org</appID> |
|
140 <min_version>1</min_version> |
|
141 <max_version>1</max_version> |
|
142 </application> |
|
143 </compatible_applications> |
|
144 <install>http://localhost:%PORT%/test2.xpi</install> |
|
145 </addon> |
|
146 |
|
147 <!-- Fails because guid was not requested --> |
|
148 <addon> |
|
149 <name>FAIL</name> |
|
150 <type id="1">Extension</type> |
|
151 <guid>notRequested@tests.mozilla.org</guid> |
|
152 <version>1.3</version> |
|
153 <authors><author><name>Test Creator 3</name></author></authors> |
|
154 <status id="4">Public</status> |
|
155 <summary>Add-on with a guid that wasn't requested should be ignored.</summary> |
|
156 <compatible_applications> |
|
157 <application> |
|
158 <appID>xpcshell@tests.mozilla.org</appID> |
|
159 <min_version>1</min_version> |
|
160 <max_version>1</max_version> |
|
161 </application> |
|
162 </compatible_applications> |
|
163 <install>http://localhost:%PORT%/test3.xpi</install> |
|
164 </addon> |
|
165 |
|
166 <!-- Passes even though guid matches already installed add-on, |
|
167 type is unknown, no defined author elements, status is not Public, |
|
168 no compatible applications matched, no installs compatible with OS |
|
169 --> |
|
170 <addon> |
|
171 <name>PASS</name> |
|
172 <type id="9999">Unknown</type> |
|
173 <guid>test_AddonRepository_1@tests.mozilla.org</guid> |
|
174 <version>1.4</version> |
|
175 <status id="9999">Unknown</status> |
|
176 <compatible_applications> |
|
177 <application> |
|
178 <appID>unknown@tests.mozilla.org</appID> |
|
179 <min_version>1</min_version> |
|
180 <max_version>1</max_version> |
|
181 </application> |
|
182 </compatible_applications> |
|
183 <install os="UNKNOWN1">http://localhost:%PORT%/test4.xpi</install> |
|
184 <install os="UNKNOWN2">http://localhost:%PORT%/test4.xpi</install> |
|
185 </addon> |
|
186 </searchresults> |
|
187 |