Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.jet.tests.core/data/parser/v1/base/alternative.include.javajet')
-rw-r--r--tests/org.eclipse.jet.tests.core/data/parser/v1/base/alternative.include.javajet36
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/org.eclipse.jet.tests.core/data/parser/v1/base/alternative.include.javajet b/tests/org.eclipse.jet.tests.core/data/parser/v1/base/alternative.include.javajet
new file mode 100644
index 0000000..264a6bf
--- /dev/null
+++ b/tests/org.eclipse.jet.tests.core/data/parser/v1/base/alternative.include.javajet
@@ -0,0 +1,36 @@
+<%@jet class="Simple" package="org.eclipse.jet.tests.tools.tempates" %>
+--- before failing include with alternative >>>
+<%@include file="include1.fail.jetinc" fail="alternative"%>
+<%@start%>
+ Alternative text to include1.fail.jetinc
+ 2 + 4 = <%= 2 + 4 %>
+ <%@include file="include1.jetinc" fail="alternative"%>
+ <%@start%>
+ Fail alternative for include1.jetinc within fail alternative of include1.fail.jetinc
+ <%@end%>
+ <%@include file="include2.fail.jetinc" fail="alternative"%>
+ <%@start%>
+ Fail alternative for include2.fail.jetinc within fail alternative of include1.fail.jetinc
+ <%@end%>
+<%@end%>
+<<< after include ---
+
+--- before successful include with alternative >>>
+<%@include file="include1.jetinc" fail="alternative"%>
+<%@start%>
+ Alternative text to include1.jetinc - should not be processed
+ 7 + 3 = <%= 7 + 3 %>
+ <%@include file="include2.jetinc" fail="alternative"%>
+ <%@start%>
+ Fail alternative for include2.jetinc within fail alternative of include1.jetinc
+ <%@end%>
+ <%@include file="include2.fail.jetinc" fail="alternative"%>
+ <%@start%>
+ Fail alternative for include2.fail.jetinc within fail alternative of include1.jetinc
+ <%@end%>
+<%@end%>
+<<< after include ---
+
+--- before failing include with alternative >>>
+<%@include file="include1.fail.jetinc" fail="silent"%>
+<<< after include ---

Back to the top