Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (18 sloc) 603 Bytes
from js_helper import _do_test_raw
def test_jsm_global_overwrites():
JavaScript modules do not cause global scope conflicts, so we should not
make errors if globals are overwritten.
assert _do_test_raw(""" = "bar";
assert not _do_test_raw(""" = "bar";
""", path="test.jsm").failed()
def test_jsm_EXPORTED_SYMBOLS():
"""Test that EXPORTED_SYMBOLS is a trigger for JSM."""
assert not _do_test_raw("""
var EXPORTED_SYMBOLS = foo; = "bar";
Jump to Line
Something went wrong with that request. Please try again.