diff options
Diffstat (limited to 'toolkit/mozapps/extensions/test/xpcshell/data/test_bug394300.rdf')
-rw-r--r-- | toolkit/mozapps/extensions/test/xpcshell/data/test_bug394300.rdf | 159 |
1 files changed, 159 insertions, 0 deletions
diff --git a/toolkit/mozapps/extensions/test/xpcshell/data/test_bug394300.rdf b/toolkit/mozapps/extensions/test/xpcshell/data/test_bug394300.rdf new file mode 100644 index 000000000..94e12527f --- /dev/null +++ b/toolkit/mozapps/extensions/test/xpcshell/data/test_bug394300.rdf @@ -0,0 +1,159 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:em="http://www.mozilla.org/2004/em-rdf#"> + + <RDF:Description about="urn:mozilla:extension:bug394300_1@tests.mozilla.org"> + <em:updates> + <RDF:Seq> + <!-- Not a valid install - incompatible app versions --> + <RDF:li> + <RDF:Description> + <em:version>20</em:version> + <em:targetApplication> + <RDF:Description> + <em:id>xpcshell@tests.mozilla.org</em:id> + <em:minVersion>2</em:minVersion> + <em:maxVersion>2</em:maxVersion> + <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink> + </RDF:Description> + </em:targetApplication> + </RDF:Description> + </RDF:li> + <!-- Valid install should be the version detected --> + <RDF:li> + <RDF:Description> + <em:version>10</em:version> + <em:targetApplication> + <RDF:Description> + <em:id>xpcshell@tests.mozilla.org</em:id> + <em:minVersion>1</em:minVersion> + <em:maxVersion>1</em:maxVersion> + <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink> + </RDF:Description> + </em:targetApplication> + </RDF:Description> + </RDF:li> + <!-- Valid install. Detecting this would indicate that the order + of entries is playing a part in the update detection. --> + <RDF:li> + <RDF:Description> + <em:version>6</em:version> + <em:targetApplication> + <RDF:Description> + <em:id>xpcshell@tests.mozilla.org</em:id> + <em:minVersion>1</em:minVersion> + <em:maxVersion>1</em:maxVersion> + <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink> + </RDF:Description> + </em:targetApplication> + </RDF:Description> + </RDF:li> + <!-- Not a valid install - no minVersion or maxVersion specified --> + <RDF:li> + <RDF:Description> + <em:version>40</em:version> + <em:targetApplication> + <RDF:Description> + <em:id>xpcshell@tests.mozilla.org</em:id> + <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink> + </RDF:Description> + </em:targetApplication> + </RDF:Description> + </RDF:li> + <!-- Not a valid install - incompatible app versions --> + <RDF:li> + <RDF:Description> + <em:version>30</em:version> + <em:targetApplication> + <RDF:Description> + <em:id>xpcshell@tests.mozilla.org</em:id> + <em:minVersion>2</em:minVersion> + <em:maxVersion>2</em:maxVersion> + <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink> + </RDF:Description> + </em:targetApplication> + </RDF:Description> + </RDF:li> + </RDF:Seq> + </em:updates> + </RDF:Description> + + <RDF:Description about="urn:mozilla:extension:bug394300_2@tests.mozilla.org"> + <em:updates> + <RDF:Seq> + <!-- Not a valid install - incompatible app versions --> + <RDF:li> + <RDF:Description> + <em:version>20</em:version> + <em:targetApplication> + <RDF:Description> + <em:id>toolkit@mozilla.org</em:id> + <em:minVersion>2</em:minVersion> + <em:maxVersion>2</em:maxVersion> + <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink> + </RDF:Description> + </em:targetApplication> + </RDF:Description> + </RDF:li> + <!-- Valid install should be the version detected --> + <RDF:li> + <RDF:Description> + <em:version>10</em:version> + <em:targetApplication> + <RDF:Description> + <em:id>toolkit@mozilla.org</em:id> + <em:minVersion>1.9</em:minVersion> + <em:maxVersion>1.9</em:maxVersion> + <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink> + </RDF:Description> + </em:targetApplication> + </RDF:Description> + </RDF:li> + <!-- Valid install. Detecting this would indicate that the order + of entries is playing a part in the update detection. --> + <RDF:li> + <RDF:Description> + <em:version>6</em:version> + <em:targetApplication> + <RDF:Description> + <em:id>toolkit@mozilla.org</em:id> + <em:minVersion>1.9</em:minVersion> + <em:maxVersion>1.9</em:maxVersion> + <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink> + </RDF:Description> + </em:targetApplication> + </RDF:Description> + </RDF:li> + <!-- Not a valid install - no minVersion or maxVersion specified --> + <RDF:li> + <RDF:Description> + <em:version>40</em:version> + <em:targetApplication> + <RDF:Description> + <em:id>toolkit@mozilla.org</em:id> + <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink> + </RDF:Description> + </em:targetApplication> + </RDF:Description> + </RDF:li> + <!-- Not a valid install - incompatible app versions --> + <RDF:li> + <RDF:Description> + <em:version>30</em:version> + <em:targetApplication> + <RDF:Description> + <em:id>toolkit@mozilla.org</em:id> + <em:minVersion>2</em:minVersion> + <em:maxVersion>2</em:maxVersion> + <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink> + </RDF:Description> + </em:targetApplication> + </RDF:Description> + </RDF:li> + </RDF:Seq> + </em:updates> + </RDF:Description> + +</RDF:RDF> + |