-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: updates fixtures for loop variables
- Loading branch information
1 parent
a756542
commit 07ac19b
Showing
3 changed files
with
2 additions
and
8 deletions.
There are no files selected for viewing
5 changes: 1 addition & 4 deletions
5
test/__fixtures__/nodeRenderer/JspVariableNodeRenderer.expected.jsp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
moduleClass | ||
model.image.url.1x1 | ||
model[1] | ||
loop.count | ||
loop.isFirst | ||
loop.isLast | ||
model[1] |
3 changes: 0 additions & 3 deletions
3
test/__fixtures__/nodeRenderer/JspVariableNodeRenderer.input.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
{{ moduleClass }} | ||
{{ model.image.url.1x1 }} | ||
{{ model[1] }} | ||
{{ loop.length }} | ||
{{ loop.first }} | ||
{{ loop.last }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<%@ page contentType="text/html; charset=UTF-8" session="false" %><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%><%@ taglib prefix="entoj" uri="https://entoj.io/entoj"%><c:forEach var="item" items="${ model.items }" varStatus="loop">COPY</c:forEach> | ||
<c:forEach var="keyAndItem" items="${ model.items }" varStatus="loop"><c:set var="key" value="${ keyAndItem.key }" /><c:set var="item" value="${ keyAndItem.value }" />BREAKPOINT</c:forEach> | ||
<c:forEach var="item" items="${ model.items }" varStatus="loop">${ loop.count }${ loop.index }${ loop.isFirst }${ loop.isLast }</c:forEach> | ||
<c:forEach var="item" items="${ model.items }" varStatus="loop">${ loop.length }${ loop.index }${ loop.first }${ loop.last }</c:forEach> |