diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-10 11:00:19 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-10 11:00:19 +0100 |
| commit | 3f2cf3678530ad43507581a7ee474b4fc75f84d8 (patch) | |
| tree | 647fcfa587d91e761c37b6861215fc7e8a81c21f /UnitTest/Interfaces | |
| parent | 70ea17334b89caec0c89201aac34fe160926a35b (diff) | |
update NUnit tests
Diffstat (limited to 'UnitTest/Interfaces')
| -rwxr-xr-x | UnitTest/Interfaces/3.crow (renamed from UnitTest/Interfaces/testStacks.crow) | 0 | ||||
| -rwxr-xr-x | UnitTest/Interfaces/4.crow | 81 | ||||
| -rwxr-xr-x | UnitTest/Interfaces/5.crow | 64 | ||||
| -rwxr-xr-x | UnitTest/Interfaces/testImage.crow | 81 |
4 files changed, 145 insertions, 81 deletions
diff --git a/UnitTest/Interfaces/testStacks.crow b/UnitTest/Interfaces/3.crow index 7dce3c88..7dce3c88 100755 --- a/UnitTest/Interfaces/testStacks.crow +++ b/UnitTest/Interfaces/3.crow diff --git a/UnitTest/Interfaces/4.crow b/UnitTest/Interfaces/4.crow new file mode 100755 index 00000000..3b6efa02 --- /dev/null +++ b/UnitTest/Interfaces/4.crow @@ -0,0 +1,81 @@ +<?xml version="1.0"?> +<VerticalStack Fit="true" Spacing="0"> + <Label Text="SCALED PROPORTIONNAL" Background="hgradient|0:DimGray|1:DarkRed" Width="0"/> + <HorizontalStack Fit="true" Background="hgradient|0:DarkRed|1:Transparent" > + <Image Background="vgradient|0:SkyBlue|1:White" Path="#Crow.image.crow0.svg"/> + <Image Margin="10" Background="vgradient|0:SkyBlue|1:White" Path="#Crow.image.crow0.svg" /> + <Image Background="vgradient|0:SkyBlue|1:White" Width="20" Height="20" Path="#Crow.image.crow0.svg" /> + <Image Margin="2" Background="vgradient|0:SkyBlue|1:White" Width="20" Height="20" Path="#Crow.image.crow0.svg" /> + <Image Background="vgradient|0:SkyBlue|1:White" Width="25" Height="50" Path="#Crow.image.crow0.svg" /> + <Image Margin="10" Background="vgradient|0:SkyBlue|1:White" Width="25" Height="50" Path="#Crow.image.crow0.svg" /> + <Image Background="vgradient|0:SkyBlue|1:White" Width="50" Height="25" Path="#Crow.image.crow0.svg" /> + <Image Margin="10" Background="vgradient|0:SkyBlue|1:White" Width="50" Height="25" Path="#Crow.image.crow0.svg" /> + <Image Background="vgradient|0:SkyBlue|1:White" Width="25" Height="-1" Path="#Crow.image.crow0.svg" /> + <Image Margin="10" Background="vgradient|0:SkyBlue|1:White" Width="25" Height="-1" Path="#Crow.image.crow0.svg" /> + </HorizontalStack> + <Label Text="SCALED NOT PROPORTIONNAL" Background="hgradient|0:DimGray|1:DarkRed"/> + <HorizontalStack Fit="true" Background="hgradient|0:DarkRed|1:Transparent" > + <Image KeepProportions="false" Background="vgradient|0:SkyBlue|1:White" Path="#Crow.image.crow0.svg" /> + <Image KeepProportions="false" Margin="10" Background="vgradient|0:SkyBlue|1:White" Path="#Crow.image.crow0.svg" /> + <Image KeepProportions="false" Background="vgradient|0:SkyBlue|1:White" Width="20" Height="20" Path="#Crow.image.crow0.svg" /> + <Image KeepProportions="false" Margin="2" Background="vgradient|0:SkyBlue|1:White" Width="20" Height="20" Path="#Crow.image.crow0.svg" /> + <Image KeepProportions="false" Background="vgradient|0:SkyBlue|1:White" Width="25" Height="50" Path="#Crow.image.crow0.svg" /> + <Image KeepProportions="false" Margin="10" Background="vgradient|0:SkyBlue|1:White" Width="25" Height="50" Path="#Crow.image.crow0.svg" /> + <Image KeepProportions="false" Background="vgradient|0:SkyBlue|1:White" Width="50" Height="25" Path="#Crow.image.crow0.svg" /> + <Image KeepProportions="false" Margin="10" Background="vgradient|0:SkyBlue|1:White" Width="50" Height="25" Path="#Crow.image.crow0.svg" /> + <Image KeepProportions="false" Background="vgradient|0:SkyBlue|1:White" Width="25" Height="-1" Path="#Crow.image.crow0.svg" /> + <Image KeepProportions="false" Margin="10" Background="vgradient|0:SkyBlue|1:White" Width="25" Height="-1" Path="#Crow.image.crow0.svg" /> + </HorizontalStack> + <Label Text="UNSCALED" Background="hgradient|0:DimGray|1:DarkRed"/> + <HorizontalStack Fit="true" Background="hgradient|0:DarkRed|1:Transparent" > + <Image Scaled="false" Background="Blue" Path="#Crow.image.crow0.svg" /> + <Image Scaled="false" Margin="10" Background="Blue" Path="#Crow.image.crow0.svg" /> + <Image Scaled="false" Background="Blue" Width="20" Height="20" Path="#Crow.image.crow0.svg" /> + <Image Scaled="false" Margin="2" Background="Blue" Width="20" Height="20" Path="#Crow.image.crow0.svg" /> + <Image Scaled="false" Background="Blue" Width="25" Height="50" Path="#Crow.image.crow0.svg" /> + <Image Scaled="false" Margin="10" Background="Blue" Width="25" Height="50" Path="#Crow.image.crow0.svg" /> + <Image Scaled="false" Background="Blue" Width="50" Height="25" Path="#Crow.image.crow0.svg" /> + <Image Scaled="false" Margin="10" Background="Blue" Width="50" Height="25" Path="#Crow.image.crow0.svg" /> + <Image Scaled="false" Background="Blue" Width="25" Height="-1" Path="#Crow.image.crow0.svg" /> + <Image Scaled="false" Margin="10" Background="Blue" Width="25" Height="-1" Path="#Crow.image.crow0.svg" /> + </HorizontalStack> + <Label Text="SCALED PROPORTIONNAL" Background="hgradient|0:DimGray|1:DarkRed"/> + <HorizontalStack Fit="true" Background="hgradient|0:DarkRed|1:Transparent"> + <Image Background="Blue" Path="#Crow.Images.Icons.tetra.png"/> + <Image Margin="10" Background="Blue" Path="#Crow.Images.Icons.tetra.png"/> + <Image Background="Blue" Width="20" Height="20" Path="#Crow.Images.Icons.tetra.png"/> + <Image Margin="2" Background="Blue" Width="20" Height="20" Path="#Crow.Images.Icons.tetra.png"/> + <Image Background="Blue" Width="25" Height="50" Path="#Crow.Images.Icons.tetra.png"/> + <Image Margin="10" Background="Blue" Width="25" Height="50" Path="#Crow.Images.Icons.tetra.png"/> + <Image Background="Blue" Width="50" Height="25" Path="#Crow.Images.Icons.tetra.png"/> + <Image Margin="10" Background="Blue" Width="50" Height="25" Path="#Crow.Images.Icons.tetra.png"/> + <Image Background="Blue" Width="25" Height="-1" Path="#Crow.Images.Icons.tetra.png"/> + <Image Margin="10" Background="Blue" Width="25" Height="-1" Path="#Crow.Images.Icons.tetra.png"/> + </HorizontalStack> + <Label Text="SCALED NOT PROPORTIONNAL" Background="hgradient|0:DimGray|1:DarkRed"/> + <HorizontalStack Fit="true" Background="hgradient|0:DarkRed|1:Transparent"> + <Image KeepProportions="false" Background="Blue" Path="#Crow.Images.Icons.tetra.png"/> + <Image KeepProportions="false" Margin="10" Background="Blue" Path="#Crow.Images.Icons.tetra.png"/> + <Image KeepProportions="false" Background="Blue" Width="20" Height="20" Path="#Crow.Images.Icons.tetra.png"/> + <Image KeepProportions="false" Margin="2" Background="Blue" Width="20" Height="20" Path="#Crow.Images.Icons.tetra.png"/> + <Image KeepProportions="false" Background="Blue" Width="25" Height="50" Path="#Crow.Images.Icons.tetra.png"/> + <Image KeepProportions="false" Margin="10" Background="Blue" Width="25" Height="50" Path="#Crow.Images.Icons.tetra.png"/> + <Image KeepProportions="false" Background="Blue" Width="50" Height="25" Path="#Crow.Images.Icons.tetra.png"/> + <Image KeepProportions="false" Margin="10" Background="Blue" Width="50" Height="25" Path="#Crow.Images.Icons.tetra.png"/> + <Image KeepProportions="false" Background="Blue" Width="25" Height="-1" Path="#Crow.Images.Icons.tetra.png"/> + <Image KeepProportions="false" Margin="10" Background="Blue" Width="25" Height="-1" Path="#Crow.Images.Icons.tetra.png"/> + </HorizontalStack> + <Label Text="UNSCALED" Background="hgradient|0:DimGray|1:DarkRed"/> + <HorizontalStack Fit="true" Background="hgradient|0:DarkRed|1:Transparent" > + <Image Scaled="false" Background="Blue" Path="#Crow.Images.Icons.tetra.png"/> + <Image Scaled="false" Margin="10" Background="Blue" Path="#Crow.Images.Icons.tetra.png"/> + <Image Scaled="false" Background="Blue" Width="20" Height="20" Path="#Crow.Images.Icons.tetra.png"/> + <Image Scaled="false" Margin="2" Background="Blue" Width="20" Height="20" Path="#Crow.Images.Icons.tetra.png"/> + <Image Scaled="false" Background="Blue" Width="25" Height="50" Path="#Crow.Images.Icons.tetra.png"/> + <Image Scaled="false" Margin="10" Background="Blue" Width="25" Height="50" Path="#Crow.Images.Icons.tetra.png"/> + <Image Scaled="false" Background="Blue" Width="50" Height="25" Path="#Crow.Images.Icons.tetra.png"/> + <Image Scaled="false" Margin="10" Background="Blue" Width="50" Height="25" Path="#Crow.Images.Icons.tetra.png"/> + <Image Scaled="false" Background="Blue" Width="25" Height="-1" Path="#Crow.Images.Icons.tetra.png"/> + <Image Scaled="false" Margin="10" Background="Blue" Width="25" Height="-1" Path="#Crow.Images.Icons.tetra.png"/> + </HorizontalStack> +</VerticalStack>
\ No newline at end of file diff --git a/UnitTest/Interfaces/5.crow b/UnitTest/Interfaces/5.crow new file mode 100755 index 00000000..a4d950bc --- /dev/null +++ b/UnitTest/Interfaces/5.crow @@ -0,0 +1,64 @@ +<?xml version="1.0"?> +<HorizontalStack Fit="true" Margin="5"> + <VerticalStack Fit="true" Margin="2" Spacing="2"> + <TextRun Text="text run test"/> + <Label Text="label test"/> + <TextBox Text="text box test"/> + <Button Caption="test button"/> + <CheckBox Caption="test checkbox"/> + <RadioButton Caption="test radiobutton"/> + <ComboBox/> + <Popper Caption="test popper"> + <Label Text="label test"/> + </Popper> + <Expandable Caption="test expandable"> + <Label Text="label test"/> + </Expandable> + <Border > + <Label Text="border test" Margin="3"/> + </Border> + <GroupBox Caption="Group box" > + <Label Text="border test" Margin="3"/> + </GroupBox> + <Container Fit="true" Background="DimGray" Margin="3"> + <GraphicObject Width="20" Height="20" Background="LightGray"/> + </Container> + <ProgressBar Height="10" Width="150" Background="DimGray" Value="50" /> + <Slider Value="5" Width="150" Height="10"/> + <ScrollBar Orientation="Horizontal" Maximum="100" Value="50" Height="16" Width="150"/> + <Spinner Value="100"/> + </VerticalStack> + <VerticalStack Width="150" Height="-1" Margin="2" Spacing="2"> + <TextRun Text="text run test" Width="0"/> + <Label Text="label test" Width="0"/> + <TextBox Text="text box test" Width="0"/> + <Button Caption="test button" Width="0"/> + <CheckBox Caption="test checkbox" Width="0"/> + <RadioButton Caption="test radiobutton" Width="0"/> + <ComboBox Width="0"/> + <Popper Caption="test popper" Width="0"> + <Label Text="label test"/> + </Popper> + <Expandable Caption="test expandable" Width="0"> + <Label Text="label test"/> + </Expandable> + <Border Width="0"> + <Label Text="border test" Margin="3"/> + </Border> + <GroupBox Caption="Group box" Width="0"> + <Label Text="border test" Margin="3"/> + </GroupBox> + <Container Height="-1" Width="0" Background="DimGray" Margin="3"> + <GraphicObject Width="20" Height="20" Background="LightGray"/> + </Container> + <ProgressBar Height="10" Width="0" Background="DimGray" Value="50" /> + <Slider Value="5" Width="0" Height="10"/> + <ScrollBar Orientation="Horizontal" Maximum="100" Value="50" Height="16" Width="0"/> + <Spinner Value="100" Width="0"/> + </VerticalStack> +</HorizontalStack> +<!--<HorizontalStack Fit="true" Background="BlueCrayola" Margin="5"> + <GraphicObject Background="Red" Width="30" Height="20"/> + <Spinner Maximum="10000000000" SmallIncrement="10" Value="0"/> + <GraphicObject Background="Green" Width="30" Height="20"/> +</HorizontalStack>-->
\ No newline at end of file diff --git a/UnitTest/Interfaces/testImage.crow b/UnitTest/Interfaces/testImage.crow deleted file mode 100755 index 1939982e..00000000 --- a/UnitTest/Interfaces/testImage.crow +++ /dev/null @@ -1,81 +0,0 @@ -<?xml version="1.0"?> -<VerticalStack Fit="true"> - <HorizontalStack Fit="true" Background="Red" Margin="5"> - <Label Text="SCALED PROPORTIONNAL" Width="150"/> - <Image Background="Blue" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image Margin="10" Background="Blue" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image Background="Blue" Width="20" Height="20" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image Margin="2" Background="Blue" Width="20" Height="20" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image Background="Blue" Width="50" Height="100" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image Margin="10" Background="Blue" Width="50" Height="100" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image Background="Blue" Width="100" Height="50" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image Margin="10" Background="Blue" Width="100" Height="50" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image Background="Blue" Width="50" Height="-1" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image Margin="10" Background="Blue" Width="50" Height="-1" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - </HorizontalStack> - <HorizontalStack Fit="true" Background="Red" Margin="5"> - <Label Text="SCALED NOT PROPORTIONNAL" Width="150"/> - <Image KeepProportions="false" Background="Blue" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image KeepProportions="false" Margin="10" Background="Blue" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image KeepProportions="false" Background="Blue" Width="20" Height="20" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image KeepProportions="false" Margin="2" Background="Blue" Width="20" Height="20" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image KeepProportions="false" Background="Blue" Width="50" Height="100" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image KeepProportions="false" Margin="10" Background="Blue" Width="50" Height="100" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image KeepProportions="false" Background="Blue" Width="100" Height="50" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image KeepProportions="false" Margin="10" Background="Blue" Width="100" Height="50" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image KeepProportions="false" Background="Blue" Width="50" Height="-1" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image KeepProportions="false" Margin="10" Background="Blue" Width="50" Height="-1" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - </HorizontalStack> - <HorizontalStack Fit="true" Background="Red" Margin="5"> - <Label Text="UNSCALED" Width="150"/> - <Image Scaled="false" Background="Blue" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image Scaled="false" Margin="10" Background="Blue" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image Scaled="false" Background="Blue" Width="20" Height="20" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image Scaled="false" Margin="2" Background="Blue" Width="20" Height="20" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image Scaled="false" Background="Blue" Width="50" Height="100" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image Scaled="false" Margin="10" Background="Blue" Width="50" Height="100" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image Scaled="false" Background="Blue" Width="100" Height="50" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image Scaled="false" Margin="10" Background="Blue" Width="100" Height="50" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image Scaled="false" Background="Blue" Width="50" Height="-1" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - <Image Scaled="false" Margin="10" Background="Blue" Width="50" Height="-1" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/> - </HorizontalStack> - <HorizontalStack Fit="true" Background="Red" Margin="5"> - <Label Text="SCALED PROPORTIONNAL" Width="150"/> - <Image Background="Blue" Path="#Tests.image.tetra.png"/> - <Image Margin="10" Background="Blue" Path="#Tests.image.tetra.png"/> - <Image Background="Blue" Width="20" Height="20" Path="#Tests.image.tetra.png"/> - <Image Margin="2" Background="Blue" Width="20" Height="20" Path="#Tests.image.tetra.png"/> - <Image Background="Blue" Width="50" Height="100" Path="#Tests.image.tetra.png"/> - <Image Margin="10" Background="Blue" Width="50" Height="100" Path="#Tests.image.tetra.png"/> - <Image Background="Blue" Width="100" Height="50" Path="#Tests.image.tetra.png"/> - <Image Margin="10" Background="Blue" Width="100" Height="50" Path="#Tests.image.tetra.png"/> - <Image Background="Blue" Width="50" Height="-1" Path="#Tests.image.tetra.png"/> - <Image Margin="10" Background="Blue" Width="50" Height="-1" Path="#Tests.image.tetra.png"/> - </HorizontalStack> - <HorizontalStack Fit="true" Background="Red" Margin="5"> - <Label Text="SCALED NOT PROPORTIONNAL" Width="150"/> - <Image KeepProportions="false" Background="Blue" Path="#Tests.image.tetra.png"/> - <Image KeepProportions="false" Margin="10" Background="Blue" Path="#Tests.image.tetra.png"/> - <Image KeepProportions="false" Background="Blue" Width="20" Height="20" Path="#Tests.image.tetra.png"/> - <Image KeepProportions="false" Margin="2" Background="Blue" Width="20" Height="20" Path="#Tests.image.tetra.png"/> - <Image KeepProportions="false" Background="Blue" Width="50" Height="100" Path="#Tests.image.tetra.png"/> - <Image KeepProportions="false" Margin="10" Background="Blue" Width="50" Height="100" Path="#Tests.image.tetra.png"/> - <Image KeepProportions="false" Background="Blue" Width="100" Height="50" Path="#Tests.image.tetra.png"/> - <Image KeepProportions="false" Margin="10" Background="Blue" Width="100" Height="50" Path="#Tests.image.tetra.png"/> - <Image KeepProportions="false" Background="Blue" Width="50" Height="-1" Path="#Tests.image.tetra.png"/> - <Image KeepProportions="false" Margin="10" Background="Blue" Width="50" Height="-1" Path="#Tests.image.tetra.png"/> - </HorizontalStack> - <HorizontalStack Fit="true" Background="Red" Margin="5"> - <Label Text="UNSCALED" Width="150"/> - <Image Scaled="false" Background="Blue" Path="#Tests.image.tetra.png"/> - <Image Scaled="false" Margin="10" Background="Blue" Path="#Tests.image.tetra.png"/> - <Image Scaled="false" Background="Blue" Width="20" Height="20" Path="#Tests.image.tetra.png"/> - <Image Scaled="false" Margin="2" Background="Blue" Width="20" Height="20" Path="#Tests.image.tetra.png"/> - <Image Scaled="false" Background="Blue" Width="50" Height="100" Path="#Tests.image.tetra.png"/> - <Image Scaled="false" Margin="10" Background="Blue" Width="50" Height="100" Path="#Tests.image.tetra.png"/> - <Image Scaled="false" Background="Blue" Width="100" Height="50" Path="#Tests.image.tetra.png"/> - <Image Scaled="false" Margin="10" Background="Blue" Width="100" Height="50" Path="#Tests.image.tetra.png"/> - <Image Scaled="false" Background="Blue" Width="50" Height="-1" Path="#Tests.image.tetra.png"/> - <Image Scaled="false" Margin="10" Background="Blue" Width="50" Height="-1" Path="#Tests.image.tetra.png"/> - </HorizontalStack> -</VerticalStack>
\ No newline at end of file |