Removed install.js warning per bug 623306

This commit is contained in:
mattbasta 2011-01-05 14:34:29 -05:00
Родитель 67ebfbb86a
Коммит 867bee9864
3 изменённых файлов: 0 добавлений и 43 удалений

Двоичный файл не отображается.

Просмотреть файл

@ -18,31 +18,6 @@ def test_valid_targetapps():
False,
True)
def test_ta_seamonkey():
"""Tests that files that list SeaMonkey support include the
mandatory install.js file."""
err = _do_test(
"tests/resources/targetapplication/bad_seamonkey.xpi",
targetapp.test_targetedapplications,
True,
True)
assert not err.reject
def test_ta_seamonkey_dict():
"""Tests that SeaMonkey support is mandatory for dictionary
packages."""
err = _do_test(
"tests/resources/targetapplication/bad_seamonkey.xpi",
targetapp.test_targetedapplications,
True,
True,
PACKAGE_DICTIONARY)
assert err.reject
def test_bad_min_max():
"""Tests that the lower/upper-bound version number for a
targetApplication entry is indeed a valid version number"""

Просмотреть файл

@ -48,24 +48,6 @@ def test_targetedapplications(err, package_contents=None,
used_targets.append(ta_guid)
if ta_guid == "{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}":
# Time to test for some install.js.
if "install.js" not in package_contents:
err.warning(("testcases_targetapplication",
"test_targetedapplications",
"missing_seamonkey_installjs"),
"Missing install.js for SeaMonkey.",
"""SeaMonkey requires install.js, which
was not found. install.rdf indicates
that the addon supports SeaMonkey.""",
"install.rdf")
# Only reject if it's a dictionary.
if err.detected_type == PACKAGE_DICTIONARY:
err.reject = True
break
found_guid = False
for (guid, key) in [(x["guid"], y) for (y, x) in
APPROVED_APPLICATIONS.items()]: