Skip to content

Commit

Permalink
test: updates fixtures for loop variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianAuth committed Sep 19, 2017
1 parent a756542 commit 07ac19b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
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]
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 }}
2 changes: 1 addition & 1 deletion test/__fixtures__/renderer/loops.expected.html
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>

0 comments on commit 07ac19b

Please sign in to comment.