mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Fix UI test decoration_05_lineThroughUnderlineNone
This commit is contained in:
@ -25,7 +25,7 @@ export function pageLoaded(args: EventData) {
|
|||||||
examples.set("clipPath", "css/clip-path");
|
examples.set("clipPath", "css/clip-path");
|
||||||
examples.set("padding", "css/padding");
|
examples.set("padding", "css/padding");
|
||||||
examples.set("label-background-image", "css/label-background-image");
|
examples.set("label-background-image", "css/label-background-image");
|
||||||
examples.set("text-transform-and-color", "css/text-transform-and-color");
|
examples.set("transform-decoration-color", "css/transform-decoration-color");
|
||||||
|
|
||||||
let viewModel = new SubMianPageViewModel(wrapLayout, examples);
|
let viewModel = new SubMianPageViewModel(wrapLayout, examples);
|
||||||
page.bindingContext = viewModel;
|
page.bindingContext = viewModel;
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
<Page xmlns="http://schemas.nativescript.org/tns.xsd">
|
|
||||||
<StackLayout>
|
|
||||||
<Label text="Label red" style="color: red;"/>
|
|
||||||
<Button text="Button red" style="color: red;"/>
|
|
||||||
<TextField text="TextField red" style="color: red;"/>
|
|
||||||
<TextView text="TextView red" style="color: red;"/>
|
|
||||||
<Label text="Label uppercase red" style="text-transform: uppercase; color: red;"/>
|
|
||||||
<Button text="Button uppercase red" style="text-transform: uppercase; color: red;"/>
|
|
||||||
<TextField text="TextField uppercase red" style="text-transform: uppercase; color: red;"/>
|
|
||||||
<TextView text="TextView uppercase red" style="text-transform: uppercase; color: red;"/>
|
|
||||||
</StackLayout>
|
|
||||||
</Page>
|
|
8
apps/app/ui-tests-app/css/transform-decoration-color.css
Normal file
8
apps/app/ui-tests-app/css/transform-decoration-color.css
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
Label, Button, TextField, TextView {
|
||||||
|
font-size: 12;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
TextView {
|
||||||
|
margin-bottom: 10;
|
||||||
|
}
|
23
apps/app/ui-tests-app/css/transform-decoration-color.xml
Normal file
23
apps/app/ui-tests-app/css/transform-decoration-color.xml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<Page xmlns="http://schemas.nativescript.org/tns.xsd">
|
||||||
|
<StackLayout>
|
||||||
|
<Label text="Label red" style="color: red;"/>
|
||||||
|
<Button text="Button red" style="color: red;"/>
|
||||||
|
<TextField text="TextField red" style="color: red;"/>
|
||||||
|
<TextView text="TextView red" style="color: red;"/>
|
||||||
|
|
||||||
|
<Label text="Label uppercase red" style="text-transform: uppercase; color: red;"/>
|
||||||
|
<Button text="Button uppercase red" style="text-transform: uppercase; color: red;"/>
|
||||||
|
<TextField text="TextField uppercase red" style="text-transform: uppercase; color: red;"/>
|
||||||
|
<TextView text="TextView uppercase red" style="text-transform: uppercase; color: red;"/>
|
||||||
|
|
||||||
|
<Label text="Label underline line-through blue" style="text-decoration: underline line-through; color: blue;"/>
|
||||||
|
<Button text="Button underline line-through blue" style="text-decoration: underline line-through; color: blue;"/>
|
||||||
|
<TextField text="TextField underline line-through blue" style="text-decoration: underline line-through; color: blue;"/>
|
||||||
|
<TextView text="TextView underline line-through blue" style="text-decoration: underline line-through; color: blue;"/>
|
||||||
|
|
||||||
|
<Label text="Label uppercase underline line-through green" style="text-transform: uppercase; text-decoration: underline line-through; color: green;"/>
|
||||||
|
<Button text="Button uppercase underline line-through green" style="text-transform: uppercase; text-decoration: underline line-through; color: green;"/>
|
||||||
|
<TextField text="TextField uppercase underline line-through green" style="text-transform: uppercase; text-decoration: underline line-through; color: green;"/>
|
||||||
|
<TextView text="TextView uppercase underline line-through green" style="text-transform: uppercase; text-decoration: underline line-through; color: green;"/>
|
||||||
|
</StackLayout>
|
||||||
|
</Page>
|
Reference in New Issue
Block a user