aboutsummaryrefslogtreecommitdiff
path: root/test/compress/html_comments.js
diff options
context:
space:
mode:
authorkzc <zaxxon2011@gmail.com>2015-10-13 01:17:10 -0400
committerkzc <zaxxon2011@gmail.com>2015-10-13 01:17:10 -0400
commitdff54a6552c4d6764c85ac3c11c545ad3909f997 (patch)
treebf1977edd71d9ea2f570d154b44b4a2ea8ca65ac /test/compress/html_comments.js
parent1940fb682c7f29d3d82913d0b58d542d034c2556 (diff)
downloadtracifyjs-dff54a6552c4d6764c85ac3c11c545ad3909f997.tar.gz
tracifyjs-dff54a6552c4d6764c85ac3c11c545ad3909f997.zip
Fix other operator output related to <!-- or -->
Diffstat (limited to 'test/compress/html_comments.js')
-rw-r--r--test/compress/html_comments.js60
1 files changed, 58 insertions, 2 deletions
diff --git a/test/compress/html_comments.js b/test/compress/html_comments.js
index 6141980d..8495b433 100644
--- a/test/compress/html_comments.js
+++ b/test/compress/html_comments.js
@@ -5,11 +5,67 @@ html_comment_in_expression: {
expect_exact: "function f(a,b,x,y){return a< !--b&&x-- >y}";
}
+html_comment_in_less_than: {
+ input: {
+ function f(a, b) { return a < !--b; }
+ }
+ expect_exact: "function f(a,b){return a< !--b}";
+}
+
+html_comment_in_left_shift: {
+ input: {
+ function f(a, b) { return a << !--b; }
+ }
+ expect_exact: "function f(a,b){return a<< !--b}";
+}
+
+html_comment_in_right_shift: {
+ input: {
+ function f(a, b) { return a-- >> b; }
+ }
+ expect_exact: "function f(a,b){return a-- >>b}";
+}
+
+html_comment_in_zero_fill_right_shift: {
+ input: {
+ function f(a, b) { return a-- >>> b; }
+ }
+ expect_exact: "function f(a,b){return a-- >>>b}";
+}
+
+html_comment_in_greater_than: {
+ input: {
+ function f(a, b) { return a-- > b; }
+ }
+ expect_exact: "function f(a,b){return a-- >b}";
+}
+
+html_comment_in_greater_than_or_equal: {
+ input: {
+ function f(a, b) { return a-- >= b; }
+ }
+ expect_exact: "function f(a,b){return a-- >=b}";
+}
+
+html_comment_in_right_shift_assign: {
+ input: {
+ // Note: illegal javascript
+ function f(a, b) { return a-- >>= b; }
+ }
+ expect_exact: "function f(a,b){return a-- >>=b}";
+}
+
+html_comment_in_zero_fill_right_shift_assign: {
+ input: {
+ // Note: illegal javascript
+ function f(a, b) { return a-- >>>= b; }
+ }
+ expect_exact: "function f(a,b){return a-- >>>=b}";
+}
+
html_comment_in_string_literal: {
input: {
function f() { return "<!--HTML-->comment in<!--string literal-->"; }
}
expect_exact: 'function f(){return"\\x3c!--HTML--\\x3ecomment in\\x3c!--string literal--\\x3e"}';
}
-
-