Skip to content

Commit c85f323

Browse files
Merge pull request #7231 from NativeScript/mdonev/restore-ui-tests-pre-borderdrawable-outline-state
chore: update ui tests with androidElevation
2 parents f9d94ea + 6bc41a5 commit c85f323

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

apps/app/ui-tests-app/button/button-border.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Button {
4646
}
4747

4848
#s10 {
49-
border-width: 5 0; border-color: black; background-color: white;
49+
android-elevation: 0; border-width: 5 0; border-color: black;
5050
}
5151

5252
#s11 {

apps/app/ui-tests-app/css/pixels.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
<Label text="pixels" />
55
<StackLayout borderWidth="1px" borderColor="black" horizontalAlignment="left" verticalAlignment="top" orientation="horizontal" padding="1px">
66
<Label text="Label" borderWidth="1px" borderRadius="10px" borderColor="green" padding="1px" margin="1px" />
7-
<Button text="Button" borderWidth="1px" borderRadius="10px" borderColor="green" padding="1px" margin="1px" backgroundColor="orange" />
7+
<Button text="Button" borderWidth="1px" borderRadius="10px" borderColor="green" padding="1px" margin="1px" androidElevation="0" />
88
<TextView text="Text View" borderWidth="1px" borderRadius="10px" borderColor="green" padding="1px" margin="1px" />
99
<TextField text="Text Field" borderWidth="1px" borderRadius="10px" borderColor="green" padding="1px" margin="1px" />
1010
<Image src="~/ui-tests-app/resources/images/gravatar.png" borderWidth="1px" borderRadius="10px" borderColor="green" padding="1px" margin="1px" />
1111
</StackLayout>
1212

1313
<StackLayout borderWidth="2px" borderColor="green" orientation="horizontal" padding="2px">
1414
<Label text="Label" borderWidth="5px" borderRadius="10px" borderColor="black" padding="5px" margin="5px" />
15-
<Button text="Button" borderWidth="4px" borderRadius="10px" borderColor="black" padding="4px" margin="4px" backgroundColor="orange" />
15+
<Button text="Button" borderWidth="4px" borderRadius="10px" borderColor="black" padding="4px" margin="4px" androidElevation="0" />
1616
<TextView text="Text View" borderWidth="3px" borderRadius="10px" borderColor="black" padding="3px" margin="3px" />
1717
<TextField text="Text Field" borderWidth="2px" borderRadius="10px" borderColor="black" padding="2px" margin="2px" />
1818
</StackLayout>
@@ -32,15 +32,15 @@
3232
<Label text="device independent pixels" />
3333
<StackLayout borderWidth="1" borderColor="black" horizontalAlignment="left" verticalAlignment="top" orientation="horizontal" padding="1">
3434
<Label text="Label" borderWidth="1" borderRadius="10" borderColor="green" padding="1" margin="1" />
35-
<Button text="Button" borderWidth="1" borderRadius="10" borderColor="green" padding="1" margin="1" backgroundColor="orange" />
35+
<Button text="Button" borderWidth="1" borderRadius="10" borderColor="green" padding="1" margin="1" androidElevation="0" />
3636
<TextView text="Text View" borderWidth="1" borderRadius="10" borderColor="green" padding="1" margin="1" />
3737
<TextField text="Text Field" borderWidth="1" borderRadius="10" borderColor="green" padding="1" margin="1" />
3838
<Image src="~/ui-tests-app/resources/images/gravatar.png" borderWidth="1" borderRadius="10" borderColor="green" padding="1" margin="1" />
3939
</StackLayout>
4040

4141
<StackLayout borderWidth="2" borderColor="green" orientation="horizontal" padding="2">
4242
<Label text="Label" borderWidth="5" borderRadius="10" borderColor="black" padding="5" margin="5" />
43-
<Button text="Button" borderWidth="4" borderRadius="10" borderColor="black" padding="4" margin="4" backgroundColor="orange" />
43+
<Button text="Button" borderWidth="4" borderRadius="10" borderColor="black" padding="4" margin="4" androidElevation="0" />
4444
<TextView text="Text View" borderWidth="3" borderRadius="10" borderColor="black" padding="3" margin="3" />
4545
<TextField text="Text Field" borderWidth="2" borderRadius="10" borderColor="black" padding="2" margin="2" />
4646
</StackLayout>

apps/app/ui-tests-app/flexbox/flexbox.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
border-color: gray;
2121
}
2222
.control Button {
23+
android-elevation: 0;
2324
border-width: 1 1 0 0;
2425
border-color: gray;
25-
background-color: white;
2626
font-size: 9;
2727
padding: 0;
2828
height: 0;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#button1 {
2-
border-color: transparent;
2+
android-elevation: 0;
3+
border-color: rgba(0, 0, 0, 0);
34
border-width: 3;
4-
background-color: white;
55
}
66

77
#button2 {
8+
android-elevation: 0;
89
border-color: rgba(0, 0, 0, 0.5);
910
border-width: 3;
10-
background-color: white;
1111
}
1212

1313
#button3 {
14+
android-elevation: 0;
1415
border-width: 3;
15-
background-color: white;
1616
}

0 commit comments

Comments
 (0)