aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-03-11 05:11:12 +0800
committerGitHub <noreply@github.com>2018-03-11 05:11:12 +0800
commitfc6ebd04a59024dfd3b40b43825a007c62bac2b3 (patch)
treec64055b5a80e2374f47b841754d051348db594d3 /test/compress
parent7e00a1274139e65ad82d8938b816602aedb5d318 (diff)
downloadtracifyjs-fc6ebd04a59024dfd3b40b43825a007c62bac2b3.tar.gz
tracifyjs-fc6ebd04a59024dfd3b40b43825a007c62bac2b3.zip
preserve case when `inline_script` (#2991)
fixes #2989
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/issue-2989.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/compress/issue-2989.js b/test/compress/issue-2989.js
new file mode 100644
index 00000000..c9066921
--- /dev/null
+++ b/test/compress/issue-2989.js
@@ -0,0 +1,21 @@
+inline_script_off: {
+ beautify = {
+ inline_script: false,
+ }
+ input: {
+ console.log("</sCrIpT>");
+ }
+ expect_exact: 'console.log("</sCrIpT>");'
+ expect_stdout: "</sCrIpT>"
+}
+
+inline_script_on: {
+ beautify = {
+ inline_script: true,
+ }
+ input: {
+ console.log("</sCrIpT>");
+ }
+ expect_exact: 'console.log("<\\/sCrIpT>");'
+ expect_stdout: "</sCrIpT>"
+}