Skip to content

Commit f50ae4b

Browse files
test: include test page for button highlight related to issue 4740 (NativeScript#4952)
1 parent cb02922 commit f50ae4b

File tree

7 files changed

+33
-4
lines changed

7 files changed

+33
-4
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.btn {
2+
font-size: 18;
3+
}
4+
5+
.btn:highlighted {
6+
background-color: red
7+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import * as frame from "tns-core-modules/ui/frame";
2+
3+
export function onTap() {
4+
frame.topmost().navigate("ui-tests-app/button/highlight-4740/sub-page");
5+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
<Page
3+
xmlns="http://schemas.nativescript.org/tns.xsd" class="page">
4+
<StackLayout class="p-20">
5+
<Button text="go to sub" tap="onTap" class="btn"/>
6+
</StackLayout>
7+
</Page>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import * as frame from "tns-core-modules/ui/frame";
2+
3+
export function goBack() {
4+
frame.goBack();
5+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<Page
2+
xmlns="http://www.nativescript.org/tns.xsd">
3+
<Button text="goBack" tap="goBack" />
4+
</Page>

apps/app/ui-tests-app/button/main-page.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ export function loadExamples() {
1818
examples.set("border-playground","button/border-playground");
1919
examples.set("issue-4287","button/issue-4287");
2020
examples.set("issue-4385","button/issue-4385");
21+
examples.set("highlight-4740","button/highlight-4740/highlight-4740");
2122
return examples;
2223
}

apps/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"nativescript": {
77
"id": "org.nativescript.apps",
88
"tns-ios": {
9-
"version": "3.1.0"
9+
"version": "3.2.0"
1010
},
1111
"tns-android": {
12-
"version": "3.1.0"
12+
"version": "3.2.0"
1313
}
1414
},
1515
"dependencies": {
@@ -20,8 +20,8 @@
2020
"babel-types": "6.11.1",
2121
"babylon": "6.8.3",
2222
"lazy": "1.0.11",
23-
"nativescript-dev-typescript": "^0.3.0",
23+
"nativescript-dev-typescript": "^0.5.0",
2424
"tns-platform-declarations": "*",
25-
"typescript": "~2.2.1"
25+
"typescript": "~2.5.1"
2626
}
2727
}

0 commit comments

Comments
 (0)