diff options
author | max99x <max99x@gmail.com> | 2011-08-24 04:32:38 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-08-24 04:32:38 +0300 |
commit | 6c6fbdebae5e5623012dbcb63d16f4b16ab521f2 (patch) | |
tree | e157da0367db3a5d5624d181dda7157092e2c567 | |
parent | 2ea581f293392aebdfb1edbbba895c28462b8443 (diff) | |
parent | cfcf669f7d0239e052ba2387eee94a64912e9f09 (diff) |
Merge branch 'master' of github.com:max99x/emscripten
-rw-r--r-- | tests/runner.py | 9 | ||||
-rw-r--r-- | tools/eliminator/eliminator-test-output.js | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index 77aa0d4f..17403146 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -3786,6 +3786,15 @@ TT = %s del T # T is just a shape for the specific subclasses, we don't test it itself + class OtherTests(RunnerCore): + def test_eliminator(self): + coffee = path_from_root('tools', 'eliminator', 'node_modules', 'coffee-script', 'bin', 'coffee') + eliminator = path_from_root('tools', 'eliminator', 'eliminator.coffee') + input = open(path_from_root('tools', 'eliminator', 'eliminator-test.js')).read() + expected = open(path_from_root('tools', 'eliminator', 'eliminator-test-output.js')).read() + output = Popen([coffee, eliminator], stdin=PIPE, stdout=PIPE, stderr=PIPE).communicate(input)[0] + self.assertEquals(output, expected) + else: # Benchmarks diff --git a/tools/eliminator/eliminator-test-output.js b/tools/eliminator/eliminator-test-output.js index 4c9224da..4ff8a965 100644 --- a/tools/eliminator/eliminator-test-output.js +++ b/tools/eliminator/eliminator-test-output.js @@ -37,6 +37,7 @@ var g = function(a1, a2) { var obj = { "quoted": 1, "doublequoted": 2, - unquoted: 3 + unquoted: 3, + 4: 5 }; }; |