Skip to content

Commit

Permalink
Restoring the tests accidentally backed out by changeset a8ba788cac18…
Browse files Browse the repository at this point in the history
… from bug 563662
  • Loading branch information
Mossop committed May 6, 2010
1 parent 9e3e841 commit fe87832
Show file tree
Hide file tree
Showing 9 changed files with 2,326 additions and 0 deletions.
166 changes: 166 additions & 0 deletions toolkit/mozapps/extensions/test/unit/data/test_bug404024.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
<?xml version="1.0" encoding="utf-8" ?>
<searchresults>
<addon>
<name>FAIL</name>
<type id='1'>Extension</type>
<guid>test1@tests.mozilla.org</guid>
<version>1.0</version>
<status id='2'>Sandbox</status>
<summary>Should not return sandboxed add-on</summary>
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
</application>
</compatible_applications>
<compatible_os>ALL</compatible_os>
<learnmore>https://addons.mozilla.org/addon/5992</learnmore>
<install hash="sha1:c26f0b0d62e5dcddcda95074d3f3fedb9bbc26e3">http://localhost:4444/test.xpi</install>
</addon>
<addon>
<name>FAIL</name>
<type id='1'>Extension</type>
<guid>test2@tests.mozilla.org</guid>
<version>1.0</version>
<status id='4'>Public</status>
<summary>Should not return an incompatible add-on</summary>
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>2</min_version>
<max_version>2</max_version>
</application>
</compatible_applications>
<compatible_os>ALL</compatible_os>
<install hash="sha1:c26f0b0d62e5dcddcda95074d3f3fedb9bbc26e3">http://localhost:4444/test.xpi</install>
</addon>
<addon>
<name>FAIL</name>
<type id='1'>Extension</type>
<guid>test3@tests.mozilla.org</guid>
<version>1.0</version>
<status id='4'>Public</status>
<summary>Should not return an incompatible add-on</summary>
<compatible_applications>
<application>
<name>Firefox</name>
<appID>unknown@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>2</min_version>
<max_version>2</max_version>
</application>
</compatible_applications>
<compatible_os>ALL</compatible_os>
<learnmore>https://addons.mozilla.org/addon/5992</learnmore>
<install hash="sha1:c26f0b0d62e5dcddcda95074d3f3fedb9bbc26e3">http://localhost:4444/test.xpi</install>
</addon>
<addon>
<name>FAIL</name>
<type id='1'>Extension</type>
<guid>test4@tests.mozilla.org</guid>
<version>1.0</version>
<status id='4'>Public</status>
<summary>Should not return an add-on for a different OS</summary>
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
</application>
</compatible_applications>
<compatible_os>Windows</compatible_os>
<learnmore>https://addons.mozilla.org/addon/5992</learnmore>
<install hash="sha1:c26f0b0d62e5dcddcda95074d3f3fedb9bbc26e3">http://localhost:4444/test.xpi</install>
</addon>
<addon>
<name>PASS</name>
<type id='1'>Extension</type>
<guid>test5@tests.mozilla.org</guid>
<version>1.0</version>
<status id='4'>Public</status>
<summary>This should work fine</summary>
<description>Test description</description>
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
</application>
</compatible_applications>
<compatible_os>ALL</compatible_os>
<learnmore>https://addons.mozilla.org/addon/5992</learnmore>
<install hash="sha1:c26f0b0d62e5dcddcda95074d3f3fedb9bbc26e3">http://localhost:4444/test.xpi</install>
</addon>
<addon>
<name>FAIL</name>
<type id='1'>Extension</type>
<guid>bug397778@tests.mozilla.org</guid>
<version>1.0</version>
<status id='4'>Public</status>
<summary>Should not return items that are already installed</summary>
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
</application>
</compatible_applications>
<compatible_os>ALL</compatible_os>
<install hash="sha1:c26f0b0d62e5dcddcda95074d3f3fedb9bbc26e3">http://localhost:4444/test.xpi</install>
</addon>
<addon>
<name>FAIL</name>
<type id='1'>Extension</type>
<guid>test5@tests.mozilla.org</guid>
<version>1.0</version>
<status id='4'>Public</status>
<summary>Should not include the same result twice</summary>
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
</application>
</compatible_applications>
<compatible_os>ALL</compatible_os>
<learnmore>https://addons.mozilla.org/addon/5992</learnmore>
<install hash="sha1:c26f0b0d62e5dcddcda95074d3f3fedb9bbc26e3">http://localhost:4444/test.xpi</install>
</addon>
<addon>
<name>PASS</name>
<type id='2'>Theme</type>
<guid>test6@tests.mozilla.org</guid>
<version>1.0</version>
<status id='4'>Public</status>
<rating>4</rating>
<summary>Specific OS should work fine</summary>
<eula>EULA should be confirmed</eula>
<thumbnail>http://localhost:4444/test_bug404024/thumbnail.png</thumbnail>
<icon>http://localhost:4444/test_bug404024/icon.png</icon>
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
</application>
</compatible_applications>
<compatible_os>XPCShell</compatible_os>
<install>http://localhost:4444/test.xpi</install>
</addon>
</searchresults>

160 changes: 160 additions & 0 deletions toolkit/mozapps/extensions/test/unit/data/test_bug417606.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
<?xml version="1.0" encoding="utf-8" ?>
<searchresults total_results="100">
<addon>
<name>FAIL</name>
<type id='1'>Extension</type>
<guid>test1@tests.mozilla.org</guid>
<version>1.0</version>
<status id='2'>Sandbox</status>
<summary>Should not return sandboxed add-on</summary>
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
</application>
</compatible_applications>
<learnmore>https://addons.mozilla.org/addon/5992</learnmore>
<install os="ALL" hash="sha1:c26f0b0d62e5dcddcda95074d3f3fedb9bbc26e3">http://localhost:4444/test.xpi</install>
</addon>
<addon>
<name>FAIL</name>
<type id='1'>Extension</type>
<guid>test2@tests.mozilla.org</guid>
<version>1.0</version>
<status id='4'>Public</status>
<summary>Should not return an incompatible add-on</summary>
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>2</min_version>
<max_version>2</max_version>
</application>
</compatible_applications>
<install os="ALL" hash="sha1:c26f0b0d62e5dcddcda95074d3f3fedb9bbc26e3">http://localhost:4444/test.xpi</install>
</addon>
<addon>
<name>FAIL</name>
<type id='1'>Extension</type>
<guid>test3@tests.mozilla.org</guid>
<version>1.0</version>
<status id='4'>Public</status>
<summary>Should not return an incompatible add-on</summary>
<compatible_applications>
<application>
<name>Firefox</name>
<appID>unknown@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>2</min_version>
<max_version>2</max_version>
</application>
</compatible_applications>
<learnmore>https://addons.mozilla.org/addon/5992</learnmore>
<install os="ALL" hash="sha1:c26f0b0d62e5dcddcda95074d3f3fedb9bbc26e3">http://localhost:4444/test.xpi</install>
</addon>
<addon>
<name>FAIL</name>
<type id='1'>Extension</type>
<guid>test4@tests.mozilla.org</guid>
<version>1.0</version>
<status id='4'>Public</status>
<summary>Should not return an add-on for a different OS</summary>
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
</application>
</compatible_applications>
<learnmore>https://addons.mozilla.org/addon/5992</learnmore>
<install os="Windows" hash="sha1:c26f0b0d62e5dcddcda95074d3f3fedb9bbc26e3">http://localhost:4444/test.xpi</install>
</addon>
<addon>
<name>PASS</name>
<type id='1'>Extension</type>
<guid>test5@tests.mozilla.org</guid>
<version>1.0</version>
<status id='4'>Public</status>
<summary>This should work fine</summary>
<description>Test description</description>
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
</application>
</compatible_applications>
<learnmore>https://addons.mozilla.org/addon/5992</learnmore>
<install os="ALL" hash="sha1:c26f0b0d62e5dcddcda95074d3f3fedb9bbc26e3">http://localhost:4444/test.xpi</install>
</addon>
<addon>
<name>FAIL</name>
<type id='1'>Extension</type>
<guid>bug397778@tests.mozilla.org</guid>
<version>1.0</version>
<status id='4'>Public</status>
<summary>Should not return items that are already installed</summary>
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
</application>
</compatible_applications>
<install os="ALL" hash="sha1:c26f0b0d62e5dcddcda95074d3f3fedb9bbc26e3">http://localhost:4444/test.xpi</install>
</addon>
<addon>
<name>FAIL</name>
<type id='1'>Extension</type>
<guid>test5@tests.mozilla.org</guid>
<version>1.0</version>
<status id='4'>Public</status>
<summary>Should not include the same result twice</summary>
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
</application>
</compatible_applications>
<learnmore>https://addons.mozilla.org/addon/5992</learnmore>
<install os="ALL" hash="sha1:c26f0b0d62e5dcddcda95074d3f3fedb9bbc26e3">http://localhost:4444/test.xpi</install>
</addon>
<addon>
<name>PASS</name>
<type id='2'>Theme</type>
<guid>test6@tests.mozilla.org</guid>
<version>1.0</version>
<status id='4'>Public</status>
<rating>4</rating>
<summary>Specific OS should work fine</summary>
<eula>EULA should be confirmed</eula>
<thumbnail>http://localhost:4444/test_bug404024/thumbnail.png</thumbnail>
<icon>http://localhost:4444/test_bug404024/icon.png</icon>
<compatible_applications>
<application>
<name>XPCShell</name>
<appID>xpcshell@tests.mozilla.org</appID>
<application_id>1</application_id>
<min_version>1</min_version>
<max_version>1</max_version>
</application>
</compatible_applications>
<install os="Windows">http://localhost:4444/test.xpi</install>
<install os="XPCShell">http://localhost:4444/XPCShell.xpi</install>
<install os="Darwin">http://localhost:4444/test.xpi</install>
</addon>
</searchresults>

Loading

0 comments on commit fe87832

Please sign in to comment.