11import * as TKUnit from '../../tk-unit' ;
22import * as styleScope from '@nativescript/core/ui/styling/style-scope' ;
33import * as keyframeAnimation from '@nativescript/core/ui/animation/keyframe-animation' ;
4- import { Enums } from '@nativescript/core' ;
4+ import { CoreTypes } from '@nativescript/core' ;
55import * as helper from '../../ui-helper' ;
66import * as stackModule from '@nativescript/core/ui/layouts/stack-layout' ;
77import * as labelModule from '@nativescript/core/ui/label' ;
@@ -37,7 +37,7 @@ export function test_ReadAnimationProperties() {
3737 let animation = createAnimationFromCSS ( css , 'test' ) ;
3838 TKUnit . assertEqual ( animation . name , 'first' ) ;
3939 TKUnit . assertEqual ( animation . duration , 4000 ) ;
40- TKUnit . assertEqual ( animation . curve , Enums . AnimationCurve . easeIn ) ;
40+ TKUnit . assertEqual ( animation . curve , CoreTypes . AnimationCurve . easeIn ) ;
4141 TKUnit . assertEqual ( animation . delay , 1500 ) ;
4242 TKUnit . assertEqual ( animation . iterations , 10 ) ;
4343 TKUnit . assertTrue ( animation . isForwards ) ;
@@ -48,22 +48,22 @@ export function test_ReadTheAnimationProperty() {
4848 let animation = createAnimationFromCSS ( '.test { animation: second 0.2s ease-out 1 2 }' , 'test' ) ;
4949 TKUnit . assertEqual ( animation . name , 'second' ) ;
5050 TKUnit . assertEqual ( animation . duration , 200 ) ;
51- TKUnit . assertEqual ( animation . curve , Enums . AnimationCurve . easeOut ) ;
51+ TKUnit . assertEqual ( animation . curve , CoreTypes . AnimationCurve . easeOut ) ;
5252 TKUnit . assertEqual ( animation . delay , 1000 ) ;
5353 TKUnit . assertEqual ( animation . iterations , 2 ) ;
5454}
5555
5656export function test_ReadAnimationCurve ( ) {
5757 let animation = createAnimationFromCSS ( '.test { animation-timing-function: ease-in; }' , 'test' ) ;
58- TKUnit . assertEqual ( animation . curve , Enums . AnimationCurve . easeIn ) ;
58+ TKUnit . assertEqual ( animation . curve , CoreTypes . AnimationCurve . easeIn ) ;
5959 animation = createAnimationFromCSS ( '.test { animation-timing-function: ease-out; }' , 'test' ) ;
60- TKUnit . assertEqual ( animation . curve , Enums . AnimationCurve . easeOut ) ;
60+ TKUnit . assertEqual ( animation . curve , CoreTypes . AnimationCurve . easeOut ) ;
6161 animation = createAnimationFromCSS ( '.test { animation-timing-function: linear; }' , 'test' ) ;
62- TKUnit . assertEqual ( animation . curve , Enums . AnimationCurve . linear ) ;
62+ TKUnit . assertEqual ( animation . curve , CoreTypes . AnimationCurve . linear ) ;
6363 animation = createAnimationFromCSS ( '.test { animation-timing-function: ease-in-out; }' , 'test' ) ;
64- TKUnit . assertEqual ( animation . curve , Enums . AnimationCurve . easeInOut ) ;
64+ TKUnit . assertEqual ( animation . curve , CoreTypes . AnimationCurve . easeInOut ) ;
6565 animation = createAnimationFromCSS ( '.test { animation-timing-function: spring; }' , 'test' ) ;
66- TKUnit . assertEqual ( animation . curve , Enums . AnimationCurve . spring ) ;
66+ TKUnit . assertEqual ( animation . curve , CoreTypes . AnimationCurve . spring ) ;
6767 animation = createAnimationFromCSS ( '.test { animation-timing-function: cubic-bezier(0.1, 1.0, 0.5, 0.5); }' , 'test' ) ;
6868 let curve = animation . curve ;
6969 TKUnit . assert ( curve . x1 === 0.1 && curve . y1 === 1.0 && curve . x2 === 0.5 && curve . y2 === 0.5 ) ;
@@ -389,8 +389,8 @@ export function test_ReadTwoAnimations() {
389389 scope . ensureSelectors ( ) ;
390390 let selector = findSelectorInScope ( scope , 'test' ) ;
391391 TKUnit . assertEqual ( scope . getAnimations ( selector . ruleset ) . length , 2 ) ;
392- TKUnit . assertEqual ( scope . getAnimations ( selector . ruleset ) [ 0 ] . curve , Enums . AnimationCurve . easeOut ) ;
393- TKUnit . assertEqual ( scope . getAnimations ( selector . ruleset ) [ 1 ] . curve , Enums . AnimationCurve . easeIn ) ;
392+ TKUnit . assertEqual ( scope . getAnimations ( selector . ruleset ) [ 0 ] . curve , CoreTypes . AnimationCurve . easeOut ) ;
393+ TKUnit . assertEqual ( scope . getAnimations ( selector . ruleset ) [ 1 ] . curve , CoreTypes . AnimationCurve . easeIn ) ;
394394 TKUnit . assertEqual ( scope . getAnimations ( selector . ruleset ) [ 1 ] . name , 'two' ) ;
395395 TKUnit . assertEqual ( scope . getAnimations ( selector . ruleset ) [ 1 ] . duration , 2000 ) ;
396396}
@@ -401,12 +401,12 @@ export function test_AnimationCurveInKeyframes() {
401401 scope . ensureSelectors ( ) ;
402402 let selector = findSelectorInScope ( scope , 'test' ) ;
403403 let animation = scope . getAnimations ( selector . ruleset ) [ 0 ] ;
404- TKUnit . assertEqual ( animation . keyframes [ 0 ] . curve , Enums . AnimationCurve . linear ) ;
404+ TKUnit . assertEqual ( animation . keyframes [ 0 ] . curve , CoreTypes . AnimationCurve . linear ) ;
405405 TKUnit . assertEqual ( animation . keyframes [ 1 ] . curve , undefined ) ;
406406 TKUnit . assertEqual ( animation . keyframes [ 1 ] . curve , undefined ) ;
407407 let realAnimation = keyframeAnimation . KeyframeAnimation . keyframeAnimationFromInfo ( animation ) ;
408- TKUnit . assertEqual ( realAnimation . animations [ 1 ] . curve , Enums . AnimationCurve . linear ) ;
409- TKUnit . assertEqual ( realAnimation . animations [ 2 ] . curve , Enums . AnimationCurve . easeIn ) ;
408+ TKUnit . assertEqual ( realAnimation . animations [ 1 ] . curve , CoreTypes . AnimationCurve . linear ) ;
409+ TKUnit . assertEqual ( realAnimation . animations [ 2 ] . curve , CoreTypes . AnimationCurve . easeIn ) ;
410410}
411411
412412function getTransformsValues ( declarations ) {
0 commit comments