1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/mozapps/extensions/test/xpcshell/data/test_update.rdf Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,270 @@ 1.4 +<?xml version="1.0" encoding="UTF-8"?> 1.5 + 1.6 +<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 1.7 + xmlns:em="http://www.mozilla.org/2004/em-rdf#"> 1.8 + 1.9 + <Description about="urn:mozilla:extension:addon1@tests.mozilla.org"> 1.10 + <em:updates> 1.11 + <Seq> 1.12 + <li> 1.13 + <Description> 1.14 + <em:version>1.0</em:version> 1.15 + <!-- Shouldn't fire onCompatibilityUpdateAvailable since this 1.16 + information is already in the install.rdf --> 1.17 + <em:targetApplication> 1.18 + <Description> 1.19 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.20 + <em:minVersion>1</em:minVersion> 1.21 + <em:maxVersion>1</em:maxVersion> 1.22 + </Description> 1.23 + </em:targetApplication> 1.24 + 1.25 + <!-- Should be ignored as it is not for the present version of the 1.26 + application --> 1.27 + <em:targetApplication> 1.28 + <Description> 1.29 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.30 + <em:minVersion>2</em:minVersion> 1.31 + <em:maxVersion>2</em:maxVersion> 1.32 + </Description> 1.33 + </em:targetApplication> 1.34 + </Description> 1.35 + </li> 1.36 + 1.37 + <li> 1.38 + <Description> 1.39 + <em:version>2.0</em:version> 1.40 + <em:targetApplication> 1.41 + <Description> 1.42 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.43 + <em:minVersion>1</em:minVersion> 1.44 + <em:maxVersion>1</em:maxVersion> 1.45 + <em:updateLink>http://localhost:%PORT%/addons/test_update.xpi</em:updateLink> 1.46 + <em:updateInfoURL>http://example.com/updateInfo.xhtml</em:updateInfoURL> 1.47 + </Description> 1.48 + </em:targetApplication> 1.49 + </Description> 1.50 + </li> 1.51 + </Seq> 1.52 + </em:updates> 1.53 + </Description> 1.54 + 1.55 + <Description about="urn:mozilla:extension:addon2@tests.mozilla.org"> 1.56 + <em:updates> 1.57 + <Seq> 1.58 + <li> 1.59 + <Description> 1.60 + <em:version>1.0</em:version> 1.61 + <em:targetApplication> 1.62 + <Description> 1.63 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.64 + <em:minVersion>0</em:minVersion> 1.65 + <em:maxVersion>1</em:maxVersion> 1.66 + </Description> 1.67 + </em:targetApplication> 1.68 + </Description> 1.69 + </li> 1.70 + </Seq> 1.71 + </em:updates> 1.72 + </Description> 1.73 + 1.74 + <Description about="urn:mozilla:extension:addon3@tests.mozilla.org"> 1.75 + <em:updates> 1.76 + <Seq> 1.77 + <li> 1.78 + <Description> 1.79 + <em:version>1.0</em:version> 1.80 + <em:targetApplication> 1.81 + <Description> 1.82 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.83 + <em:minVersion>3</em:minVersion> 1.84 + <em:maxVersion>3</em:maxVersion> 1.85 + </Description> 1.86 + </em:targetApplication> 1.87 + </Description> 1.88 + </li> 1.89 + </Seq> 1.90 + </em:updates> 1.91 + </Description> 1.92 + 1.93 + <Description about="urn:mozilla:extension:addon4@tests.mozilla.org"> 1.94 + <em:updates> 1.95 + <Seq> 1.96 + <li> 1.97 + <Description> 1.98 + <em:version>5.0</em:version> 1.99 + <em:targetApplication> 1.100 + <Description> 1.101 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.102 + <em:minVersion>0</em:minVersion> 1.103 + <em:maxVersion>0</em:maxVersion> 1.104 + </Description> 1.105 + </em:targetApplication> 1.106 + </Description> 1.107 + </li> 1.108 + </Seq> 1.109 + </em:updates> 1.110 + </Description> 1.111 + 1.112 + <Description about="urn:mozilla:extension:addon7@tests.mozilla.org"> 1.113 + <em:updates> 1.114 + <Seq> 1.115 + <li> 1.116 + <Description> 1.117 + <em:version>1.0</em:version> 1.118 + <em:targetApplication> 1.119 + <Description> 1.120 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.121 + <em:minVersion>0</em:minVersion> 1.122 + <em:maxVersion>1</em:maxVersion> 1.123 + </Description> 1.124 + </em:targetApplication> 1.125 + </Description> 1.126 + </li> 1.127 + </Seq> 1.128 + </em:updates> 1.129 + </Description> 1.130 + 1.131 + <Description about="urn:mozilla:extension:addon8@tests.mozilla.org"> 1.132 + <em:updates> 1.133 + <Seq> 1.134 + <li> 1.135 + <Description> 1.136 + <em:version>2.0</em:version> 1.137 + <em:targetApplication> 1.138 + <Description> 1.139 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.140 + <em:minVersion>1</em:minVersion> 1.141 + <em:maxVersion>1</em:maxVersion> 1.142 + <em:updateLink>http://localhost:%PORT%/addons/test_update8.xpi</em:updateLink> 1.143 + </Description> 1.144 + </em:targetApplication> 1.145 + </Description> 1.146 + </li> 1.147 + </Seq> 1.148 + </em:updates> 1.149 + </Description> 1.150 + 1.151 + <Description about="urn:mozilla:extension:addon9@tests.mozilla.org"> 1.152 + <em:updates> 1.153 + <Seq> 1.154 + <li> 1.155 + <Description> 1.156 + <em:version>2.0</em:version> 1.157 + <em:targetApplication> 1.158 + <Description> 1.159 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.160 + <em:minVersion>1</em:minVersion> 1.161 + <em:maxVersion>1</em:maxVersion> 1.162 + <em:updateLink>http://localhost:%PORT%/addons/test_update9_2.xpi</em:updateLink> 1.163 + </Description> 1.164 + </em:targetApplication> 1.165 + </Description> 1.166 + </li> 1.167 + <!-- Incompatible when strict compatibility is enabled --> 1.168 + <li> 1.169 + <Description> 1.170 + <em:version>3.0</em:version> 1.171 + <em:targetApplication> 1.172 + <Description> 1.173 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.174 + <em:minVersion>0.9</em:minVersion> 1.175 + <em:maxVersion>0.9</em:maxVersion> 1.176 + <em:updateLink>http://localhost:%PORT%/addons/test_update9_3.xpi</em:updateLink> 1.177 + </Description> 1.178 + </em:targetApplication> 1.179 + </Description> 1.180 + </li> 1.181 + <!-- Incompatible due to compatibility override --> 1.182 + <li> 1.183 + <Description> 1.184 + <em:version>4.0</em:version> 1.185 + <em:targetApplication> 1.186 + <Description> 1.187 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.188 + <em:minVersion>0.9</em:minVersion> 1.189 + <em:maxVersion>0.9</em:maxVersion> 1.190 + <em:updateLink>http://localhost:%PORT%/addons/test_update9_4.xpi</em:updateLink> 1.191 + </Description> 1.192 + </em:targetApplication> 1.193 + </Description> 1.194 + </li> 1.195 + <!-- Addon for future version of app --> 1.196 + <li> 1.197 + <Description> 1.198 + <em:version>5.0</em:version> 1.199 + <em:targetApplication> 1.200 + <Description> 1.201 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.202 + <em:minVersion>5</em:minVersion> 1.203 + <em:maxVersion>6</em:maxVersion> 1.204 + <em:updateLink>http://localhost:%PORT%/addons/test_update9_5.xpi</em:updateLink> 1.205 + </Description> 1.206 + </em:targetApplication> 1.207 + </Description> 1.208 + </li> 1.209 + </Seq> 1.210 + </em:updates> 1.211 + </Description> 1.212 + 1.213 + <Description about="urn:mozilla:extension:addon10@tests.mozilla.org"> 1.214 + <em:updates> 1.215 + <Seq> 1.216 + <li> 1.217 + <Description> 1.218 + <em:version>1.0</em:version> 1.219 + <em:targetApplication> 1.220 + <Description> 1.221 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.222 + <em:minVersion>0.1</em:minVersion> 1.223 + <em:maxVersion>0.4</em:maxVersion> 1.224 + <em:updateLink>http://localhost:%PORT%/addons/test_update10.xpi</em:updateLink> 1.225 + </Description> 1.226 + </em:targetApplication> 1.227 + </Description> 1.228 + </li> 1.229 + </Seq> 1.230 + </em:updates> 1.231 + </Description> 1.232 + 1.233 + <Description about="urn:mozilla:extension:addon11@tests.mozilla.org"> 1.234 + <em:updates> 1.235 + <Seq> 1.236 + <li> 1.237 + <Description> 1.238 + <em:version>2.0</em:version> 1.239 + <em:targetApplication> 1.240 + <Description> 1.241 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.242 + <em:minVersion>0.1</em:minVersion> 1.243 + <em:maxVersion>0.2</em:maxVersion> 1.244 + <em:strictCompatibility>true</em:strictCompatibility> 1.245 + <em:updateLink>http://localhost:%PORT%/addons/test_update11.xpi</em:updateLink> 1.246 + </Description> 1.247 + </em:targetApplication> 1.248 + </Description> 1.249 + </li> 1.250 + </Seq> 1.251 + </em:updates> 1.252 + </Description> 1.253 + 1.254 + <Description about="urn:mozilla:item:addon12@tests.mozilla.org"> 1.255 + <em:updates> 1.256 + <Seq> 1.257 + <li> 1.258 + <Description> 1.259 + <em:version>2.0</em:version> 1.260 + <em:targetApplication> 1.261 + <Description> 1.262 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.263 + <em:minVersion>1</em:minVersion> 1.264 + <em:maxVersion>1</em:maxVersion> 1.265 + <em:updateLink>http://localhost:%PORT%/addons/test_update12.xpi</em:updateLink> 1.266 + </Description> 1.267 + </em:targetApplication> 1.268 + </Description> 1.269 + </li> 1.270 + </Seq> 1.271 + </em:updates> 1.272 + </Description> 1.273 +</RDF>