mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-30 14:17:36 -10:00
I tried to keep the changes to existing tests as minimal as possible. There were a few exceptions, though: * test_update_ignorecompat.js was completely broken. I couldn't figure out why it was suddenly failing after I changed it to use `add_test`, and it turned out that it had been failing all along, but in a way that the harness didn't pick up. * I changed most of the `do_throw` in update callbacks to `ok(false` because it took me about an hour to figure out where the test was failing when I hit one of them. * I made some changes to sync `test_update.js` and `test_update_ignorecompat.js` where one appeared to have been changed without updating the other. * I made `promiseFindAddonUpdates` a bit more generic, because I was planning to convert most of `test_update.js` to use it, rather than nested callbacks. I changed my mind a quarter of the way through, but decided to keep the changes, since they'll probably be useful elsewhere.
216 lines
5.0 KiB
JSON
216 lines
5.0 KiB
JSON
{
|
|
"addons": {
|
|
"[email protected]": {
|
|
"updates": [
|
|
{
|
|
"version": "1.0",
|
|
"applications": {
|
|
"gecko": {
|
|
"strict_min_version": "1",
|
|
"strict_min_version": "1"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"version": "1.0",
|
|
"applications": {
|
|
"gecko": {
|
|
"strict_min_version": "2",
|
|
"strict_min_version": "2"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"version": "2.0",
|
|
"update_link": "http://localhost:%PORT%/addons/test_update.xpi",
|
|
"update_info_url": "http://example.com/updateInfo.xhtml",
|
|
"applications": {
|
|
"gecko": {
|
|
"strict_min_version": "1",
|
|
"strict_min_version": "1"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"[email protected]": {
|
|
"updates": [
|
|
{
|
|
"version": "1.0",
|
|
"applications": {
|
|
"gecko": {
|
|
"strict_min_version": "0",
|
|
"advisory_max_version": "1"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"[email protected]": {
|
|
"updates": [
|
|
{
|
|
"version": "1.0",
|
|
"applications": {
|
|
"gecko": {
|
|
"strict_min_version": "0",
|
|
"advisory_max_version": "1"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"[email protected]": {
|
|
"updates": [
|
|
{
|
|
"version": "1.0",
|
|
"applications": {
|
|
"gecko": {
|
|
"strict_min_version": "3",
|
|
"advisory_max_version": "3"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"[email protected]": {
|
|
"updates": [
|
|
{
|
|
"version": "5.0",
|
|
"applications": {
|
|
"gecko": {
|
|
"strict_min_version": "0",
|
|
"advisory_max_version": "0"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"[email protected]": {
|
|
"updates": [
|
|
{
|
|
"version": "1.0",
|
|
"applications": {
|
|
"gecko": {
|
|
"strict_min_version": "0",
|
|
"advisory_max_version": "1"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"[email protected]": {
|
|
"updates": [
|
|
{
|
|
"version": "2.0",
|
|
"update_link": "http://localhost:%PORT%/addons/test_update8.xpi",
|
|
"applications": {
|
|
"gecko": {
|
|
"strict_min_version": "1",
|
|
"advisory_max_version": "1"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"[email protected]": {
|
|
"updates": [
|
|
{
|
|
"version": "2.0",
|
|
"update_link": "http://localhost:%PORT%/addons/test_update9_2.xpi",
|
|
"applications": {
|
|
"gecko": {
|
|
"strict_min_version": "1",
|
|
"advisory_max_version": "1"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"_comment_": "Incompatible when strict compatibility is enabled",
|
|
"version": "3.0",
|
|
"update_link": "http://localhost:%PORT%/addons/test_update9_3.xpi",
|
|
"applications": {
|
|
"gecko": {
|
|
"strict_min_version": "0.9",
|
|
"advisory_max_version": "0.9"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"_comment_": "Incompatible due to compatibility override",
|
|
"version": "4.0",
|
|
"update_link": "http://localhost:%PORT%/addons/test_update9_4.xpi",
|
|
"applications": {
|
|
"gecko": {
|
|
"strict_min_version": "0.9",
|
|
"advisory_max_version": "0.9"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"_comment_": "Addon for future version of app",
|
|
"version": "4.0",
|
|
"update_link": "http://localhost:%PORT%/addons/test_update9_5.xpi",
|
|
"applications": {
|
|
"gecko": {
|
|
"strict_min_version": "5",
|
|
"advisory_max_version": "6"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"[email protected]": {
|
|
"updates": [
|
|
{
|
|
"version": "1.0",
|
|
"update_link": "http://localhost:%PORT%/addons/test_update10.xpi",
|
|
"applications": {
|
|
"gecko": {
|
|
"strict_min_version": "0.1",
|
|
"advisory_max_version": "0.4"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"[email protected]": {
|
|
"updates": [
|
|
{
|
|
"version": "2.0",
|
|
"update_link": "http://localhost:%PORT%/addons/test_update11.xpi",
|
|
"applications": {
|
|
"gecko": {
|
|
"strict_min_version": "0.1",
|
|
"strict_max_version": "0.2"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"[email protected]": {
|
|
"updates": [
|
|
{
|
|
"version": "2.0",
|
|
"update_link": "http://localhost:%PORT%/addons/test_update12.xpi",
|
|
"applications": {
|
|
"gecko": {
|
|
"strict_min_version": "1",
|
|
"advisory_max_version": "1"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|