forked from rnewman/services-central-old
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restoring the tests accidentally backed out by changeset a8ba788cac18…
… from bug 563662
- Loading branch information
Showing
9 changed files
with
2,326 additions
and
0 deletions.
There are no files selected for viewing
166 changes: 166 additions & 0 deletions
166
toolkit/mozapps/extensions/test/unit/data/test_bug404024.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
160
toolkit/mozapps/extensions/test/unit/data/test_bug417606.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
Oops, something went wrong.