Beispiel #1
0
def test_packed_scripts_ignored():
    """Test that packed scripts are not tested in subpackages."""

    x = MockXPI({'foo.js': 'tests/resources/content/one_error.js'})

    err = ErrorBundle()
    err.supported_versions = {}

    err.save_resource('scripts', [{
        'scripts': ['foo.js'],
        'package': x,
        'state': []
    }])
    err.package_stack = ['foo']

    content.test_packed_scripts(err, x)

    assert not err.failed()
def test_packed_scripts_ignored():
    """Test that packed scripts are not tested in subpackages."""

    x = MockXPI({"foo.js": "tests/resources/content/one_error.js"})

    err = ErrorBundle()
    err.supported_versions = {}

    err.save_resource(
        "scripts",
        [{"scripts": ["foo.js"],
          "package": x,
          "state": []}])
    err.package_stack = ["foo"]

    content.test_packed_scripts(err, x)

    assert not err.failed()
def test_packed_scripts_ignored():
    """Test that packed scripts are not tested in subpackages."""

    x = MockXPI({'foo.js': 'tests/resources/content/one_error.js'})

    err = ErrorBundle()
    err.supported_versions = {}

    err.save_resource(
        'scripts',
        [{'scripts': ['foo.js'],
          'package': x,
          'state': []}])
    err.package_stack = ['foo']

    content.test_packed_scripts(err, x)

    assert not err.failed()
Beispiel #4
0
def test_packed_scripts_ignored():
    """Test that packed scripts are not tested in subpackages."""

    x = MockXPI({"foo.js": "tests/resources/content/one_error.js"})

    err = ErrorBundle()
    err.supported_versions = {}

    err.save_resource(
        "scripts",
        [{"scripts": ["foo.js"],
          "package": x,
          "state": []}])
    err.package_stack = ["foo"]

    content.test_packed_scripts(err, x)

    assert not err.failed()