From 364d20f8fb8291525057451a491fe2924bd1f072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Santos?= Date: Fri, 20 Nov 2015 18:09:27 +0000 Subject: [PATCH] Add mangle = { ...mangleopts } option to tests. --- test/run-tests.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/run-tests.js b/test/run-tests.js index 1d0de8ca..6d7f7244 100755 --- a/test/run-tests.js +++ b/test/run-tests.js @@ -104,6 +104,9 @@ function run_compress_tests() { } var output = input.transform(cmp); output.figure_out_scope(); + if (test.mangle) { + output.mangle_names(test.mangle); + } output = make_code(output, false); if (expect != output) { log("!!! failed\n---INPUT---\n{input}\n---OUTPUT---\n{output}\n---EXPECTED---\n{expected}\n\n", {