-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IDEA] More integration tests for Blazor renderer (#48)
* Create draft PR for #47 * Added tests for each layouts and groups. --------- Co-authored-by: Brano5 <[email protected]> Co-authored-by: Branko Zachemsky <[email protected]>
- Loading branch information
1 parent
2227806
commit 83e5227
Showing
22 changed files
with
717 additions
and
2 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...x.blazor/tests/sandbox/Ix.RenderableContent.Tests/HtmlFiles/stTestLayoutsBorderStack.html
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,16 @@ | ||
<div name="testingProgram-testLayouts-test_border_stack"> | ||
<div name="Border" class="card w-100 p-2"> | ||
<div name="StackPanel" class="content p-3"> | ||
<div name="testingProgram-testLayouts-test_border_stack-testInteger" class="w-100 form-group mb-2"> | ||
<label for:ignore="testInteger_9e255f3f-0a42-4799-b4cf-756fab69285a">Test Integer</label> | ||
<input id:ignore="testInteger_9e255f3f-0a42-4799-b4cf-756fab69285a" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value="0"> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
<div name="testingProgram-testLayouts-test_border_stack-testString" class="w-100 form-group mb-2"> | ||
<label for:ignore="testString_23a34658-fd66-4a6a-8bf9-c05dda56525c">Test String</label> | ||
<input id:ignore="testString_23a34658-fd66-4a6a-8bf9-c05dda56525c" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value=""> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
25 changes: 25 additions & 0 deletions
25
...ix.blazor/tests/sandbox/Ix.RenderableContent.Tests/HtmlFiles/stTestLayoutsBorderTabs.html
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,25 @@ | ||
<div name="testingProgram-testLayouts-test_border_tabs"> | ||
<div name="Border" class="card w-100 p-2"> | ||
<div name="TabControl" class="w-100 "> | ||
<ul class="nav nav-tabs mb-3"> | ||
<li class="nav-item"> | ||
<button type="button" class="nav-link active"> | ||
<b>Test Integer</b> | ||
</button> | ||
</li> | ||
<li class="nav-item"> | ||
<button type="button" class="nav-link"> | ||
<b>Test String</b> | ||
</button> | ||
</li> | ||
</ul> | ||
<div class="content"> | ||
<div name="testingProgram-testLayouts-test_border_tabs-testInteger" class="w-100 form-group mb-2"> | ||
<label for:ignore="testInteger_50fc8a66-501a-469e-83a9-fbff305024b6">Test Integer</label> | ||
<input id:ignore="testInteger_50fc8a66-501a-469e-83a9-fbff305024b6" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value="0"> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
20 changes: 20 additions & 0 deletions
20
...or/tests/sandbox/Ix.RenderableContent.Tests/HtmlFiles/stTestLayoutsBorderUniformGrid.html
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,20 @@ | ||
<div name="testingProgram-testLayouts-test_border_uniformGrid"> | ||
<div name="Border" class="card w-100 p-2"> | ||
<div name="UniformGrid" class="d-flex flex-nowrap w-100"> | ||
<div class="p-2" style=" flex: 1;"> | ||
<div name="testingProgram-testLayouts-test_border_uniformGrid-testInteger" class="w-100 form-group mb-2"> | ||
<label for:ignore="testInteger_fdaf17ad-7eae-4c97-992a-f4e08ed020c2">Test Integer</label> | ||
<input id:ignore="testInteger_fdaf17ad-7eae-4c97-992a-f4e08ed020c2" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value="0"> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
</div> | ||
<div class="p-2" style=" flex: 1;"> | ||
<div name="testingProgram-testLayouts-test_border_uniformGrid-testString" class="w-100 form-group mb-2"> | ||
<label for:ignore="testString_8d74412b-1d67-4a0a-87f0-8f771a7e1de5">Test String</label> | ||
<input id:ignore="testString_8d74412b-1d67-4a0a-87f0-8f771a7e1de5" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value=""> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
20 changes: 20 additions & 0 deletions
20
...ix.blazor/tests/sandbox/Ix.RenderableContent.Tests/HtmlFiles/stTestLayoutsBorderWrap.html
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,20 @@ | ||
<div name="testingProgram-testLayouts-test_border_wrap"> | ||
<div name="Border" class="card w-100 p-2"> | ||
<div name="WrapPanel" class="d-flex flex-wrap"> | ||
<div class="p-2"> | ||
<div name="testingProgram-testLayouts-test_border_wrap-testInteger" class="w-100 form-group mb-2"> | ||
<label for:ignore="testInteger_ce87853e-88e3-4b4a-824a-80f1a2f85454">Test Integer</label> | ||
<input id:ignore="testInteger_ce87853e-88e3-4b4a-824a-80f1a2f85454" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value="0"> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
</div> | ||
<div class="p-2"> | ||
<div name="testingProgram-testLayouts-test_border_wrap-testString" class="w-100 form-group mb-2"> | ||
<label for:ignore="testString_0089ce3f-2013-479d-b3b6-952017e4f6d2">Test String</label> | ||
<input id:ignore="testString_0089ce3f-2013-479d-b3b6-952017e4f6d2" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value=""> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
17 changes: 17 additions & 0 deletions
17
...blazor/tests/sandbox/Ix.RenderableContent.Tests/HtmlFiles/stTestLayoutsGroupBoxStack.html
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 @@ | ||
<div name="testingProgram-testLayouts-test_groupbox_stack"> | ||
<div name="GroupBox" class="card w-100 p-2"> | ||
<span style="font-weight: bold; padding-bottom:2px;">test_groupbox_stack</span> | ||
<div name="StackPanel" class="content p-3"> | ||
<div name="testingProgram-testLayouts-test_groupbox_stack-testInteger" class="w-100 form-group mb-2"> | ||
<label for:ignore="testInteger_6a6fa2c8-77cf-46c7-837f-c2516f9677c6">Test Integer</label> | ||
<input id:ignore="testInteger_6a6fa2c8-77cf-46c7-837f-c2516f9677c6" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value="0"> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
<div name="testingProgram-testLayouts-test_groupbox_stack-testString" class="w-100 form-group mb-2"> | ||
<label for:ignore="testString_181b7645-9cb7-4afc-bcd0-f99b535dc5d7">Test String</label> | ||
<input id:ignore="testString_181b7645-9cb7-4afc-bcd0-f99b535dc5d7" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value=""> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
26 changes: 26 additions & 0 deletions
26
....blazor/tests/sandbox/Ix.RenderableContent.Tests/HtmlFiles/stTestLayoutsGroupBoxTabs.html
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,26 @@ | ||
<div name="testingProgram-testLayouts-test_groupbox_tabs"> | ||
<div name="GroupBox" class="card w-100 p-2"> | ||
<span style="font-weight: bold; padding-bottom:2px;">test_groupbox_tabs</span> | ||
<div name="TabControl" class="w-100 "> | ||
<ul class="nav nav-tabs mb-3"> | ||
<li class="nav-item"> | ||
<button type="button" class="nav-link active"> | ||
<b>Test Integer</b> | ||
</button> | ||
</li> | ||
<li class="nav-item"> | ||
<button type="button" class="nav-link"> | ||
<b>Test String</b> | ||
</button> | ||
</li> | ||
</ul> | ||
<div class="content"> | ||
<div name="testingProgram-testLayouts-test_groupbox_tabs-testInteger" class="w-100 form-group mb-2"> | ||
<label for:ignore="testInteger_e4a2b7b6-bfcd-429f-92eb-ec7d3e1f5ccd">Test Integer</label> | ||
<input id:ignore="testInteger_e4a2b7b6-bfcd-429f-92eb-ec7d3e1f5ccd" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value="0"> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
21 changes: 21 additions & 0 deletions
21
.../tests/sandbox/Ix.RenderableContent.Tests/HtmlFiles/stTestLayoutsGroupBoxUniformGrid.html
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,21 @@ | ||
<div name="testingProgram-testLayouts-test_groupbox_uniformGrid"> | ||
<div name="GroupBox" class="card w-100 p-2"> | ||
<span style="font-weight: bold; padding-bottom:2px;">test_groupbox_uniformGrid</span> | ||
<div name="UniformGrid" class="d-flex flex-nowrap w-100"> | ||
<div class="p-2" style=" flex: 1;"> | ||
<div name="testingProgram-testLayouts-test_groupbox_uniformGrid-testInteger" class="w-100 form-group mb-2"> | ||
<label for:ignore="testInteger_bee7bc35-6cc3-4e48-b899-2a4ca30c637a">Test Integer</label> | ||
<input id:ignore="testInteger_bee7bc35-6cc3-4e48-b899-2a4ca30c637a" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value="0"> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
</div> | ||
<div class="p-2" style=" flex: 1;"> | ||
<div name="testingProgram-testLayouts-test_groupbox_uniformGrid-testString" class="w-100 form-group mb-2"> | ||
<label for:ignore="testString_0b5ae5d9-5ae2-457c-bd34-7fc1eb5d8145">Test String</label> | ||
<input id:ignore="testString_0b5ae5d9-5ae2-457c-bd34-7fc1eb5d8145" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value=""> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
21 changes: 21 additions & 0 deletions
21
....blazor/tests/sandbox/Ix.RenderableContent.Tests/HtmlFiles/stTestLayoutsGroupBoxWrap.html
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,21 @@ | ||
<div name="testingProgram-testLayouts-test_groupbox_wrap"> | ||
<div name="GroupBox" class="card w-100 p-2"> | ||
<span style="font-weight: bold; padding-bottom:2px;">test_groupbox_wrap</span> | ||
<div name="WrapPanel" class="d-flex flex-wrap"> | ||
<div class="p-2"> | ||
<div name="testingProgram-testLayouts-test_groupbox_wrap-testInteger" class="w-100 form-group mb-2"> | ||
<label for:ignore="testInteger_d7734a79-2543-46aa-97b0-35e6e60d85ed">Test Integer</label> | ||
<input id:ignore="testInteger_d7734a79-2543-46aa-97b0-35e6e60d85ed" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value="0"> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
</div> | ||
<div class="p-2"> | ||
<div name="testingProgram-testLayouts-test_groupbox_wrap-testString" class="w-100 form-group mb-2"> | ||
<label for:ignore="testString_76835e9b-ef42-49d4-88f1-954325b18b1b">Test String</label> | ||
<input id:ignore="testString_76835e9b-ef42-49d4-88f1-954325b18b1b" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value=""> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
14 changes: 14 additions & 0 deletions
14
src/ix.blazor/tests/sandbox/Ix.RenderableContent.Tests/HtmlFiles/stTestLayoutsStack.html
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,14 @@ | ||
<div name="testingProgram-testLayouts-test_stack"> | ||
<div name="StackPanel" class="content p-3"> | ||
<div name="testingProgram-testLayouts-test_stack-testInteger" class="w-100 form-group mb-2"> | ||
<label for:ignore="testInteger_7bd302db-cf58-4504-90db-30ed9ac66263">Test Integer</label> | ||
<input id:ignore="testInteger_7bd302db-cf58-4504-90db-30ed9ac66263" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value="0"> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
<div name="testingProgram-testLayouts-test_stack-testString" class="w-100 form-group mb-2"> | ||
<label for:ignore="testString_8d7d8e51-a191-4f20-84c7-b5abaa97a22d">Test String</label> | ||
<input id:ignore="testString_8d7d8e51-a191-4f20-84c7-b5abaa97a22d" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value=""> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
</div> | ||
</div> |
23 changes: 23 additions & 0 deletions
23
src/ix.blazor/tests/sandbox/Ix.RenderableContent.Tests/HtmlFiles/stTestLayoutsTabs.html
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,23 @@ | ||
<div name="testingProgram-testLayouts-test_tabs"> | ||
<div name="TabControl" class="w-100 "> | ||
<ul class="nav nav-tabs mb-3"> | ||
<li class="nav-item"> | ||
<button type="button" class="nav-link active"> | ||
<b>Test Integer</b> | ||
</button> | ||
</li> | ||
<li class="nav-item"> | ||
<button type="button" class="nav-link"> | ||
<b>Test String</b> | ||
</button> | ||
</li> | ||
</ul> | ||
<div class="content"> | ||
<div name="testingProgram-testLayouts-test_tabs-testInteger" class="w-100 form-group mb-2"> | ||
<label for:ignore="testInteger_95ac2b74-8cc7-418e-8d92-bc57d92f2a57">Test Integer</label> | ||
<input id:ignore="testInteger_95ac2b74-8cc7-418e-8d92-bc57d92f2a57" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value="0"> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
18 changes: 18 additions & 0 deletions
18
src/ix.blazor/tests/sandbox/Ix.RenderableContent.Tests/HtmlFiles/stTestLayoutsUniform.html
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 @@ | ||
<div name="testingProgram-testLayouts-test_uniform"> | ||
<div name="UniformGrid" class="d-flex flex-nowrap w-100"> | ||
<div class="p-2" style=" flex: 1;"> | ||
<div name="testingProgram-testLayouts-test_uniform-testInteger" class="w-100 form-group mb-2"> | ||
<label for:ignore="testInteger_c5b1fa5a-6572-42b8-828c-d635cd7aacd4">Test Integer</label> | ||
<input id:ignore="testInteger_c5b1fa5a-6572-42b8-828c-d635cd7aacd4" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value="0"> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
</div> | ||
<div class="p-2" style=" flex: 1;"> | ||
<div name="testingProgram-testLayouts-test_uniform-testString" class="w-100 form-group mb-2"> | ||
<label for:ignore="testString_1f49aab2-5850-48a1-8d4b-321d665f04e0">Test String</label> | ||
<input id:ignore="testString_1f49aab2-5850-48a1-8d4b-321d665f04e0" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value=""> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
18 changes: 18 additions & 0 deletions
18
src/ix.blazor/tests/sandbox/Ix.RenderableContent.Tests/HtmlFiles/stTestLayoutsWrap.html
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 @@ | ||
<div name="testingProgram-testLayouts-test_wrap"> | ||
<div name="WrapPanel" class="d-flex flex-wrap"> | ||
<div class="p-2"> | ||
<div name="testingProgram-testLayouts-test_wrap-testInteger" class="w-100 form-group mb-2"> | ||
<label for:ignore="testInteger_796cc955-8f8c-4848-9402-44fccbd08e06">Test Integer</label> | ||
<input id:ignore="testInteger_796cc955-8f8c-4848-9402-44fccbd08e06" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value="0"> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
</div> | ||
<div class="p-2"> | ||
<div name="testingProgram-testLayouts-test_wrap-testString" class="w-100 form-group mb-2"> | ||
<label for:ignore="testString_b4bf32e0-156f-4930-8a5b-a40deb15b06f">Test String</label> | ||
<input id:ignore="testString_b4bf32e0-156f-4930-8a5b-a40deb15b06f" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value=""> | ||
<div class="invalid-feedback"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.