aboutsummaryrefslogtreecommitdiff
path: root/test/ufuzz/index.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-07-21 09:17:15 +0100
committeralexlamsl <alexlamsl@gmail.com>2020-07-21 17:22:18 +0800
commita98ba994bdcec80e47cf0964534a2d721014b458 (patch)
tree55ae2b82ba9275330ccd2f9b11569cf0bd66bc9c /test/ufuzz/index.js
parentcd671221c59feead948b13b024695dc04015fde6 (diff)
downloadtracifyjs-a98ba994bdcec80e47cf0964534a2d721014b458.tar.gz
tracifyjs-a98ba994bdcec80e47cf0964534a2d721014b458.zip
reduce `ufuzz` test cases that fail to `minify()` (#4021)
Diffstat (limited to 'test/ufuzz/index.js')
-rw-r--r--test/ufuzz/index.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/ufuzz/index.js b/test/ufuzz/index.js
index b4059ea4..8f853c9c 100644
--- a/test/ufuzz/index.js
+++ b/test/ufuzz/index.js
@@ -1137,18 +1137,6 @@ function log(options) {
errorln(original_result);
errorln("uglified result:");
errorln(uglify_result);
- errorln("//-------------------------------------------------------------");
- var reduced = reduce_test(original_code, JSON.parse(options), {
- verbose: false,
- }).code;
- if (reduced) {
- errorln();
- errorln("// reduced test case (output will differ)");
- errorln();
- errorln(reduced);
- errorln();
- errorln("//-------------------------------------------------------------");
- }
} else {
errorln("// !!! uglify failed !!!");
errorln(uglify_code);
@@ -1159,6 +1147,18 @@ function log(options) {
errorln(original_result);
}
}
+ errorln("//-------------------------------------------------------------");
+ var reduced = reduce_test(original_code, JSON.parse(options), {
+ verbose: false,
+ }).code;
+ if (reduced) {
+ errorln();
+ errorln("// reduced test case (output will differ)");
+ errorln();
+ errorln(reduced);
+ errorln();
+ errorln("//-------------------------------------------------------------");
+ }
errorln("minify(options):");
errorln(JSON.stringify(JSON.parse(options), null, 2));
errorln();