diff options
Diffstat (limited to 'velocity-engine-core/src/test/resources/gobbling/compare')
40 files changed, 1011 insertions, 0 deletions
diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/foreach_empty.vtl.BC b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_empty.vtl.BC new file mode 100644 index 00000000..77499bfa --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_empty.vtl.BC @@ -0,0 +1,14 @@ + empty + +~~~~ empty ~~~~ + +<table> + <tbody> + <tr> + <td> + nobody + </td> + </tr> + </tbody> +</table> + diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/foreach_empty.vtl.LINES b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_empty.vtl.LINES new file mode 100644 index 00000000..3a233d91 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_empty.vtl.LINES @@ -0,0 +1,14 @@ + empty + +~~~~ empty ~~~~ + +<table> + <tbody> + <tr> + <td> + nobody + </td> + </tr> + </tbody> +</table> + diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/foreach_empty.vtl.NONE b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_empty.vtl.NONE new file mode 100644 index 00000000..fde55f4d --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_empty.vtl.NONE @@ -0,0 +1,20 @@ + + empty + + +~~~~ empty ~~~~ + +<table> + <tbody> + + <tr> + + <td> + nobody + </td> + + </tr> + + </tbody> +</table> + diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/foreach_empty.vtl.STRUCTURED b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_empty.vtl.STRUCTURED new file mode 100644 index 00000000..84dc126e --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_empty.vtl.STRUCTURED @@ -0,0 +1,14 @@ + empty + +~~~~ empty ~~~~ + +<table> + <tbody> +<tr> + <td> +nobody + </td> +</tr> + </tbody> +</table> + diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/foreach_smart.vtl.BC b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_smart.vtl.BC new file mode 100644 index 00000000..6a46ff9d --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_smart.vtl.BC @@ -0,0 +1,20 @@ +<table> + <tbody> + <tr> + <td> + first cell + </td> + <td> + middle cell + </td> + </tr> + <tr> + <td> + middle cell + </td> + <td> + middle cell + </td> + </tr> + </tbody> +</table> diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/foreach_smart.vtl.LINES b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_smart.vtl.LINES new file mode 100644 index 00000000..4a1186bb --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_smart.vtl.LINES @@ -0,0 +1,20 @@ +<table> + <tbody> + <tr> + <td> + first cell + </td> + <td> + middle cell + </td> + </tr> + <tr> + <td> + middle cell + </td> + <td> + middle cell + </td> + </tr> + </tbody> +</table> diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/foreach_smart.vtl.NONE b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_smart.vtl.NONE new file mode 100644 index 00000000..47800f57 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_smart.vtl.NONE @@ -0,0 +1,37 @@ +<table> + <tbody> + + <tr> + + <td> + + first cell + + </td> + + <td> + + middle cell + + </td> + + </tr> + + <tr> + + <td> + + middle cell + + </td> + + <td> + + middle cell + + </td> + + </tr> + + </tbody> +</table> diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/foreach_smart.vtl.STRUCTURED b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_smart.vtl.STRUCTURED new file mode 100644 index 00000000..2a223af4 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_smart.vtl.STRUCTURED @@ -0,0 +1,20 @@ +<table> + <tbody> +<tr> + <td> +first cell + </td> + <td> +middle cell + </td> +</tr> +<tr> + <td> +middle cell + </td> + <td> +middle cell + </td> +</tr> + </tbody> +</table> diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/foreach_structured.vtl.BC b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_structured.vtl.BC new file mode 100644 index 00000000..9d5c7daa --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_structured.vtl.BC @@ -0,0 +1,20 @@ +<table> + <tbody> + <tr> + <td> + first cell + </td> + <td> + middle cell + </td> + </tr> + <tr> + <td> + middle cell + </td> + <td> + middle cell + </td> + </tr> + </tbody> +</table> diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/foreach_structured.vtl.LINES b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_structured.vtl.LINES new file mode 100644 index 00000000..d8acef9e --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_structured.vtl.LINES @@ -0,0 +1,20 @@ +<table> + <tbody> + <tr> + <td> + first cell + </td> + <td> + middle cell + </td> + </tr> + <tr> + <td> + middle cell + </td> + <td> + middle cell + </td> + </tr> + </tbody> +</table> diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/foreach_structured.vtl.NONE b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_structured.vtl.NONE new file mode 100644 index 00000000..c3d6749d --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_structured.vtl.NONE @@ -0,0 +1,37 @@ +<table> + <tbody> + + <tr> + + <td> + + first cell + + </td> + + <td> + + middle cell + + </td> + + </tr> + + <tr> + + <td> + + middle cell + + </td> + + <td> + + middle cell + + </td> + + </tr> + + </tbody> +</table> diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/foreach_structured.vtl.STRUCTURED b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_structured.vtl.STRUCTURED new file mode 100644 index 00000000..4a1186bb --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/foreach_structured.vtl.STRUCTURED @@ -0,0 +1,20 @@ +<table> + <tbody> + <tr> + <td> + first cell + </td> + <td> + middle cell + </td> + </tr> + <tr> + <td> + middle cell + </td> + <td> + middle cell + </td> + </tr> + </tbody> +</table> diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/if.vtl.BC b/velocity-engine-core/src/test/resources/gobbling/compare/if.vtl.BC new file mode 100644 index 00000000..1dffcd61 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/if.vtl.BC @@ -0,0 +1,60 @@ +y yyy + y + y + y + y + z + z + z + z + z + z + z + z + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + + y + y + y + y + z + z + z + z + z + z + z + z + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + +line1 foo line2 diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/if.vtl.LINES b/velocity-engine-core/src/test/resources/gobbling/compare/if.vtl.LINES new file mode 100644 index 00000000..ebd065cb --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/if.vtl.LINES @@ -0,0 +1,61 @@ +y yyy + y + y + y + y + z + z + z + z + z + z + z + z + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + + y + y + y + y + z + z + z + z + z + z + z + z + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + +line1 foo +line2 diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/if.vtl.NONE b/velocity-engine-core/src/test/resources/gobbling/compare/if.vtl.NONE new file mode 100644 index 00000000..cfc96874 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/if.vtl.NONE @@ -0,0 +1,243 @@ + + +y + y +y +y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + y + + + y + + + y + + + y + + + + + + + z + + + z + + + z + + + z + + + z + + + z + + + z + + + z + + + + + + + + + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + + + + y + + + y + + + y + + + y + + + + + + + z + + + z + + + z + + + z + + + z + + + z + + + z + + + z + + + + + + + + + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + + t + + +line1 foo +line2 diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/if.vtl.STRUCTURED b/velocity-engine-core/src/test/resources/gobbling/compare/if.vtl.STRUCTURED new file mode 100644 index 00000000..66e3c349 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/if.vtl.STRUCTURED @@ -0,0 +1,61 @@ +y yyy +y +y +y +y +z +z +z +z +z +z +z +z +t +t +t +t +t +t +t +t +t +t +t +t +t +t +t +t + + y + y + y + y + z + z + z + z + z + z + z + z + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + +line1 foo +line2 diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/macro.vtl.BC b/velocity-engine-core/src/test/resources/gobbling/compare/macro.vtl.BC new file mode 100644 index 00000000..228a3c78 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/macro.vtl.BC @@ -0,0 +1,20 @@ + + + + + +<a> + <b> + line1 line2 line3 + line4 + block foo + </b> +</a> + +<a> + <b> + line1 line2 line3 + line4 + block foo + </b> +</a> diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/macro.vtl.LINES b/velocity-engine-core/src/test/resources/gobbling/compare/macro.vtl.LINES new file mode 100644 index 00000000..611be323 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/macro.vtl.LINES @@ -0,0 +1,20 @@ + + + + + +<a> + <b> +line1line2line3 +line4 +block foo + </b> +</a> + +<a> + <b> +line1line2line3 +line4 +block foo + </b> +</a> diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/macro.vtl.NONE b/velocity-engine-core/src/test/resources/gobbling/compare/macro.vtl.NONE new file mode 100644 index 00000000..53d42e98 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/macro.vtl.NONE @@ -0,0 +1,45 @@ + + + + + + + + + + +<a> + <b> + + line1 + +line2 + line3 + + +line4 + + +block foo + + + </b> +</a> + +<a> + <b> + + line1 + +line2 + line3 + + +line4 + + +block foo + + + </b> +</a> diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/macro.vtl.STRUCTURED b/velocity-engine-core/src/test/resources/gobbling/compare/macro.vtl.STRUCTURED new file mode 100644 index 00000000..611be323 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/macro.vtl.STRUCTURED @@ -0,0 +1,20 @@ + + + + + +<a> + <b> +line1line2line3 +line4 +block foo + </b> +</a> + +<a> + <b> +line1line2line3 +line4 +block foo + </b> +</a> diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/macro2.vtl.BC b/velocity-engine-core/src/test/resources/gobbling/compare/macro2.vtl.BC new file mode 100644 index 00000000..b9dd4b84 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/macro2.vtl.BC @@ -0,0 +1,6 @@ +----- +value +----- + +----- +value----- diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/macro2.vtl.LINES b/velocity-engine-core/src/test/resources/gobbling/compare/macro2.vtl.LINES new file mode 100644 index 00000000..856047a4 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/macro2.vtl.LINES @@ -0,0 +1,5 @@ +----- +value----- + +----- +value----- diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/macro2.vtl.NONE b/velocity-engine-core/src/test/resources/gobbling/compare/macro2.vtl.NONE new file mode 100644 index 00000000..e66cde7a --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/macro2.vtl.NONE @@ -0,0 +1,8 @@ + +----- +value +----- + +----- +value +----- diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/macro2.vtl.STRUCTURED b/velocity-engine-core/src/test/resources/gobbling/compare/macro2.vtl.STRUCTURED new file mode 100644 index 00000000..856047a4 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/macro2.vtl.STRUCTURED @@ -0,0 +1,5 @@ +----- +value----- + +----- +value----- diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/set.vtl.BC b/velocity-engine-core/src/test/resources/gobbling/compare/set.vtl.BC new file mode 100644 index 00000000..b145fc57 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/set.vtl.BC @@ -0,0 +1,3 @@ + postfix + postfix +prefix prefix postfix diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/set.vtl.LINES b/velocity-engine-core/src/test/resources/gobbling/compare/set.vtl.LINES new file mode 100644 index 00000000..af63dd07 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/set.vtl.LINES @@ -0,0 +1,4 @@ + postfix + postfix +prefix +prefix postfix diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/set.vtl.NONE b/velocity-engine-core/src/test/resources/gobbling/compare/set.vtl.NONE new file mode 100644 index 00000000..790084ee --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/set.vtl.NONE @@ -0,0 +1,6 @@ + + + postfix + postfix +prefix +prefix postfix diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/set.vtl.STRUCTURED b/velocity-engine-core/src/test/resources/gobbling/compare/set.vtl.STRUCTURED new file mode 100644 index 00000000..af63dd07 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/set.vtl.STRUCTURED @@ -0,0 +1,4 @@ + postfix + postfix +prefix +prefix postfix diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/structured.vtl.BC b/velocity-engine-core/src/test/resources/gobbling/compare/structured.vtl.BC new file mode 100644 index 00000000..0de05107 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/structured.vtl.BC @@ -0,0 +1,7 @@ +<table> + <tr> + <td> + blabla + </td> + </tr> + </table> diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/structured.vtl.LINES b/velocity-engine-core/src/test/resources/gobbling/compare/structured.vtl.LINES new file mode 100644 index 00000000..2fec8562 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/structured.vtl.LINES @@ -0,0 +1,7 @@ +<table> + <tr> + <td> + blabla + </td> + </tr> +</table> diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/structured.vtl.NONE b/velocity-engine-core/src/test/resources/gobbling/compare/structured.vtl.NONE new file mode 100644 index 00000000..d305dcee --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/structured.vtl.NONE @@ -0,0 +1,11 @@ +<table> + + <tr> + + <td> + blabla + </td> + + </tr> + +</table> diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/structured.vtl.STRUCTURED b/velocity-engine-core/src/test/resources/gobbling/compare/structured.vtl.STRUCTURED new file mode 100644 index 00000000..1e48ceb9 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/structured.vtl.STRUCTURED @@ -0,0 +1,7 @@ +<table> + <tr> + <td> + blabla + </td> + </tr> +</table> diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/ugly1.vtl.BC b/velocity-engine-core/src/test/resources/gobbling/compare/ugly1.vtl.BC new file mode 100644 index 00000000..81618918 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/ugly1.vtl.BC @@ -0,0 +1,18 @@ +--- + $ + # + $$foo$ + $$foo# + $#foo + $#foo$ + $#foo# + $#foo + #$foo$ + #$foo# + #$foo + $#foo()$ + $#foo()# + $#@foo()hop#end$ + $#@foo()hop#end# + $#@foo()hop#end +--- diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/ugly1.vtl.LINES b/velocity-engine-core/src/test/resources/gobbling/compare/ugly1.vtl.LINES new file mode 100644 index 00000000..81618918 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/ugly1.vtl.LINES @@ -0,0 +1,18 @@ +--- + $ + # + $$foo$ + $$foo# + $#foo + $#foo$ + $#foo# + $#foo + #$foo$ + #$foo# + #$foo + $#foo()$ + $#foo()# + $#@foo()hop#end$ + $#@foo()hop#end# + $#@foo()hop#end +--- diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/ugly1.vtl.NONE b/velocity-engine-core/src/test/resources/gobbling/compare/ugly1.vtl.NONE new file mode 100644 index 00000000..81618918 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/ugly1.vtl.NONE @@ -0,0 +1,18 @@ +--- + $ + # + $$foo$ + $$foo# + $#foo + $#foo$ + $#foo# + $#foo + #$foo$ + #$foo# + #$foo + $#foo()$ + $#foo()# + $#@foo()hop#end$ + $#@foo()hop#end# + $#@foo()hop#end +--- diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/ugly1.vtl.STRUCTURED b/velocity-engine-core/src/test/resources/gobbling/compare/ugly1.vtl.STRUCTURED new file mode 100644 index 00000000..81618918 --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/ugly1.vtl.STRUCTURED @@ -0,0 +1,18 @@ +--- + $ + # + $$foo$ + $$foo# + $#foo + $#foo$ + $#foo# + $#foo + #$foo$ + #$foo# + #$foo + $#foo()$ + $#foo()# + $#@foo()hop#end$ + $#@foo()hop#end# + $#@foo()hop#end +--- diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/ugly2.vtl.BC b/velocity-engine-core/src/test/resources/gobbling/compare/ugly2.vtl.BC new file mode 100644 index 00000000..43fd698f --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/ugly2.vtl.BC @@ -0,0 +1,20 @@ +$$ +$$ +$true$$ +$true$$ +--- + $ + # + $bar$ + $bar# + $bar + $bar$ + $bar# + $bar + #bar$ + #bar# + #bar + $bar$ + $bar# + $bar +--- diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/ugly2.vtl.LINES b/velocity-engine-core/src/test/resources/gobbling/compare/ugly2.vtl.LINES new file mode 100644 index 00000000..43fd698f --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/ugly2.vtl.LINES @@ -0,0 +1,20 @@ +$$ +$$ +$true$$ +$true$$ +--- + $ + # + $bar$ + $bar# + $bar + $bar$ + $bar# + $bar + #bar$ + #bar# + #bar + $bar$ + $bar# + $bar +--- diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/ugly2.vtl.NONE b/velocity-engine-core/src/test/resources/gobbling/compare/ugly2.vtl.NONE new file mode 100644 index 00000000..43fd698f --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/ugly2.vtl.NONE @@ -0,0 +1,20 @@ +$$ +$$ +$true$$ +$true$$ +--- + $ + # + $bar$ + $bar# + $bar + $bar$ + $bar# + $bar + #bar$ + #bar# + #bar + $bar$ + $bar# + $bar +--- diff --git a/velocity-engine-core/src/test/resources/gobbling/compare/ugly2.vtl.STRUCTURED b/velocity-engine-core/src/test/resources/gobbling/compare/ugly2.vtl.STRUCTURED new file mode 100644 index 00000000..43fd698f --- /dev/null +++ b/velocity-engine-core/src/test/resources/gobbling/compare/ugly2.vtl.STRUCTURED @@ -0,0 +1,20 @@ +$$ +$$ +$true$$ +$true$$ +--- + $ + # + $bar$ + $bar# + $bar + $bar$ + $bar# + $bar + #bar$ + #bar# + #bar + $bar$ + $bar# + $bar +--- |