From f9b0f6268dbb9e45674043e7222decb90741f573 Mon Sep 17 00:00:00 2001 From: Manol Donev Date: Tue, 19 Jun 2018 17:52:02 +0300 Subject: [PATCH] refactor: animation app (#5968) --- .../app/App_Resources/Android/app.gradle | 2 +- .../app/chaining-with-animation-set/page.ts | 54 +++++++++++++++++++ .../app/chaining-with-animation-set/page.xml | 16 ++++++ e2e/animation/app/home/home-page.ts | 41 ++++---------- e2e/animation/app/home/home-page.xml | 37 ++++++++----- e2e/animation/e2e/animation.e2e-spec.ts | 33 +++++++----- e2e/animation/e2e/screen.ts | 18 ++++++- e2e/animation/package.json | 4 ++ 8 files changed, 145 insertions(+), 60 deletions(-) create mode 100644 e2e/animation/app/chaining-with-animation-set/page.ts create mode 100644 e2e/animation/app/chaining-with-animation-set/page.xml diff --git a/e2e/animation/app/App_Resources/Android/app.gradle b/e2e/animation/app/App_Resources/Android/app.gradle index b7f79695b..ad050c828 100644 --- a/e2e/animation/app/App_Resources/Android/app.gradle +++ b/e2e/animation/app/App_Resources/Android/app.gradle @@ -8,7 +8,7 @@ android { defaultConfig { generatedDensities = [] - applicationId = "org.nativescript.modalnavigation" + applicationId = "org.nativescript.animation" } aaptOptions { additionalParameters "--no-version-vectors" diff --git a/e2e/animation/app/chaining-with-animation-set/page.ts b/e2e/animation/app/chaining-with-animation-set/page.ts new file mode 100644 index 000000000..71c90f621 --- /dev/null +++ b/e2e/animation/app/chaining-with-animation-set/page.ts @@ -0,0 +1,54 @@ +import { EventData, Page } from "tns-core-modules/ui/page"; +import { Animation, AnimationDefinition } from "tns-core-modules/ui/animation"; +import { Label } from "tns-core-modules/ui/label"; + +let view1: Label; +let view2: Label; +let view3: Label; +let view4: Label; + +export function pageLoaded(args: EventData) { + const page = args.object; + view1 = page.getViewById