12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- 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";
- a["*"] = "asterisk";
- a["\u0EB3"] = "unicode";
- a[""] = "whitespace";
- a["1_1"] = "foo";
- }
- expect: {
- a.foo = "bar";
- a["if"] = "if";
- a["*"] = "asterisk";
- a.\u0EB3 = "unicode";
- a[""] = "whitespace";
- a["1_1"] = "foo";
- }
- }
- dot_properties_es5: {
- options = {
- properties: true,
- screw_ie8: true
- };
- input: {
- a["foo"] = "bar";
- a["if"] = "if";
- a["*"] = "asterisk";
- a["\u0EB3"] = "unicode";
- a[""] = "whitespace";
- }
- expect: {
- a.foo = "bar";
- a.if = "if";
- a["*"] = "asterisk";
- a.\u0EB3 = "unicode";
- a[""] = "whitespace";
- }
- }
|