test: include test page for button highlight related to issue 4740 (#4952)

This commit is contained in:
Svetoslav
2017-10-16 14:01:39 +03:00
committed by GitHub
parent cb029225c3
commit f50ae4bb17
7 changed files with 33 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
.btn {
font-size: 18;
}
.btn:highlighted {
background-color: red
}

View File

@@ -0,0 +1,5 @@
import * as frame from "tns-core-modules/ui/frame";
export function onTap() {
frame.topmost().navigate("ui-tests-app/button/highlight-4740/sub-page");
}

View File

@@ -0,0 +1,7 @@
<Page
xmlns="http://schemas.nativescript.org/tns.xsd" class="page">
<StackLayout class="p-20">
<Button text="go to sub" tap="onTap" class="btn"/>
</StackLayout>
</Page>

View File

@@ -0,0 +1,5 @@
import * as frame from "tns-core-modules/ui/frame";
export function goBack() {
frame.goBack();
}

View File

@@ -0,0 +1,4 @@
<Page
xmlns="http://www.nativescript.org/tns.xsd">
<Button text="goBack" tap="goBack" />
</Page>

View File

@@ -18,5 +18,6 @@ export function loadExamples() {
examples.set("border-playground","button/border-playground");
examples.set("issue-4287","button/issue-4287");
examples.set("issue-4385","button/issue-4385");
examples.set("highlight-4740","button/highlight-4740/highlight-4740");
return examples;
}