aboutsummaryrefslogtreecommitdiff
path: root/test/compress/properties.js
diff options
context:
space:
mode:
authorJustin Lau <justin@tclau.com>2013-05-06 01:26:33 +0800
committerJustin Lau <justin@tclau.com>2013-05-06 01:26:33 +0800
commitfcd544cc106bbd04ca8003046fa76154cdb4046e (patch)
tree6889911b5b3cdcecac06fdd484c39af883e4e4df /test/compress/properties.js
parent1e3bc0caa0a8ad8c3bcab07d539ee153ea8e96b3 (diff)
downloadtracifyjs-fcd544cc106bbd04ca8003046fa76154cdb4046e.tar.gz
tracifyjs-fcd544cc106bbd04ca8003046fa76154cdb4046e.zip
Added test scenario with unicode in properties name.
Signed-off-by: Justin Lau <justin@tclau.com>
Diffstat (limited to 'test/compress/properties.js')
-rw-r--r--test/compress/properties.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/compress/properties.js b/test/compress/properties.js
index 118bc4c2..d52680c2 100644
--- a/test/compress/properties.js
+++ b/test/compress/properties.js
@@ -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";
}
}