mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
UI test for setting bckg and color of buttons inside dialogs
This commit is contained in:
4
apps/app/ui-tests-app/issues/issue-3211.css
Normal file
4
apps/app/ui-tests-app/issues/issue-3211.css
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Button {
|
||||||
|
background-color: yellow;
|
||||||
|
color: cyan;
|
||||||
|
}
|
12
apps/app/ui-tests-app/issues/issue-3211.ts
Normal file
12
apps/app/ui-tests-app/issues/issue-3211.ts
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import { alert } from "ui/dialogs";
|
||||||
|
|
||||||
|
export function onTap() {
|
||||||
|
var options = {
|
||||||
|
title: "Race selection",
|
||||||
|
message: "Race chosen: Unicorn",
|
||||||
|
okButtonText: "OK"
|
||||||
|
};
|
||||||
|
alert(options).then(() => {
|
||||||
|
console.log("Race chosen!");
|
||||||
|
});
|
||||||
|
}
|
5
apps/app/ui-tests-app/issues/issue-3211.xml
Normal file
5
apps/app/ui-tests-app/issues/issue-3211.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<Page xmlns="http://schemas.nativescript.org/tns.xsd">
|
||||||
|
<StackLayout>
|
||||||
|
<Button text="alert me" tap="onTap" margin="15"/>
|
||||||
|
</StackLayout>
|
||||||
|
</Page>
|
@ -19,6 +19,7 @@ export function pageLoaded(args: EventData) {
|
|||||||
examples.set("3113", "issues/issue-3113");
|
examples.set("3113", "issues/issue-3113");
|
||||||
examples.set("3164", "issues/issue-3164");
|
examples.set("3164", "issues/issue-3164");
|
||||||
examples.set("3175", "issues/issue-3175");
|
examples.set("3175", "issues/issue-3175");
|
||||||
|
examples.set("3211", "issues/issue-3211");
|
||||||
|
|
||||||
let viewModel = new SubMainPageViewModel(wrapLayout, examples);
|
let viewModel = new SubMainPageViewModel(wrapLayout, examples);
|
||||||
page.bindingContext = viewModel;
|
page.bindingContext = viewModel;
|
||||||
|
Reference in New Issue
Block a user