Skip to content

Commit 0af231f

Browse files
Update test pages
1 parent 2e46932 commit 0af231f

5 files changed

Lines changed: 38 additions & 12 deletions

File tree

‎apps/ui-tests-app/css/clip-path.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Page>
2-
<GridLayout rows="*,*,*,*,*">
2+
<GridLayout rows="*,*,*,*,*" automationText="clipPath">
33
<Button text="circle" style="background-color: red; border-width:2; border-color: blue; clip-path: circle(100% at 50% 50%);"/>
44
<Button text="ellipse" style="background-color: orange; border-width:2; border-color: green; clip-path: ellipse(50% 50% at 50% 50%);" row="1" />
55
<Button text="rect" style="background-color: red; border-width:2; border-color: blue; clip-path: rect(0, 0, 100%, 100%);" row="2" />

‎apps/ui-tests-app/css/zindex.xml‎

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,36 @@
11
<Page>
2-
<StackLayout automationText="zIndex">
3-
<AbsoluteLayout style="background-color: green;">
4-
<Button text="button 1" style="height: 100; width: 100; z-index: 999; background-color: red;" />
5-
<Button text="button 2" left="20" top="70" style="height: 100; width: 100; z-index:1; background-color: yellow;"/>
6-
<Button text="button 3" left="60" top="130" style="height: 100; width: 100; z-index:0; background-color: blue; color: black;"/>
7-
<Button text="button 4" left="90" top="190" style="height: 100; width: 100; z-index:-1; background-color: orange;"/>
2+
<GridLayout automationText="zIndex" columns="*,*" rows="*, *">
3+
<AbsoluteLayout style="background-color: green;">
4+
<Button text="button 1" style="height: 100; width: 100; z-index: 999; background-color: red;" />
5+
<Button text="button 2" left="20" top="70" style="height: 100; width: 100; z-index:1; background-color: yellow;"/>
6+
<Button text="button 3" left="60" top="130" style="height: 100; width: 100; z-index:0; background-color: blue; color: black;"/>
7+
<Button text="button 4" left="90" top="190" style="height: 100; width: 100; z-index:-1; background-color: orange;"/>
8+
</AbsoluteLayout>
9+
<AbsoluteLayout style="background-color: black;" col="1">
10+
<Label text="label 1" style="height: 100; width: 100; z-index: 999; background-color: red;" />
11+
<Label text="label 2" left="20" top="70" style="height: 100; width: 100; z-index:1; background-color: yellow;"/>
12+
<Label text="label 3" left="60" top="130" style="height: 100; width: 100; z-index:0; background-color: blue; color: black;"/>
13+
<Label text="label 4" left="90" top="190" style="height: 100; width: 100; z-index:-1; background-color: orange;"/>
14+
</AbsoluteLayout>
15+
<AbsoluteLayout style="background-color: brown;" row="1">
16+
<TextField text="TextField" style="height: 100; width: 100; z-index: 999; background-color: red;" />
17+
<TextView text="TextView" left="20" top="70" style="height: 100; width: 100; z-index:1; background-color: yellow;"/>
18+
<Image src="~/ui-tests-app/image-view/gravatar.png" left="60" top="130" style="height: 100; width: 100; z-index:0; background-color: blue; color: black;"/>
19+
<TimePicker hour="5" minute="30" minHour="3" maxHour="7" left="90" top="190" style="z-index:-1; background-color: orange; width: 100;"/>
20+
</AbsoluteLayout>
21+
<AbsoluteLayout row="1" col="1" style="background-color: grey;">
22+
<StackLayout style="background-color: green; z-index: 999;">
23+
<TextField text="stacklayout1" style="height: 100; width: 100;"/>
24+
</StackLayout>
25+
<StackLayout left="20" top="70" style="z-index: 1; background-color: yellow">
26+
<TextField text="stacklayout2" style="height: 100; width: 100;"/>
27+
</StackLayout>
28+
<WrapLayout left="60" top="130" style="z-index: 0; background-color: blue">
29+
<TextField text="wraplayout" style="height: 100; width: 100;"/>
30+
</WrapLayout>
31+
<AbsoluteLayout left="90" top="190" style="height: 100; width: 100; z-index: -1; background-color: orange;">
32+
<Label text="absolutelayout" top="40"/>
833
</AbsoluteLayout>
9-
</StackLayout>
34+
</AbsoluteLayout>
35+
</GridLayout>
1036
</Page>

‎apps/ui-tests-app/mainPage.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ examples.set("transform", "css/text-transform");
4848
examples.set("whitespace", "css/white-space");
4949
examples.set("switch", "css/views");
5050
examples.set("zindex", "css/zindex");
51-
51+
examples.set("clipPath", "css/clip-path");
5252
examples.set("dialogs", "dialogs/dialogs");
5353

5454
examples.set("fontbtn", "font/button");
@@ -83,7 +83,7 @@ examples.set("modalview", "modal-view/modal-view");
8383
examples.set("nordic", "nordic/nordic");
8484

8585
examples.set("padding", "padding/padding");
86-
86+
examples.set("timePicker", "time-picker/time-picker");
8787
examples.set("gestures", "pages/gestures");
8888
examples.set("touch", "pages/touch-event");
8989
examples.set("handlers", "pages/handlers");

‎apps/ui-tests-app/padding/padding.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Page xmlns="http://schemas.nativescript.org/tns.xsd" >
2-
<StackLayout>
2+
<StackLayout automationText="padding">
33
<Label id="label" text="Label" backgroundColor="red"/>
44
<TextField id="textField" text="TextField" backgroundColor="green"/>
55
<TextView id="textView" text="TextView" backgroundColor="blue"/>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<Page>
2-
<TimePicker hour="5" minute="30" minHour="3" maxHour="7" />
2+
<TimePicker automationText="timePicker" hour="5" minute="30" minHour="3" maxHour="7" />
33
</Page>

0 commit comments

Comments
 (0)