aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-14 20:53:53 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-14 20:54:14 -0800
commit60a86d0fcb15b8381f1fc97ad17571cb281f26c1 (patch)
tree1244fbd2f7ebbb404b503619fdf7477a89d737ba /tests
parentb5ca47aee27b1dd86ad2623c4591019ad0be97ea (diff)
fix aggressiveVariableElimination bug and add testing
Diffstat (limited to 'tests')
-rw-r--r--tests/test_other.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_other.py b/tests/test_other.py
index f91b4683..00c42418 100644
--- a/tests/test_other.py
+++ b/tests/test_other.py
@@ -1736,6 +1736,8 @@ f.close()
['asm', 'outline']),
(path_from_root('tools', 'test-js-optimizer-asm-minlast.js'), open(path_from_root('tools', 'test-js-optimizer-asm-minlast-output.js')).read(),
['asm', 'minifyWhitespace', 'last']),
+ (path_from_root('tools', 'test-js-optimizer-shiftsAggressive.js'), open(path_from_root('tools', 'test-js-optimizer-shiftsAggressive-output.js')).read(),
+ ['asm', 'aggressiveVariableElimination']),
]:
print input
output = Popen(listify(NODE_JS) + [path_from_root('tools', 'js-optimizer.js'), input] + passes, stdin=PIPE, stdout=PIPE).communicate()[0]