-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add use local variables for fallthrough arguments
- Add component node names to render method names
- Loading branch information
Showing
9 changed files
with
85 additions
and
49 deletions.
There are no files selected for viewing
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
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
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
4 changes: 4 additions & 0 deletions
4
tests/ManiaTemplates.Tests/IntegrationTests/expected/fallthrough-multi-child.xml
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,4 +1,8 @@ | ||
<manialink version="3" id="MtFallthroughWrapper" name="EvoSC#-MtFallthroughWrapper"> | ||
<label text="negative" /> | ||
<label text="negative" /> | ||
<label text="negative" /> | ||
<label text="negative" /> | ||
<label text="negative" /> | ||
<label text="negative" /> | ||
</manialink> |
4 changes: 3 additions & 1 deletion
4
tests/ManiaTemplates.Tests/IntegrationTests/expected/fallthrough.xml
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,5 @@ | ||
<manialink version="3" id="MtFallthroughWrapper" name="EvoSC#-MtFallthroughWrapper"> | ||
<label text="test" data-test="unit" /> | ||
<label text="test" i="1" data-index="1" data-test="unit" /> | ||
<label text="test" i="2" data-index="2" data-test="unit" /> | ||
<label text="test" i="3" data-index="3" data-test="unit" /> | ||
</manialink> |
10 changes: 5 additions & 5 deletions
10
tests/ManiaTemplates.Tests/IntegrationTests/expected/property-test.xml
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
5 changes: 4 additions & 1 deletion
5
tests/ManiaTemplates.Tests/IntegrationTests/templates/fallthrough-component.mt
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,5 +1,8 @@ | ||
<component> | ||
<property type="int" name="index" default="-2" /> | ||
<property type="int" name="i" default="-2" /> | ||
|
||
<template> | ||
<label text="test" /> | ||
<label text="test" i="{{ i }}" /> | ||
</template> | ||
</component> |
5 changes: 4 additions & 1 deletion
5
tests/ManiaTemplates.Tests/IntegrationTests/templates/fallthrough-wrapper.mt
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,7 +1,10 @@ | ||
<component> | ||
<using namespace="System.Linq" /> | ||
<import component="FallthroughComponent" as="FallthroughComponent"/> | ||
<property type="string" name="testString" /> | ||
<property type="int" name="index" /> | ||
|
||
<template> | ||
<FallthroughComponent data-test="unit"/> | ||
<FallthroughComponent foreach="int i in Enumerable.Range(1, 3)" data-index="{{ i }}" index="{{ i * 10 }}" data-test="unit"/> | ||
</template> | ||
</component> |
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