aboutsummaryrefslogtreecommitdiff
path: root/test/compress/properties.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-06-23 15:53:13 +0800
committerGitHub <noreply@github.com>2017-06-23 15:53:13 +0800
commitdc6bcaa18eda80f31674a1f8167d7fbe997f743b (patch)
tree3124db40e4b400402c6b937963830c0d9c436e87 /test/compress/properties.js
parentd58b184835d9c2316bfb4411d0907ebb4446aaf0 (diff)
downloadtracifyjs-dc6bcaa18eda80f31674a1f8167d7fbe997f743b.tar.gz
tracifyjs-dc6bcaa18eda80f31674a1f8167d7fbe997f743b.zip
synchronise `mangle.properties` for `minify()` & `test/compress` (#2151)
Diffstat (limited to 'test/compress/properties.js')
-rw-r--r--test/compress/properties.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/compress/properties.js b/test/compress/properties.js
index a83acc10..8126d6c6 100644
--- a/test/compress/properties.js
+++ b/test/compress/properties.js
@@ -135,11 +135,11 @@ mangle_properties: {
a['run']({color: "blue", foo: "baz"});
}
expect: {
- a["a"] = "bar";
- a.b = "red";
- x = {c: 10};
- a.d(x.c, a.a);
- a['d']({b: "blue", a: "baz"});
+ a["o"] = "bar";
+ a.a = "red";
+ x = {r: 10};
+ a.b(x.r, a.o);
+ a['b']({a: "blue", o: "baz"});
}
}
@@ -177,16 +177,16 @@ mangle_unquoted_properties: {
function f1() {
a["foo"] = "bar";
a.color = "red";
- a.b = 2;
- x = {"bar": 10, c: 7};
- a.c = 9;
+ a.o = 2;
+ x = {"bar": 10, f: 7};
+ a.f = 9;
}
function f2() {
a.foo = "bar";
a['color'] = "red";
- x = {bar: 10, c: 7};
- a.c = 9;
- a.b = 3;
+ x = {bar: 10, f: 7};
+ a.f = 9;
+ a.o = 3;
}
}
}