Add mangle = { ...mangleopts } option to tests.

This commit is contained in:
Fábio Santos
2015-11-20 18:09:27 +00:00
parent 9ffed2bea6
commit 364d20f8fb

View File

@@ -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", {