-
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.
Test Morph Closed In World deletes Morph in Editor.
- Loading branch information
Showing
4 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...ages/AnimationsEditor-Tests.package/AnimationsEditorTest.class/instance/morphIsDeleted.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,4 @@ | ||
support | ||
morphIsDeleted | ||
"replace with self animationsEditorInstance selectedTreeNoe isNil" | ||
^self animationsEditorInstance propertyTreeMorph submorphs first submorphs size = 1. |
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
20 changes: 20 additions & 0 deletions
20
...ests.package/AnimationsEditorTest.class/instance/testMorphClosedInWorldTreeSpecUpdated.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,20 @@ | ||
testing | ||
testMorphClosedInWorldTreeSpecUpdated | ||
|morph goalReached monitor producer finished| | ||
morph:= Morph new. | ||
morph openInWorld. | ||
|
||
self animationsEditorInstance selectedTreeNode: (self animationsEditorInstance addTargetMorph: morph). | ||
morph isFlexed | ||
ifTrue: [morph owner abandon]. "removes FlexShell" | ||
|
||
goalReached := false. | ||
finished := Semaphore new. | ||
monitor := Monitor new. | ||
producer := [ | ||
[monitor critical: | ||
[monitor waitUntil: [self morphIsDeleted]. | ||
monitor signal]] | ||
whileFalse. | ||
finished signal. | ||
self assert: self animationsEditorInstance propertyTreeMorph submorphs first submorphs size = 1.]. |
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