projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a615a3c
)
Adding a test case for mixing {%- and %} tags together.
author
Mark Story
<mark@mark-story.com>
Wed, 23 Mar 2011 03:08:51 +0000 (23:08 -0400)
committer
Mark Story
<mark@mark-story.com>
Tue, 29 Mar 2011 02:12:59 +0000 (22:12 -0400)
test/Twig/Tests/Fixtures/tags/trim_block.test
patch
|
blob
|
history
diff --git
a/test/Twig/Tests/Fixtures/tags/trim_block.test
b/test/Twig/Tests/Fixtures/tags/trim_block.test
index
341a281
..
ccd5329
100644
(file)
--- a/
test/Twig/Tests/Fixtures/tags/trim_block.test
+++ b/
test/Twig/Tests/Fixtures/tags/trim_block.test
@@
-12,8
+12,14
@@
Whitespace trimming on tags.
<li>{{ trailing }}</li>
{%- endif -%}
</ul>
+
+ <ul>
+ {%- if mixed %}
+ <li>{{ mixed }}</li>
+ {% endif -%}
+ </ul>
--DATA--
-return array('string' => 'a value', 'trailing' => 'trailing tabs')
+return array('string' => 'a value', 'trailing' => 'trailing tabs', 'mixed' => 'mixed tags')
--EXPECT--
<ul>
<li>a value</li>
@@
-21,4
+27,8
@@
return array('string' => 'a value', 'trailing' => 'trailing tabs')
<ul>
<li>trailing tabs</li>
- </ul>
\ No newline at end of file
+ </ul>
+
+ <ul>
+ <li>mixed tags</li>
+ </ul>