add expect_stdout to tests
This commit is contained in:
@@ -13,9 +13,9 @@ same_variable_in_multiple_for_loop: {
|
|||||||
join_vars: true,
|
join_vars: true,
|
||||||
cascade: true,
|
cascade: true,
|
||||||
side_effects: true,
|
side_effects: true,
|
||||||
collapse_vars: true
|
collapse_vars: true,
|
||||||
};
|
}
|
||||||
mangle = {};
|
mangle = {}
|
||||||
input: {
|
input: {
|
||||||
for (let i = 0; i < 3; i++) {
|
for (let i = 0; i < 3; i++) {
|
||||||
let a = 100;
|
let a = 100;
|
||||||
@@ -38,6 +38,7 @@ same_variable_in_multiple_for_loop: {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
expect_stdout: true
|
||||||
}
|
}
|
||||||
|
|
||||||
same_variable_in_multiple_forOf: {
|
same_variable_in_multiple_forOf: {
|
||||||
@@ -55,9 +56,9 @@ same_variable_in_multiple_forOf: {
|
|||||||
join_vars: true,
|
join_vars: true,
|
||||||
cascade: true,
|
cascade: true,
|
||||||
side_effects: true,
|
side_effects: true,
|
||||||
collapse_vars: true
|
collapse_vars: true,
|
||||||
};
|
}
|
||||||
mangle = {};
|
mangle = {}
|
||||||
input: {
|
input: {
|
||||||
var test = [ "a", "b", "c" ];
|
var test = [ "a", "b", "c" ];
|
||||||
for (let tmp of test) {
|
for (let tmp of test) {
|
||||||
@@ -79,6 +80,7 @@ same_variable_in_multiple_forOf: {
|
|||||||
console.log(o);
|
console.log(o);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
expect_stdout: true
|
||||||
}
|
}
|
||||||
|
|
||||||
same_variable_in_multiple_forIn: {
|
same_variable_in_multiple_forIn: {
|
||||||
@@ -96,9 +98,9 @@ same_variable_in_multiple_forIn: {
|
|||||||
join_vars: true,
|
join_vars: true,
|
||||||
cascade: true,
|
cascade: true,
|
||||||
side_effects: true,
|
side_effects: true,
|
||||||
collapse_vars: true
|
collapse_vars: true,
|
||||||
};
|
}
|
||||||
mangle = {};
|
mangle = {}
|
||||||
input: {
|
input: {
|
||||||
var test = [ "a", "b", "c" ];
|
var test = [ "a", "b", "c" ];
|
||||||
for (let tmp in test) {
|
for (let tmp in test) {
|
||||||
@@ -120,6 +122,7 @@ same_variable_in_multiple_forIn: {
|
|||||||
console.log(o);
|
console.log(o);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
expect_stdout: true
|
||||||
}
|
}
|
||||||
|
|
||||||
different_variable_in_multiple_for_loop: {
|
different_variable_in_multiple_for_loop: {
|
||||||
@@ -137,9 +140,9 @@ different_variable_in_multiple_for_loop: {
|
|||||||
join_vars: true,
|
join_vars: true,
|
||||||
cascade: true,
|
cascade: true,
|
||||||
side_effects: true,
|
side_effects: true,
|
||||||
collapse_vars: true
|
collapse_vars: true,
|
||||||
};
|
}
|
||||||
mangle = {};
|
mangle = {}
|
||||||
input: {
|
input: {
|
||||||
for (let i = 0; i < 3; i++) {
|
for (let i = 0; i < 3; i++) {
|
||||||
let a = 100;
|
let a = 100;
|
||||||
@@ -162,6 +165,7 @@ different_variable_in_multiple_for_loop: {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
expect_stdout: true
|
||||||
}
|
}
|
||||||
|
|
||||||
different_variable_in_multiple_forOf: {
|
different_variable_in_multiple_forOf: {
|
||||||
@@ -179,9 +183,9 @@ different_variable_in_multiple_forOf: {
|
|||||||
join_vars: true,
|
join_vars: true,
|
||||||
cascade: true,
|
cascade: true,
|
||||||
side_effects: true,
|
side_effects: true,
|
||||||
collapse_vars: true
|
collapse_vars: true,
|
||||||
};
|
}
|
||||||
mangle = {};
|
mangle = {}
|
||||||
input: {
|
input: {
|
||||||
var test = [ "a", "b", "c" ];
|
var test = [ "a", "b", "c" ];
|
||||||
for (let tmp of test) {
|
for (let tmp of test) {
|
||||||
@@ -203,6 +207,7 @@ different_variable_in_multiple_forOf: {
|
|||||||
console.log(o);
|
console.log(o);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
expect_stdout: true
|
||||||
}
|
}
|
||||||
|
|
||||||
different_variable_in_multiple_forIn: {
|
different_variable_in_multiple_forIn: {
|
||||||
@@ -220,9 +225,9 @@ different_variable_in_multiple_forIn: {
|
|||||||
join_vars: true,
|
join_vars: true,
|
||||||
cascade: true,
|
cascade: true,
|
||||||
side_effects: true,
|
side_effects: true,
|
||||||
collapse_vars: true
|
collapse_vars: true,
|
||||||
};
|
}
|
||||||
mangle = {};
|
mangle = {}
|
||||||
input: {
|
input: {
|
||||||
var test = [ "a", "b", "c" ];
|
var test = [ "a", "b", "c" ];
|
||||||
for (let tmp in test) {
|
for (let tmp in test) {
|
||||||
@@ -244,6 +249,7 @@ different_variable_in_multiple_forIn: {
|
|||||||
console.log(o);
|
console.log(o);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
expect_stdout: true
|
||||||
}
|
}
|
||||||
|
|
||||||
more_variable_in_multiple_for: {
|
more_variable_in_multiple_for: {
|
||||||
@@ -261,9 +267,9 @@ more_variable_in_multiple_for: {
|
|||||||
join_vars: true,
|
join_vars: true,
|
||||||
cascade: true,
|
cascade: true,
|
||||||
side_effects: true,
|
side_effects: true,
|
||||||
collapse_vars: true
|
collapse_vars: true,
|
||||||
};
|
}
|
||||||
mangle = {};
|
mangle = {}
|
||||||
input: {
|
input: {
|
||||||
for (let a = 9, i = 0; i < 20; i += a) {
|
for (let a = 9, i = 0; i < 20; i += a) {
|
||||||
let b = a++ + i;
|
let b = a++ + i;
|
||||||
@@ -281,5 +287,5 @@ more_variable_in_multiple_for: {
|
|||||||
console.log(o, c, e, l, f);
|
console.log(o, c, e, l, f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
expect_stdout: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user