public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e3bc0c
)
Added test scenario with unicode in properties name.
author
Justin Lau
<justin@tclau.com>
Sun, 5 May 2013 17:26:33 +0000
(
01:26
+0800)
committer
Justin 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
patch
|
blob
|
history
diff --git
a/test/compress/properties.js
b/test/compress/properties.js
index
118bc4c
..
d52680c
100644
(file)
--- 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";
}
}