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;
}

View File

@ -6,10 +6,10 @@
"nativescript": {
"id": "org.nativescript.apps",
"tns-ios": {
"version": "3.1.0"
"version": "3.2.0"
},
"tns-android": {
"version": "3.1.0"
"version": "3.2.0"
}
},
"dependencies": {
@ -20,8 +20,8 @@
"babel-types": "6.11.1",
"babylon": "6.8.3",
"lazy": "1.0.11",
"nativescript-dev-typescript": "^0.3.0",
"nativescript-dev-typescript": "^0.5.0",
"tns-platform-declarations": "*",
"typescript": "~2.2.1"
"typescript": "~2.5.1"
}
}