aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-07-03 15:52:42 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-07-03 15:52:42 -0700
commit2e570754a50b5ae8bae2bbf3f92c859a3ff13278 (patch)
tree114c3ede4775cc1749953559d9c4bc84134323fb
parentdea79e5f6113e2f7c3152cea463b8c0ab948eefd (diff)
fix test_source_map
-rwxr-xr-xtests/runner.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 7a2dedda..8c7a6f90 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -9640,7 +9640,9 @@ def process(filename):
# objects when generating source maps, so we want to make sure the
# optimizer can deal with both types.
out_file = re.sub(' *//@.*$', '', out_file, flags=re.MULTILINE)
- self.assertIdentical(no_maps_file, out_file)
+ def clean(code):
+ return code.replace('{\n}', '{}')
+ self.assertIdentical(clean(no_maps_file), clean(out_file))
map_filename = out_filename + '.map'
data = json.load(open(map_filename, 'r'))
self.assertIdentical(out_filename, data['file'])