tests/test-check-code.t
changeset 21487 c26464ce0781
parent 21097 e8ef59b351c3
child 23139 e53f6b72a0e4
--- a/tests/test-check-code.t	Sat May 17 17:10:23 2014 +0800
+++ b/tests/test-check-code.t	Sat May 17 17:11:06 2014 +0800
@@ -284,3 +284,19 @@
    > print _(
    don't use % inside _()
   [1]
+
+web templates
+
+  $ mkdir -p mercurial/templates
+  $ cat > mercurial/templates/example.tmpl <<EOF
+  > {desc}
+  > {desc|escape}
+  > {desc|firstline}
+  > {desc|websub}
+  > EOF
+
+  $ "$check_code" --warnings mercurial/templates/example.tmpl
+  mercurial/templates/example.tmpl:2:
+   > {desc|escape}
+   warning: follow desc keyword with either firstline or websub
+  [1]