diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /toolkit/mozapps/extensions/test/xpcshell/data/test_AddonRepository_getAddonsByIDs.xml | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'toolkit/mozapps/extensions/test/xpcshell/data/test_AddonRepository_getAddonsByIDs.xml')
-rw-r--r-- | toolkit/mozapps/extensions/test/xpcshell/data/test_AddonRepository_getAddonsByIDs.xml | 187 |
1 files changed, 187 insertions, 0 deletions
diff --git a/toolkit/mozapps/extensions/test/xpcshell/data/test_AddonRepository_getAddonsByIDs.xml b/toolkit/mozapps/extensions/test/xpcshell/data/test_AddonRepository_getAddonsByIDs.xml new file mode 100644 index 000000000..8a6167969 --- /dev/null +++ b/toolkit/mozapps/extensions/test/xpcshell/data/test_AddonRepository_getAddonsByIDs.xml @@ -0,0 +1,187 @@ +<?xml version="1.0" encoding="utf-8" ?> +<searchresults total_results="1111"> + <!-- Passes even though XPI URL matches an installing AddonInstall. + Tests optional attributes. --> + <addon> + <name>PASS</name> + <type id="1">Extension</type> + <guid>test1@tests.mozilla.org</guid> + <version>1.1</version> + <authors> + <author> + <name>Test Creator 1</name> + <link>http://localhost:%PORT%/creator1.html</link> + </author> + <author> + <name>Test Developer 1</name> + <link>http://localhost:%PORT%/developer1.html</link> + </author> + </authors> + <summary>Test Summary 1</summary> + <description>Test Description 1</description> + <eula>Test EULA 1</eula> + <developer_comments>Test Developer Comments 1</developer_comments> + <icon size="32">http://localhost:%PORT%/icon1.png</icon> + <status id="8">Preliminarily Reviewed</status> + <compatible_applications> + <application> + <appID>xpcshell@tests.mozilla.org</appID> + <min_version>1</min_version> + <max_version>1</max_version> + </application> + </compatible_applications> + <previews> + <preview primary="1"> + <full type="image/png" width="400" height="300"> + http://localhost:%PORT%/full1-1.png + </full> + <thumbnail type="image/png" width="200" height="150"> + http://localhost:%PORT%/thumbnail1-1.png + </thumbnail> + <caption>Caption 1 - 1</caption> + </preview> + <preview primary="0"> + <full type="image/png">http://localhost:%PORT%/full2-1.png</full> + <thumbnail type="image/png">http://localhost:%PORT%/thumbnail2-1.png</thumbnail> + <caption>Caption 2 - 1</caption> + </preview> + </previews> + <rating>4</rating> + <learnmore>http://localhost:%PORT%/learnmore1.html</learnmore> + <support>http://localhost:%PORT%/support1.html</support> + <contribution_data> + <link>http://localhost:%PORT%/contribution1.html</link> + <suggested_amount currency="USD">$11.11</suggested_amount> + <meet_developers>http://localhost:%PORT%/meetDevelopers1.html</meet_developers> + </contribution_data> + <reviews num="1111">http://localhost:%PORT%/review1.html</reviews> + <total_downloads>2222</total_downloads> + <weekly_downloads>3333</weekly_downloads> + <daily_users>4444</daily_users> + <last_updated epoch="1265033045">2010-02-01T14:04:05Z</last_updated> + <install size="5555">http://localhost:%PORT%/addons/test_AddonRepository_2.xpi</install> + </addon> + + <addon_compatibility hosted="true" id="123"> + <guid>test1@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> + + <!-- Fails because guid matches previously successful result --> + <addon> + <name>FAIL</name> + <type id="1">Extension</type> + <guid>test1@tests.mozilla.org</guid> + <version>1.2</version> + <authors><author><name>Test Creator 2</name></author></authors> + <status id="4">Public</status> + <summary>Add-on with a guid that matches a previously successful result should be ignored.</summary> + <compatible_applications> + <application> + <appID>xpcshell@tests.mozilla.org</appID> + <min_version>1</min_version> + <max_version>1</max_version> + </application> + </compatible_applications> + <install>http://localhost:%PORT%/test2.xpi</install> + </addon> + + <!-- Fails because guid was not requested --> + <addon> + <name>FAIL</name> + <type id="1">Extension</type> + <guid>notRequested@tests.mozilla.org</guid> + <version>1.3</version> + <authors><author><name>Test Creator 3</name></author></authors> + <status id="4">Public</status> + <summary>Add-on with a guid that wasn't requested should be ignored.</summary> + <compatible_applications> + <application> + <appID>xpcshell@tests.mozilla.org</appID> + <min_version>1</min_version> + <max_version>1</max_version> + </application> + </compatible_applications> + <install>http://localhost:%PORT%/test3.xpi</install> + </addon> + + <!-- Passes even though guid matches already installed add-on, + type is unknown, no defined author elements, status is not Public, + no compatible applications matched, no installs compatible with OS + --> + <addon> + <name>PASS</name> + <type id="2">Theme</type> + <guid>test_AddonRepository_1@tests.mozilla.org</guid> + <version>1.4</version> + <status id="9999">Unknown</status> + <compatible_applications> + <application> + <appID>unknown@tests.mozilla.org</appID> + <min_version>1</min_version> + <max_version>1</max_version> + </application> + </compatible_applications> + <install os="UNKNOWN1">http://localhost:%PORT%/test4.xpi</install> + <install os="UNKNOWN2">http://localhost:%PORT%/test4.xpi</install> + </addon> +</searchresults> + |