-
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.
Merge pull request #45 from EvoEsports/bugfix/data-context-missing
Fix properties are not passed to slot render methods
- Loading branch information
Showing
8 changed files
with
147 additions
and
37 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
17 changes: 17 additions & 0 deletions
17
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<manialink version="3" id="MtPropertyTest" name="EvoSC#-MtPropertyTest"> | ||
<frame size="15 11"> | ||
<label size="15 3" text="integrationtest" /> | ||
</frame> | ||
<frame size="15 11"> | ||
<label size="15 3" text="integrationintegration" /> | ||
</frame> | ||
<frame size="15 11"> | ||
<label size="15 3" text="test" /> | ||
</frame> | ||
<label text="integration" /> | ||
<frame size="123 11"> | ||
<frame size="77 11"> | ||
<label text="integration" /> | ||
</frame> | ||
</frame> | ||
</manialink> |
12 changes: 12 additions & 0 deletions
12
tests/ManiaTemplates.Tests/IntegrationTests/templates/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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<component> | ||
<import component="Wrapper" as="Wrapper" /> | ||
|
||
<property type="string" name="text" default="" /> | ||
<property type="double" name="width" default="15" /> | ||
|
||
<template> | ||
<Wrapper width="{{ width }}"> | ||
<label size="{{ width }} 3" text="{{ text }}" /> | ||
</Wrapper> | ||
</template> | ||
</component> |
18 changes: 18 additions & 0 deletions
18
tests/ManiaTemplates.Tests/IntegrationTests/templates/property-test.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<component> | ||
<import component="TestComponent" as="TestComponent" /> | ||
<import component="Wrapper" as="Wrapper" /> | ||
|
||
<property type="string" name="testVariable" /> | ||
|
||
<template> | ||
<TestComponent text="{{ testVariable }}test" /> | ||
<TestComponent text="{{ testVariable }}{{ testVariable }}" /> | ||
<TestComponent text="test" /> | ||
<label text="{{ testVariable }}" /> | ||
<Wrapper width="{{ 123.0 }}"> | ||
<Wrapper width="{{ 77.0 }}"> | ||
<label text="{{ testVariable }}" /> | ||
</Wrapper> | ||
</Wrapper> | ||
</template> | ||
</component> |
9 changes: 9 additions & 0 deletions
9
tests/ManiaTemplates.Tests/IntegrationTests/templates/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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<component> | ||
<property type="double" name="width" default="20" /> | ||
|
||
<template> | ||
<frame size="{{ width }} 11"> | ||
<slot /> | ||
</frame> | ||
</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
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