Extension Blocklisting:Testing: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
Page to plan blocklist addition tests. General goal: make sure we do not negatively affect users with new blocklist additions. | Page to plan blocklist addition tests. General goal: make sure we do not negatively affect users with new blocklist additions. | ||
= How to Test = | |||
* Install extension, etc. | |||
* Edit firefox.js: | |||
pref("extensions.blocklist.url", "http://morgamic.khan-vm.mozilla.org/amo/site/blocklist/1/%APP_ID%/%APP_VERSION%/"); | |||
app.update.timer = 60 | |||
extensions.blocklist.interval = 60 | |||
* Edit about:config: | |||
app.update.lastUpdateTime.blocklist-background-update-timer (reset it) | |||
* Restart. | |||
* In about 60s you should see the add-on in question disabled in the EM. | |||
= Basic checks = | = Basic checks = | ||
Revision as of 21:22, 27 November 2007
Page to plan blocklist addition tests. General goal: make sure we do not negatively affect users with new blocklist additions.
How to Test
- Install extension, etc.
- Edit firefox.js:
pref("extensions.blocklist.url", "http://morgamic.khan-vm.mozilla.org/amo/site/blocklist/1/%APP_ID%/%APP_VERSION%/");
app.update.timer = 60 extensions.blocklist.interval = 60
- Edit about:config:
app.update.lastUpdateTime.blocklist-background-update-timer (reset it)
- Restart.
- In about 60s you should see the add-on in question disabled in the EM.
Basic checks
- Extensions are not disabled for application versions that aren't specified
- Extensions are not disabled for versions that aren't specified
- Extensions are disabled for versions that are specified
- Extensions are disabled for application versions that are specified
IDM Testing
Blocklist URL (need VPN): http://morgamic.khan-vm.mozilla.org/amo/site/blocklist/1/%7Bec8030f7-c20a-464f-9b0e-13a3a9e97384%7D/3.0a1/
extensions.update.url
Resulting XML:
<?xml version="1.0"?> <blocklist xmlns="http://www.mozilla.org/2006/addons-blocklist"> <emItems> <emItem id="mozilla_cc@internetdownloadmanager.com"> <versionRange minVersion="2.1" maxVersion="3.3"> <targetApplication id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"> <versionRange minVersion="3.0a1" maxVersion="*"/> </targetApplication> </versionRange> </emItem> </emItems> </blocklist>
Assertions:
- IDM extension disabled for all Firefox clients 3.0a1 and greater, having IDM extension versions between 2.1 and 3.3
- IDM extension is not affected for
- Extension versions outside this range, any app version
- Applications less than 3.0a1, any extension version