diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-04 17:50:34 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-04 17:50:34 +0200 |
commit | 46b77928f746a4231d064774b5b67fd892c7ce86 (patch) | |
tree | e3ea690b3f0def1744ddae758923cf92171ef985 /vendor/twig/twig/test/Twig/Tests/Fixtures/tags/autoescape/type.test | |
parent | 68abd9c71b1d2f7bb2e9d21819584d1d15005b25 (diff) | |
download | wallabag-46b77928f746a4231d064774b5b67fd892c7ce86.tar.gz wallabag-46b77928f746a4231d064774b5b67fd892c7ce86.tar.zst wallabag-46b77928f746a4231d064774b5b67fd892c7ce86.zip |
rm vendor
Diffstat (limited to 'vendor/twig/twig/test/Twig/Tests/Fixtures/tags/autoescape/type.test')
-rw-r--r-- | vendor/twig/twig/test/Twig/Tests/Fixtures/tags/autoescape/type.test | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/autoescape/type.test b/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/autoescape/type.test deleted file mode 100644 index 4f415201..00000000 --- a/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/autoescape/type.test +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | --TEST-- | ||
2 | escape types | ||
3 | --TEMPLATE-- | ||
4 | |||
5 | 1. autoescape 'html' |escape('js') | ||
6 | |||
7 | {% autoescape 'html' %} | ||
8 | <a onclick="alert("{{ msg|escape('js') }}")"></a> | ||
9 | {% endautoescape %} | ||
10 | |||
11 | 2. autoescape 'html' |escape('js') | ||
12 | |||
13 | {% autoescape 'html' %} | ||
14 | <a onclick="alert("{{ msg|escape('js') }}")"></a> | ||
15 | {% endautoescape %} | ||
16 | |||
17 | 3. autoescape 'js' |escape('js') | ||
18 | |||
19 | {% autoescape 'js' %} | ||
20 | <a onclick="alert("{{ msg|escape('js') }}")"></a> | ||
21 | {% endautoescape %} | ||
22 | |||
23 | 4. no escape | ||
24 | |||
25 | {% autoescape false %} | ||
26 | <a onclick="alert("{{ msg }}")"></a> | ||
27 | {% endautoescape %} | ||
28 | |||
29 | 5. |escape('js')|escape('html') | ||
30 | |||
31 | {% autoescape false %} | ||
32 | <a onclick="alert("{{ msg|escape('js')|escape('html') }}")"></a> | ||
33 | {% endautoescape %} | ||
34 | |||
35 | 6. autoescape 'html' |escape('js')|escape('html') | ||
36 | |||
37 | {% autoescape 'html' %} | ||
38 | <a onclick="alert("{{ msg|escape('js')|escape('html') }}")"></a> | ||
39 | {% endautoescape %} | ||
40 | |||
41 | --DATA-- | ||
42 | return array('msg' => "<>\n'\"") | ||
43 | --EXPECT-- | ||
44 | |||
45 | 1. autoescape 'html' |escape('js') | ||
46 | |||
47 | <a onclick="alert("\x3C\x3E\x0A\x27\x22")"></a> | ||
48 | |||
49 | 2. autoescape 'html' |escape('js') | ||
50 | |||
51 | <a onclick="alert("\x3C\x3E\x0A\x27\x22")"></a> | ||
52 | |||
53 | 3. autoescape 'js' |escape('js') | ||
54 | |||
55 | <a onclick="alert("\x3C\x3E\x0A\x27\x22")"></a> | ||
56 | |||
57 | 4. no escape | ||
58 | |||
59 | <a onclick="alert("<> | ||
60 | '"")"></a> | ||
61 | |||
62 | 5. |escape('js')|escape('html') | ||
63 | |||
64 | <a onclick="alert("\x3C\x3E\x0A\x27\x22")"></a> | ||
65 | |||
66 | 6. autoescape 'html' |escape('js')|escape('html') | ||
67 | |||
68 | <a onclick="alert("\x3C\x3E\x0A\x27\x22")"></a> | ||
69 | |||