Skip to content

Commit

Permalink
- fixed broken tests
Browse files Browse the repository at this point in the history
- added list of methods for all tests planned
  • Loading branch information
cedric-lorenz committed May 23, 2021
1 parent bc0ccc2 commit 7f6d817
Show file tree
Hide file tree
Showing 22 changed files with 82 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
as yet unclassified
testCreateAnimationForWithKeyWithLastKeyWithValueWithTargetValue

"test that it returns a composite animation according to the input values"
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ testTargetColorGetterAsString
| p |
p := AnimationsEditorPropertyColor new.

self assert: (p targetColorAsString = p defaultTargetColor asString).
self assert: (p targetColorAsString = (p defaultTargetColor asString copyReplaceAll: 'Color ' with: '')).
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"instance" : {
"testCanCreateAnimation" : "DM 8/7/2020 17:19",
"testCanRenderUI" : "DM 8/7/2020 17:19",
"testCreateAnimationForWithKeyWithLastKeyWithValueWithTargetValue" : "CL 5/23/2021 15:52",
"testInstanceCreation" : "DM 8/7/2020 17:19",
"testTargetColorGetter" : "DM 8/7/2020 17:32",
"testTargetColorGetterAsString" : "DM 8/7/2020 17:31",
"testTargetColorGetterAsString" : "CL 5/23/2021 14:50",
"testTargetColorSetter" : "DM 8/7/2020 17:21" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
as yet unclassified
testCreateAnimationForWithKeyWithLastKeyWithValueWithTargetValue

"test that it returns an animation according to the input values"
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"instance" : {
"testCanCreateAnimation" : "DM 8/7/2020 13:41",
"testCanRenderUI" : "DM 8/7/2020 13:42",
"testCreateAnimationForWithKeyWithLastKeyWithValueWithTargetValue" : "CL 5/23/2021 15:53",
"testInstanceCreation" : "DM 8/4/2020 13:33",
"testPositionXGetter" : "DM 8/7/2020 13:15",
"testPositionXSetter" : "DM 8/7/2020 13:13",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
as yet unclassified
testCreateAnimationForWithKeyWithLastKeyWithValueWithTargetValue

"test that it returns an animation according to the input values"
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"instance" : {
"testCanCreateAnimation" : "DM 8/7/2020 17:14",
"testCanRenderUI" : "DM 8/7/2020 17:14",
"testCreateAnimationForWithKeyWithLastKeyWithValueWithTargetValue" : "CL 5/23/2021 15:53",
"testInstanceCreation" : "DM 8/7/2020 17:14",
"testTargetRotationGetter" : "DM 8/7/2020 17:17",
"testTargetRotationGetterAsString" : "DM 8/7/2020 17:17",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
as yet unclassified
testCreateAnimationForWithKeyWithLastKeyWithValueWithTargetValue

"test that it returns an animation according to the input values"
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"instance" : {
"testCanCreateAnimation" : "DM 8/7/2020 17:22",
"testCanRenderUI" : "DM 8/7/2020 17:22",
"testCreateAnimationForWithKeyWithLastKeyWithValueWithTargetValue" : "CL 5/23/2021 15:53",
"testHeightGetter" : "DM 8/7/2020 17:26",
"testHeightSetter" : "DM 8/7/2020 17:26",
"testInstanceCreation" : "DM 8/7/2020 17:22",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
as yet unclassified
testCreateCompositeAnimationForWithStartEnd

"test that orderedColl containing all the animations is generated correctly based on a given key-value array"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
as yet unclassified
testOnlyPlaysAnimationInsideStartEndTime

"test that createCompositeAnimationFor:withStartEnd: only inserts those animations that are inside our time bounds"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
as yet unclassified
testPlayAnimationWithStartEnd

"test that building of compAnim works"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
as yet unclassified
testShowMessageKeyframeOutOfBounds

"test that createCompositeAnimationFor:withStartEnd: outputs warning message if keyframes out of start/endtime"
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
},
"instance" : {
"testComparators" : "DM 8/4/2020 13:46",
"testCreateCompositeAnimationForWithStartEnd" : "CL 5/23/2021 15:45",
"testEmptySubProperties" : "DM 8/4/2020 13:47",
"testHasSubProperties" : "DM 8/4/2020 13:47",
"testInstanceCreation" : "DM 8/4/2020 13:47",
"testSetTitle" : "DM 8/4/2020 13:46" } }
"testOnlyPlaysAnimationInsideStartEndTime" : "CL 5/23/2021 15:55",
"testPlayAnimationWithStartEnd" : "CL 5/23/2021 15:46",
"testSetTitle" : "DM 8/4/2020 13:46",
"testShowMessageKeyframeOutOfBounds" : "CL 5/23/2021 15:48" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
animationsEditorInstance: anObject

animationsEditorInstance := anObject.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
animationsEditorInstance

^ animationsEditorInstance
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
initialize-release
setUp
| morph |

super setUp.
self animationsEditorInstance: AnimationsEditor open.
morph := Morph new.
morph openInWorld.
self animationsEditorInstance addTargetMorph: morph.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
initialize-release
tearDown
(self animationsEditorInstance propertyList at: 2) targetMorph owner abandon.
(self animationsEditorInstance propertyList at: 2) targetMorph abandon.
self animationsEditorInstance windowReference abandon.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@ testPlayAnimations

self flag: #todo.
positionProperty := ((animationsEditorInstance propertyList at: 2) subproperties at: 3).

animationsEditorInstance selectedTreeNode: positionProperty.

positionProperty positionX: 555.
positionProperty positionY: 555.
positionProperty frame: 500.
positionProperty addKeyframe.

animationsEditorInstance selectedTreeNode: positionProperty.
animationsEditorInstance playAnimations.

animationsEditorInstance windowReference abandon.
morph owner abandon.
morph abandon.

self assert: true. "no errors = good"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
initialize-release
testShowMessagePlayAnimation

"test that 'Playing selected Animation' is shown"
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@
"class" : {
},
"instance" : {
"animationsEditorInstance" : "CL 5/23/2021 15:02",
"animationsEditorInstance:" : "CL 5/23/2021 15:02",
"setUp" : "CL 5/23/2021 15:31",
"tearDown" : "CL 5/23/2021 15:33",
"testEmptyPanelsGetter" : "DM 8/7/2020 17:52",
"testEmptyPanelsSetter" : "DM 8/7/2020 17:37",
"testGetDeepestMorph" : "DM 8/4/2020 13:26",
"testInstanceCreation" : "DM 8/4/2020 13:26",
"testPlayAnimations" : "DM 8/7/2020 19:05",
"testPlayAnimations" : "CL 5/23/2021 15:35",
"testSelectMorphByHand" : "DM 8/7/2020 18:59",
"testShowMessagePlayAnimation" : "CL 5/23/2021 15:49",
"testToolBuilderGetter" : "DM 8/7/2020 17:53",
"testToolBuilderSetter" : "DM 8/7/2020 17:53",
"testTreeSpecProperty" : "DM 8/7/2020 18:59",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
],
"commentStamp" : "",
"instvars" : [
],
"animationsEditorInstance" ],
"name" : "AnimationsEditorTest",
"pools" : [
],
Expand Down

0 comments on commit 7f6d817

Please sign in to comment.