summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/extensions/test/xpcshell/data/test_AddonRepository_cache.xml
blob: f707f1217d904979f525fb29664ee6aaae390904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<?xml version="1.0" encoding="utf-8" ?>
<searchresults total_results="1111">
  <addon>
    <name>Repo Add-on 1</name>
    <type id="1">Extension</type>
    <guid>test_AddonRepository_1@tests.mozilla.org</guid>
    <version>2.1</version>
    <authors>
      <author>
        <name>Repo Add-on 1 - Creator</name>
        <link>http://localhost:4444/repo/1/creator.html</link>
      </author>
      <author>
        <name>Repo Add-on 1 - First Developer</name>
        <link>http://localhost:4444/repo/1/firstDeveloper.html</link>
      </author>
      <author>
        <name>Repo Add-on 1 - Second Developer</name>
        <link>http://localhost:4444/repo/1/secondDeveloper.html</link>
      </author>
    </authors>
    <summary>Repo Add-on 1 - Description&lt;br&gt;Second line</summary>
    <description>&lt;p&gt;Repo Add-on 1 - Full Description &amp;amp; some extra&lt;/p&gt;</description>
    <eula>Repo Add-on 1 - EULA</eula>
    <developer_comments>Repo Add-on 1
                        Developer Comments</developer_comments>
    <icon size="32">http://localhost/repo/1/icon.png</icon>
    <status id="4">Public</status>
    <rating>1</rating>
    <learnmore>http://localhost/repo/1/learnmore.html</learnmore>
    <homepage>http://localhost/repo/1/homepage.html</homepage>
    <support>http://localhost/repo/1/support.html</support>
    <contribution_data>
      <link>http://localhost/repo/1/contribution.html</link>
      <suggested_amount currency="USD">$11.11</suggested_amount>
      <meet_developers>http://localhost/repo/1/meetDevelopers.html</meet_developers>
    </contribution_data>
    <reviews num="1111">http://localhost/repo/1/review.html</reviews>
    <total_downloads>2221</total_downloads>
    <weekly_downloads>3331</weekly_downloads>
    <daily_users>4441</daily_users>
    <last_updated epoch="9">1970-01-01T00:00:09Z</last_updated>
    <install size="9">http://localhost:4444/repo/1/install.xpi</install>
  </addon>

  <addon>
    <name>Repo Add-on 2</name>
    <type id="2">Theme</type>
    <guid>test_AddonRepository_2@tests.mozilla.org</guid>
    <version>2.2</version>
    <authors>
      <author>
        <name>Repo Add-on 2 - Creator</name>
        <link>http://localhost:4444/repo/2/creator.html</link>
      </author>
      <author>
        <name>Repo Add-on 2 - First Developer</name>
        <link>http://localhost:4444/repo/2/firstDeveloper.html</link>
      </author>
      <author>
        <name>Repo Add-on 2 - Second Developer</name>
        <link>http://localhost:4444/repo/2/secondDeveloper.html</link>
      </author>
    </authors>
    <summary>Repo Add-on 2 - Description</summary>
    <description>Repo Add-on 2 - Full Description</description>
    <eula>Repo Add-on 2 - EULA</eula>
    <developer_comments>Repo Add-on 2 - Developer Comments</developer_comments>
    <icon size="32">http://localhost/repo/2/icon.png</icon>
    <status id="9">Unknown</status>
    <previews>
      <preview primary="1">
        <full type="image/png">http://localhost:4444/repo/2/firstFull.png</full>
        <thumbnail type="image/png">http://localhost:4444/repo/2/firstThumbnail.png</thumbnail>
        <caption>Repo Add-on 2 - First Caption</caption>
      </preview>
      <preview primary="0">
        <full type="image/png">http://localhost:4444/repo/2/secondFull.png</full>
        <thumbnail type="image/png">http://localhost:4444/repo/2/secondThumbnail.png</thumbnail>
        <caption>Repo Add-on 2 - Second Caption</caption>
      </preview>
    </previews>
    <rating>2</rating>
    <learnmore>http://localhost/repo/2/learnmore.html</learnmore>
    <homepage>http://localhost/repo/2/homepage.html</homepage>
    <support>http://localhost/repo/2/support.html</support>
    <contribution_data>
      <link>http://localhost/repo/2/contribution.html</link>
      <meet_developers>http://localhost/repo/2/meetDevelopers.html</meet_developers>
    </contribution_data>
    <reviews num="1112">http://localhost/repo/2/review.html</reviews>
    <total_downloads>2222</total_downloads>
    <weekly_downloads>3332</weekly_downloads>
    <daily_users>4442</daily_users>
    <last_updated epoch="9">1970-01-01T00:00:09Z</last_updated>
    <install size="9">http://localhost:4444/repo/2/install.xpi</install>
  </addon>

  <addon>
    <name>Repo Add-on 3</name>
    <type id="2">Theme</type>
    <guid>test_AddonRepository_3@tests.mozilla.org</guid>
    <version>2.3</version>
    <icon size="32">http://localhost/repo/3/icon.png</icon>
    <previews>
      <preview primary="1">
        <full type="image/png">http://localhost:4444/repo/3/firstFull.png</full>
        <thumbnail type="image/png">http://localhost:4444/repo/3/firstThumbnail.png</thumbnail>
        <caption>Repo Add-on 3 - First Caption</caption>
      </preview>
      <preview primary="0">
        <full type="image/png">http://localhost:4444/repo/3/secondFull.png</full>
        <thumbnail type="image/png">http://localhost:4444/repo/3/secondThumbnail.png</thumbnail>
        <caption>Repo Add-on 3 - Second Caption</caption>
      </preview>
    </previews>
  </addon>

  <addon_compatibility hosted="true" id="123">
    <guid>test_AddonRepository_1@tests.mozilla.org</guid>
    <name>PASS</name>
    <version_ranges>
      <!-- Will be included -->
      <version_range type="incompatible">
        <min_version>0.1</min_version>
        <max_version>0.2</max_version>
        <compatible_applications>
          <application>
            <name>XPCShell</name>
            <application_id>666</application_id>
            <min_version>3.0</min_version>
            <max_version>4.0</max_version>
            <appID>xpcshell@tests.mozilla.org</appID>
          </application>
        </compatible_applications>
      </version_range>
      <!-- Will be included -->
      <version_range type="incompatible">
        <min_version>0.2</min_version>
        <max_version>0.3</max_version>
        <compatible_applications>
          <application>
            <name>XPCShell</name>
            <application_id>666</application_id>
            <min_version>5.0</min_version>
            <max_version>6.0</max_version>
            <appID>xpcshell@tests.mozilla.org</appID>
          </application>
        </compatible_applications>
      </version_range>
      <!-- Won't be included - invalid type attribute -->
      <version_range type="unknown">
        <min_version>9</min_version>
        <max_version>10</max_version>
        <compatible_applications>
          <application>
            <name>XPCShell</name>
            <application_id>666</application_id>
            <min_version>10.0</min_version>
            <max_version>11.0</max_version>
            <appID>xpcshell@tests.mozilla.org</appID>
          </application>
        </compatible_applications>
      </version_range>
      <!-- Won't be included - no matching appID -->
      <version_range type="incompatible">
        <min_version>0.2</min_version>
        <max_version>0.3</max_version>
        <compatible_applications>
          <application>
            <name>Unknown App</name>
            <application_id>123</application_id>
            <min_version>1.0</min_version>
            <max_version>999.0</max_version>
            <appID>unknown-app@tests.mozilla.org</appID>
          </application>
        </compatible_applications>
      </version_range>
    </version_ranges>
  </addon_compatibility>
</searchresults>