aboutsummaryrefslogtreecommitdiff
path: root/test/compress/properties.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/properties.js')
-rw-r--r--test/compress/properties.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/compress/properties.js b/test/compress/properties.js
new file mode 100644
index 00000000..72e245ec
--- /dev/null
+++ b/test/compress/properties.js
@@ -0,0 +1,25 @@
+keep_properties: {
+ options = {
+ properties: false
+ };
+ input: {
+ a["foo"] = "bar";
+ }
+ expect: {
+ a["foo"] = "bar";
+ }
+}
+
+dot_properties: {
+ options = {
+ properties: true
+ };
+ input: {
+ a["foo"] = "bar";
+ a["if"] = "if";
+ }
+ expect: {
+ a.foo = "bar";
+ a["if"] = "if";
+ }
+}