Skip to content

Commit

Permalink
Added animation tests (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmatuschek committed Aug 7, 2020
1 parent 3d0cd68 commit 855134e
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ testPlayAnimations
animationsEditorInstance addTargetMorph: morph.

self flag: #todo.
"positionProperty := ((animationsEditorInstance propertyList at: 2) subproperties at: 1).
positionProperty := ((animationsEditorInstance propertyList at: 2) subproperties at: 3).
positionProperty positionX: 555.
positionProperty positionY: 555.

animationsEditorInstance selectedTreeNode: positionProperty.
animationsEditorInstance playAnimations.
morph abandon."

animationsEditorInstance windowReference abandon.
morph abandon.

self assert: true. "no errors = good"
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ testSelectMorphByHand

animationsEditorInstance windowReference abandon.
morph abandon.

self flag: #todo.
self assert: true. "no errors = good"

self assert: true.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
initialize-release
testTreeSpecProperty
| animationsEditorInstance |

animationsEditorInstance := AnimationsEditor open.
self assert: (animationsEditorInstance propertyList size = 1).

animationsEditorInstance windowReference abandon.
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
initialize-release
testTreeSpecPropertyStartEnd
| animationsEditorInstance |

animationsEditorInstance := AnimationsEditor open.
self assert: (animationsEditorInstance propertyList size = 1).

animationsEditorInstance seedProperties.
self assert: (animationsEditorInstance propertyList size = 2).

self assert: (animationsEditorInstance propertyList size = 2).
animationsEditorInstance windowReference abandon.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
initialize-release
testTreeSpecWithNoMorph
| animationsEditorInstance |
animationsEditorInstance := AnimationsEditor open.

self assert: (animationsEditorInstance propertyList size = 1).
animationsEditorInstance windowReference abandon.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ initialize-release
testTreeSpecWithOneMorph
| animationsEditorInstance morph |
animationsEditorInstance := AnimationsEditor open.
self assert: (animationsEditorInstance propertyList size = 1).

morph := Morph new.
morph openInWorld.
animationsEditorInstance addTargetMorph: morph.

self assert: (animationsEditorInstance propertyList size = 2).

animationsEditorInstance windowReference abandon.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
"testEmptyPanelsSetter" : "DM 8/7/2020 17:37",
"testGetDeepestMorph" : "DM 8/4/2020 13:26",
"testInstanceCreation" : "DM 8/4/2020 13:26",
"testPlayAnimations" : "DM 8/4/2020 13:29",
"testSelectMorphByHand" : "DM 8/4/2020 13:30",
"testPlayAnimations" : "DM 8/7/2020 19:05",
"testSelectMorphByHand" : "DM 8/7/2020 18:59",
"testToolBuilderGetter" : "DM 8/7/2020 17:53",
"testToolBuilderSetter" : "DM 8/7/2020 17:53",
"testTreeSpec" : "DM 8/4/2020 13:31",
"testTreeSpecPropertyStartEnd" : "DM 8/4/2020 13:31",
"testTreeSpecWithOneMorph" : "DM 8/4/2020 13:31",
"testTreeSpecProperty" : "DM 8/7/2020 18:59",
"testTreeSpecPropertyStartEnd" : "DM 8/7/2020 18:59",
"testTreeSpecWithNoMorph" : "DM 8/7/2020 18:59",
"testTreeSpecWithOneMorph" : "DM 8/7/2020 18:59",
"testTreeSpecWithOneMorphPosition" : "DM 8/4/2020 13:31" } }

0 comments on commit 855134e

Please sign in to comment.