@@ -551,6 +551,9 @@ public void itSetsMultipleVarsDeferredInChildSecondPass() {
551551 expectedTemplateInterpreter .assertExpectedOutput (
552552 "sets-multiple-vars-deferred-in-child.expected"
553553 );
554+ expectedTemplateInterpreter .assertExpectedNonEagerOutput (
555+ "sets-multiple-vars-deferred-in-child.expected"
556+ );
554557 }
555558
556559 @ Test
@@ -657,6 +660,8 @@ public void itEagerlyDefersMacro() {
657660
658661 @ Test
659662 public void itEagerlyDefersMacroSecondPass () {
663+ localContext .put ("foo" , "I am foo" );
664+ localContext .put ("bar" , "I am bar" );
660665 localContext .put ("deferred" , true );
661666 expectedTemplateInterpreter .assertExpectedOutput ("eagerly-defers-macro.expected" );
662667 expectedTemplateInterpreter .assertExpectedNonEagerOutput (
@@ -801,6 +806,9 @@ public void itHandlesDeferredImportVarsSecondPass() {
801806 expectedTemplateInterpreter .assertExpectedOutput (
802807 "handles-deferred-import-vars.expected"
803808 );
809+ expectedTemplateInterpreter .assertExpectedNonEagerOutput (
810+ "handles-deferred-import-vars.expected"
811+ );
804812 }
805813
806814 @ Test
@@ -822,6 +830,9 @@ public void itHandlesDeferredFromImportAsSecondPass() {
822830 expectedTemplateInterpreter .assertExpectedOutput (
823831 "handles-deferred-from-import-as.expected"
824832 );
833+ expectedTemplateInterpreter .assertExpectedNonEagerOutput (
834+ "handles-deferred-from-import-as.expected"
835+ );
825836 }
826837
827838 @ Test
@@ -889,6 +900,9 @@ public void itHandlesDeferredInNamespaceSecondPass() {
889900 expectedTemplateInterpreter .assertExpectedOutput (
890901 "handles-deferred-in-namespace.expected"
891902 );
903+ expectedTemplateInterpreter .assertExpectedNonEagerOutput (
904+ "handles-deferred-in-namespace.expected"
905+ );
892906 }
893907
894908 @ Test
@@ -918,6 +932,9 @@ public void itHandlesBlockSetInDeferredIfSecondPass() {
918932 expectedTemplateInterpreter .assertExpectedOutput (
919933 "handles-block-set-in-deferred-if.expected"
920934 );
935+ expectedTemplateInterpreter .assertExpectedNonEagerOutput (
936+ "handles-block-set-in-deferred-if.expected"
937+ );
921938 }
922939
923940 @ Test
@@ -1001,6 +1018,9 @@ public void itHandlesDoubleImportModification() {
10011018 @ Test
10021019 public void itHandlesDoubleImportModificationSecondPass () {
10031020 interpreter .getContext ().put ("deferred" , false );
1021+ expectedTemplateInterpreter .assertExpectedOutput (
1022+ "handles-double-import-modification.expected"
1023+ );
10041024 expectedTemplateInterpreter .assertExpectedNonEagerOutput (
10051025 "handles-double-import-modification.expected"
10061026 );
@@ -1016,6 +1036,9 @@ public void itHandlesSameNameImportVar() {
10161036 @ Test
10171037 public void itHandlesSameNameImportVarSecondPass () {
10181038 interpreter .getContext ().put ("deferred" , "resolved" );
1039+ expectedTemplateInterpreter .assertExpectedOutput (
1040+ "handles-same-name-import-var.expected"
1041+ );
10191042 expectedTemplateInterpreter .assertExpectedNonEagerOutput (
10201043 "handles-same-name-import-var.expected"
10211044 );
@@ -1069,6 +1092,9 @@ public void itFullyDefersFilteredMacroSecondPass() {
10691092 expectedTemplateInterpreter .assertExpectedOutput (
10701093 "fully-defers-filtered-macro.expected"
10711094 );
1095+ expectedTemplateInterpreter .assertExpectedNonEagerOutput (
1096+ "fully-defers-filtered-macro.expected"
1097+ );
10721098 }
10731099
10741100 @ Test
@@ -1103,6 +1129,7 @@ public void itReconstructsMapNode() {
11031129 @ Test
11041130 public void itReconstructsMapNodeSecondPass () {
11051131 interpreter .getContext ().put ("deferred" , "resolved" );
1132+ expectedTemplateInterpreter .assertExpectedOutput ("reconstructs-map-node.expected" );
11061133 expectedTemplateInterpreter .assertExpectedNonEagerOutput (
11071134 "reconstructs-map-node.expected"
11081135 );
@@ -1123,6 +1150,9 @@ public void itDefersCallTagWithDeferredArgument() {
11231150 @ Test
11241151 public void itDefersCallTagWithDeferredArgumentSecondPass () {
11251152 interpreter .getContext ().put ("deferred" , "resolved" );
1153+ expectedTemplateInterpreter .assertExpectedOutput (
1154+ "defers-call-tag-with-deferred-argument.expected"
1155+ );
11261156 expectedTemplateInterpreter .assertExpectedNonEagerOutput (
11271157 "defers-call-tag-with-deferred-argument.expected"
11281158 );
@@ -1145,6 +1175,9 @@ public void itHandlesHigherScopeReferenceModification() {
11451175 @ Test
11461176 public void itHandlesHigherScopeReferenceModificationSecondPass () {
11471177 interpreter .getContext ().put ("deferred" , "b" );
1178+ expectedTemplateInterpreter .assertExpectedOutput (
1179+ "handles-higher-scope-reference-modification.expected"
1180+ );
11481181 expectedTemplateInterpreter .assertExpectedNonEagerOutput (
11491182 "handles-higher-scope-reference-modification.expected"
11501183 );
@@ -1181,6 +1214,9 @@ public void itDoesNotOverrideImportModificationInFor() {
11811214 @ Test
11821215 public void itDoesNotOverrideImportModificationInForSecondPass () {
11831216 interpreter .getContext ().put ("deferred" , "resolved" );
1217+ expectedTemplateInterpreter .assertExpectedOutput (
1218+ "does-not-override-import-modification-in-for.expected"
1219+ );
11841220 expectedTemplateInterpreter .assertExpectedNonEagerOutput (
11851221 "does-not-override-import-modification-in-for.expected"
11861222 );
@@ -1196,6 +1232,9 @@ public void itHandlesDeferredForLoopVarFromMacro() {
11961232 @ Test
11971233 public void itHandlesDeferredForLoopVarFromMacroSecondPass () {
11981234 interpreter .getContext ().put ("deferred" , "resolved" );
1235+ expectedTemplateInterpreter .assertExpectedOutput (
1236+ "handles-deferred-for-loop-var-from-macro.expected"
1237+ );
11991238 expectedTemplateInterpreter .assertExpectedNonEagerOutput (
12001239 "handles-deferred-for-loop-var-from-macro.expected"
12011240 );
@@ -1225,6 +1264,9 @@ public void itReconstructsNamespaceForSetTagsUsingPeriod() {
12251264 @ Test
12261265 public void itReconstructsNamespaceForSetTagsUsingPeriodSecondPass () {
12271266 interpreter .getContext ().put ("deferred" , "resolved" );
1267+ expectedTemplateInterpreter .assertExpectedOutput (
1268+ "reconstructs-namespace-for-set-tags-using-period.expected"
1269+ );
12281270 expectedTemplateInterpreter .assertExpectedNonEagerOutput (
12291271 "reconstructs-namespace-for-set-tags-using-period.expected"
12301272 );
@@ -1241,6 +1283,9 @@ public void itUsesUniqueMacroNames() {
12411283 public void itUsesUniqueMacroNamesSecondPass () {
12421284 interpreter .getContext ().put ("deferred" , "resolved" );
12431285 expectedTemplateInterpreter .assertExpectedOutput ("uses-unique-macro-names.expected" );
1286+ expectedTemplateInterpreter .assertExpectedNonEagerOutput (
1287+ "uses-unique-macro-names.expected"
1288+ );
12441289 }
12451290
12461291 @ Test
@@ -1298,6 +1343,9 @@ public void itKeepsMacroModificationsInScopeSecondPass() {
12981343 expectedTemplateInterpreter .assertExpectedOutput (
12991344 "keeps-macro-modifications-in-scope.expected"
13001345 );
1346+ expectedTemplateInterpreter .assertExpectedNonEagerOutput (
1347+ "keeps-macro-modifications-in-scope.expected"
1348+ );
13011349 }
13021350
13031351 @ Test
@@ -1310,6 +1358,9 @@ public void itDoesNotReconstructVariableInWrongScope() {
13101358 @ Test
13111359 public void itDoesNotReconstructVariableInWrongScopeSecondPass () {
13121360 interpreter .getContext ().put ("deferred" , true );
1361+ expectedTemplateInterpreter .assertExpectedOutput (
1362+ "does-not-reconstruct-variable-in-wrong-scope.expected"
1363+ );
13131364 expectedTemplateInterpreter .assertExpectedNonEagerOutput (
13141365 "does-not-reconstruct-variable-in-wrong-scope.expected"
13151366 );
@@ -1356,6 +1407,9 @@ public void itRreconstructsValueUsedInDeferredImportedMacroSecondPass() {
13561407 expectedTemplateInterpreter .assertExpectedOutput (
13571408 "reconstructs-value-used-in-deferred-imported-macro.expected"
13581409 );
1410+ expectedTemplateInterpreter .assertExpectedNonEagerOutput (
1411+ "reconstructs-value-used-in-deferred-imported-macro.expected"
1412+ );
13591413 }
13601414
13611415 @ Test
@@ -1371,6 +1425,9 @@ public void itAllowsDeferredLazyReferenceToGetOverriddenSecondPass() {
13711425 expectedTemplateInterpreter .assertExpectedOutput (
13721426 "allows-deferred-lazy-reference-to-get-overridden.expected"
13731427 );
1428+ expectedTemplateInterpreter .assertExpectedNonEagerOutput (
1429+ "allows-deferred-lazy-reference-to-get-overridden.expected"
1430+ );
13741431 }
13751432
13761433 @ Test
@@ -1411,6 +1468,9 @@ public void itReconstructsNestedValueInStringRepresentationSecondPass() {
14111468 expectedTemplateInterpreter .assertExpectedOutput (
14121469 "reconstructs-nested-value-in-string-representation.expected"
14131470 );
1471+ expectedTemplateInterpreter .assertExpectedNonEagerOutput (
1472+ "reconstructs-nested-value-in-string-representation.expected"
1473+ );
14141474 }
14151475
14161476 @ Test
@@ -1425,6 +1485,9 @@ public void itDefersLoopSettingMetaContextVar() {
14251485 public void itDefersLoopSettingMetaContextVarSecondPass () {
14261486 interpreter .getContext ().put ("deferred" , "resolved" );
14271487 interpreter .getContext ().getMetaContextVariables ().add ("content" );
1488+ expectedTemplateInterpreter .assertExpectedOutput (
1489+ "defers-loop-setting-meta-context-var.expected"
1490+ );
14281491 expectedTemplateInterpreter .assertExpectedNonEagerOutput (
14291492 "defers-loop-setting-meta-context-var.expected"
14301493 );
0 commit comments