Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraskelton committed Jul 22, 2015
1 parent 257e9c2 commit a16f5d8
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Example/JazzHandsTests/IFTTTAnimationSpec.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,12 @@
IFTTTRotationAnimation *rotationAnimation = [IFTTTRotationAnimation animationWithView:label];
IFTTTScaleAnimation *scaleAnimation = [IFTTTScaleAnimation animationWithView:label];
IFTTTLayerStrokeEndAnimation *strokeEndAnimation = [IFTTTLayerStrokeEndAnimation animationWithLayer:layer];
IFTTTLayerStrokeStartAnimation *strokeStartAnimation = [IFTTTLayerStrokeStartAnimation animationWithLayer:layer];
IFTTTTextColorAnimation *textColorAnimation = [IFTTTTextColorAnimation animationWithLabel:label];
IFTTTTransform3DAnimation *transformAnimation = [IFTTTTransform3DAnimation animationWithView:label];
IFTTTTranslationAnimation *translationAnimation = [IFTTTTranslationAnimation animationWithView:label];

// Note: None of the three constraint animations can be used with each other or with the frame animation.
// They affect the same view properties.
// They affect the same view properties. Also, IFTTTStrokeStartAnimation cannot be used with IFTTTStrokeEndAnimation.

[alphaAnimation addKeyframeForTime:2 alpha:0.5f];
[colorAnimation addKeyframeForTime:2 color:[UIColor redColor]];
Expand All @@ -51,7 +50,6 @@
[rotationAnimation addKeyframeForTime:2 rotation:45.f];
[scaleAnimation addKeyframeForTime:2 scale:0.4f];
[strokeEndAnimation addKeyframeForTime:2 strokeEnd:0.8f];
[strokeStartAnimation addKeyframeForTime:2 strokeStart:0.1f];
[textColorAnimation addKeyframeForTime:2 color:[UIColor greenColor]];
[translationAnimation addKeyframeForTime:2 translation:CGPointMake(20.f, 30.f)];

Expand All @@ -69,7 +67,6 @@
[animator addAnimation:rotationAnimation];
[animator addAnimation:scaleAnimation];
[animator addAnimation:strokeEndAnimation];
[animator addAnimation:strokeStartAnimation];
[animator addAnimation:textColorAnimation];
[animator addAnimation:translationAnimation];
[animator addAnimation:transformAnimation];
Expand All @@ -95,11 +92,7 @@
});

it(@"should have the correct stroke end", ^{
expect(layer.strokeEnd).to.beCloseTo(0.8f);
});

it(@"should have the correct stroke start", ^{
expect(layer.strokeStart).to.beCloseTo(0.1f);
expect(layer.timeOffset).to.beCloseTo(0.8f);
});

it(@"should have the correct text color", ^{
Expand Down

0 comments on commit a16f5d8

Please sign in to comment.