Added links to error messages; bugs 623318 and 623309
This commit is contained in:
Родитель
bb43b076db
Коммит
7fa269fa31
|
@ -166,8 +166,9 @@ def _test_id(err, value):
|
|||
"_test_id",
|
||||
"invalid"),
|
||||
"The value of <em:id> is invalid.",
|
||||
"The values supplied for <em:id> in the install.rdf file is "
|
||||
"not a valid UUID string or email address.",
|
||||
["The values supplied for <em:id> in the install.rdf file is "
|
||||
"not a valid UUID string or email address.",
|
||||
"https://developer.mozilla.org/en/install_manifests#id"],
|
||||
"install.rdf")
|
||||
|
||||
|
||||
|
|
|
@ -12,6 +12,9 @@ APPLICATIONS = {
|
|||
|
||||
APPROVED_APPLICATIONS = {}
|
||||
|
||||
APP_VERSIONS_URL = \
|
||||
"https://addons.mozilla.org/en-US/firefox/pages/appversions/"
|
||||
|
||||
@decorator.register_test(tier=1)
|
||||
def test_targetedapplications(err, package_contents=None,
|
||||
xpi_package=None):
|
||||
|
@ -94,12 +97,12 @@ def test_targetedapplications(err, package_contents=None,
|
|||
"test_targetedapplications",
|
||||
"invalid_min_version"),
|
||||
"Invalid minimum version number",
|
||||
["""The minimum version that was specified
|
||||
is not an acceptable version number for
|
||||
the Mozilla product that it corresponds
|
||||
with.""",
|
||||
["The minimum version that was specified is not "
|
||||
"an acceptable version number for the Mozilla "
|
||||
"product that it corresponds with.",
|
||||
'Version "%s" isn\'t compatible with "%s".' %
|
||||
(min_version, app_name)],
|
||||
(min_version, app_name),
|
||||
APP_VERSIONS_URL],
|
||||
"install.rdf")
|
||||
continue
|
||||
|
||||
|
@ -111,12 +114,12 @@ def test_targetedapplications(err, package_contents=None,
|
|||
"test_targetedapplications",
|
||||
"invalid_max_version"),
|
||||
"Invalid maximum version number",
|
||||
["""The maximum version that was specified
|
||||
is not an acceptable version number for
|
||||
the Mozilla product that it corresponds
|
||||
with.""",
|
||||
["The maximum version that was specified is not "
|
||||
"an acceptable version number for the Mozilla "
|
||||
"product that it corresponds with.",
|
||||
'Version "%s" isn\'t compatible with "%s".' %
|
||||
(max_version, app_name)],
|
||||
(max_version, app_name),
|
||||
APP_VERSIONS_URL],
|
||||
"install.rdf")
|
||||
continue
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче