Added test scenario with unicode in properties name.
authorJustin Lau <justin@tclau.com>
Sun, 5 May 2013 17:26:33 +0000 (01:26 +0800)
committerJustin Lau <justin@tclau.com>
Sun, 5 May 2013 17:26:33 +0000 (01:26 +0800)
Signed-off-by: Justin Lau <justin@tclau.com>
test/compress/properties.js

index 118bc4c..d52680c 100644 (file)
@@ -18,11 +18,13 @@ dot_properties: {
         a["foo"] = "bar";
         a["if"] = "if";
         a["*"] = "asterisk";
+        a["\u0EB3"] = "unicode";
     }
     expect: {
         a.foo = "bar";
         a["if"] = "if";
         a["*"] = "asterisk";
+        a.\u0EB3 = "unicode";
     }
 }
 
@@ -35,10 +37,12 @@ dot_properties_es5: {
         a["foo"] = "bar";
         a["if"] = "if";
         a["*"] = "asterisk";
+        a["\u0EB3"] = "unicode";
     }
     expect: {
         a.foo = "bar";
         a.if = "if";
         a["*"] = "asterisk";
+        a.\u0EB3 = "unicode";
     }
 }