diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-10-23 17:35:37 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-10-23 17:35:37 -0700 |
commit | 94ee68349b7510192b7ee89912e64366dac81022 (patch) | |
tree | bf79a492944018e661cc367608d4f274d7a78ee1 /tests/runner.py | |
parent | e3d2f0cced1dcd1e260591d201a45573d2b3409f (diff) |
integrate eliminator as js optimizer pass
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/runner.py b/tests/runner.py index d3ef11ab..0db0529e 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -7834,16 +7834,6 @@ f.close() Popen(['python', EMCC, os.path.join(self.get_dir(), 'main.cpp'), '--pre-js', 'pre.js', '--pre-js', 'pre2.js']).communicate() self.assertContained('prepre\npre-run\nhello from main\n', run_js(os.path.join(self.get_dir(), 'a.out.js'))) - def test_eliminator(self): - expected = open(path_from_root('tools', 'eliminator', 'eliminator-test-output.js')).read() - cwd = os.getcwd() - try: - os.chdir(path_from_root('tools', 'eliminator')) - output = Popen([NODE_JS, VARIABLE_ELIMINATOR, path_from_root('tools', 'eliminator', 'eliminator-test.js')], stdout=PIPE).communicate()[0] - self.assertIdentical(expected, output) - finally: - os.chdir(cwd) - def test_fix_closure(self): input = path_from_root('tests', 'test-fix-closure.js') expected = path_from_root('tests', 'test-fix-closure.out.js') |