From f50ae4bb17a03a65d9b324c69b510537d69ae445 Mon Sep 17 00:00:00 2001 From: Svetoslav Date: Mon, 16 Oct 2017 14:01:39 +0300 Subject: [PATCH] test: include test page for button highlight related to issue 4740 (#4952) --- .../ui-tests-app/button/highlight-4740/highlight-4740.css | 7 +++++++ .../ui-tests-app/button/highlight-4740/highlight-4740.ts | 5 +++++ .../ui-tests-app/button/highlight-4740/highlight-4740.xml | 7 +++++++ apps/app/ui-tests-app/button/highlight-4740/sub-page.ts | 5 +++++ apps/app/ui-tests-app/button/highlight-4740/sub-page.xml | 4 ++++ apps/app/ui-tests-app/button/main-page.ts | 1 + apps/package.json | 8 ++++---- 7 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 apps/app/ui-tests-app/button/highlight-4740/highlight-4740.css create mode 100644 apps/app/ui-tests-app/button/highlight-4740/highlight-4740.ts create mode 100644 apps/app/ui-tests-app/button/highlight-4740/highlight-4740.xml create mode 100644 apps/app/ui-tests-app/button/highlight-4740/sub-page.ts create mode 100644 apps/app/ui-tests-app/button/highlight-4740/sub-page.xml diff --git a/apps/app/ui-tests-app/button/highlight-4740/highlight-4740.css b/apps/app/ui-tests-app/button/highlight-4740/highlight-4740.css new file mode 100644 index 000000000..621669761 --- /dev/null +++ b/apps/app/ui-tests-app/button/highlight-4740/highlight-4740.css @@ -0,0 +1,7 @@ +.btn { + font-size: 18; +} + +.btn:highlighted { + background-color: red +} \ No newline at end of file diff --git a/apps/app/ui-tests-app/button/highlight-4740/highlight-4740.ts b/apps/app/ui-tests-app/button/highlight-4740/highlight-4740.ts new file mode 100644 index 000000000..8b2ef7505 --- /dev/null +++ b/apps/app/ui-tests-app/button/highlight-4740/highlight-4740.ts @@ -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"); +} diff --git a/apps/app/ui-tests-app/button/highlight-4740/highlight-4740.xml b/apps/app/ui-tests-app/button/highlight-4740/highlight-4740.xml new file mode 100644 index 000000000..cf81614ad --- /dev/null +++ b/apps/app/ui-tests-app/button/highlight-4740/highlight-4740.xml @@ -0,0 +1,7 @@ + + + +