-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
14 changes: 8 additions & 6 deletions
14
...ts.package/AnimationsEditorKeyframeTest.class/instance/testChangeSelectedKeyframeValue.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
testing | ||
testChangeSelectedKeyframeValue | ||
| sizeBeforeChange oldValue oldTargetValues| | ||
| oldValue oldTargetValues notChangedOldTargetValues newValue notChangedNewTargetValues| | ||
|
||
self selectKeyframe100. | ||
|
||
sizeBeforeChange := self propertyRotation targetValues size. | ||
oldValue := self propertyRotation targetValues at: (self frameNumber100). | ||
oldTargetValues := self propertyRotation targetValues deepCopy. | ||
notChangedOldTargetValues := oldTargetValues removeKey: self frameNumber100; yourself. | ||
|
||
self createKeyframeWith: self animationRotation200 on: self frameNumber100. | ||
|
||
newValue := self propertyRotation targetValues at: self frameNumber100. | ||
notChangedNewTargetValues := self propertyRotation targetValues removeKey: self frameNumber100; yourself. | ||
|
||
self assert: sizeBeforeChange = self propertyRotation targetValues size. | ||
self deny: oldValue equals: (self propertyRotation targetValues at: self frameNumber100). | ||
self deny: oldTargetValues equals: self propertyRotation targetValues. | ||
self assert: (oldTargetValues removeKey: self frameNumber100; yourself) equals: (self propertyRotation targetValues removeKey: self frameNumber100; yourself). | ||
self deny: oldValue equals: newValue. | ||
self assert: notChangedOldTargetValues equals: notChangedNewTargetValues. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters