-
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.
tests for module Keyframes are complete
- Loading branch information
Showing
31 changed files
with
47 additions
and
10 deletions.
There are no files selected for viewing
12 changes: 11 additions & 1 deletion
12
packages/AnimationsEditor-Core.package/AnimationsEditorKeyframe.class/instance/property.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,6 +1,16 @@ | ||
accessing | ||
property | ||
|
||
^self track property. | ||
|targetMorph property parentProperty propertyList| | ||
|
||
parentProperty := self track property parentProperty title. | ||
propertyList := self animationsEditor propertyList. | ||
targetMorph := propertyList detect: [:each | parentProperty match: each title]. | ||
|
||
|
||
targetMorph hasSubproperties | ||
ifTrue: [property := targetMorph subproperties detect: [:each| self track property asString match: each asString]]. | ||
^property | ||
"^self track property." | ||
|
||
|
3 changes: 3 additions & 0 deletions
3
packages/AnimationsEditor-Core.package/AnimationsEditorKeyframe.class/instance/value.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
value | ||
^ value |
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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
...ionsEditor-Tests.package/AnimationsEditorKeyframeTest.class/instance/selectKeyframe100.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
support | ||
selectKeyframe100 | ||
|
||
self keyframe100 setValueAndFrame. | ||
self animationsEditorInstance selectedTreeNode: self keyframe100 property. |
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
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
...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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
testing | ||
testChangeSelectedKeyframeValue | ||
| sizeBeforeChange oldValue oldTargetValues| | ||
|
||
self selectKeyframe100. | ||
|
||
sizeBeforeChange := self propertyRotation targetValues size. | ||
oldValue := self propertyRotation targetValues at: (self frameNumber100). | ||
oldTargetValues := self propertyRotation targetValues deepCopy. | ||
self createKeyframeWith: self animationRotation200 on: self frameNumber100. | ||
|
||
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). | ||
|
3 changes: 1 addition & 2 deletions
3
...nce/testLeftClickShowsSelectedProperty.st → ...nce/testLeftClickShowsSelectedProperty.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
File renamed without changes.
File renamed without changes.
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
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