aboutsummaryrefslogtreecommitdiff
path: root/test/compress/html_comments.js
blob: fe6ff8ac6a245b2e2ee9112577d8a14480747de7 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
html_comment_in_expression: {
    input: {
        function f(a, b, x, y) { return a < !--b && x-- > y; }
    }
    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_string_literal: {
    input: {
        function f() { return "<!--HTML-->comment in<!--string literal-->"; }
    }
    expect_exact: 'function f(){return"\\x3c!--HTML--\\x3ecomment in\\x3c!--string literal--\\x3e"}';
}