2012-08-22 12:21:58 +00:00
|
|
|
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";
|
2013-05-05 14:08:13 +00:00
|
|
|
a["*"] = "asterisk";
|
2013-05-05 17:26:33 +00:00
|
|
|
a["\u0EB3"] = "unicode";
|
2013-05-08 19:29:46 +00:00
|
|
|
a[""] = "whitespace";
|
2013-05-14 07:41:28 +00:00
|
|
|
a["1_1"] = "foo";
|
2012-08-22 12:21:58 +00:00
|
|
|
}
|
|
|
|
|
expect: {
|
|
|
|
|
a.foo = "bar";
|
|
|
|
|
a["if"] = "if";
|
2013-05-05 14:08:13 +00:00
|
|
|
a["*"] = "asterisk";
|
2013-05-05 17:26:33 +00:00
|
|
|
a.\u0EB3 = "unicode";
|
2013-05-08 19:29:46 +00:00
|
|
|
a[""] = "whitespace";
|
2013-05-14 07:41:28 +00:00
|
|
|
a["1_1"] = "foo";
|
2012-08-22 12:21:58 +00:00
|
|
|
}
|
|
|
|
|
}
|
2013-04-20 20:11:05 +00:00
|
|
|
|
|
|
|
|
dot_properties_es5: {
|
|
|
|
|
options = {
|
|
|
|
|
properties: true,
|
|
|
|
|
screw_ie8: true
|
|
|
|
|
};
|
|
|
|
|
input: {
|
|
|
|
|
a["foo"] = "bar";
|
|
|
|
|
a["if"] = "if";
|
2013-05-05 14:08:13 +00:00
|
|
|
a["*"] = "asterisk";
|
2013-05-05 17:26:33 +00:00
|
|
|
a["\u0EB3"] = "unicode";
|
2013-05-08 19:29:46 +00:00
|
|
|
a[""] = "whitespace";
|
2013-04-20 20:11:05 +00:00
|
|
|
}
|
|
|
|
|
expect: {
|
|
|
|
|
a.foo = "bar";
|
|
|
|
|
a.if = "if";
|
2013-05-05 14:08:13 +00:00
|
|
|
a["*"] = "asterisk";
|
2013-05-05 17:26:33 +00:00
|
|
|
a.\u0EB3 = "unicode";
|
2013-05-08 19:29:46 +00:00
|
|
|
a[""] = "whitespace";
|
2013-04-20 20:11:05 +00:00
|
|
|
}
|
|
|
|
|
}
|