Skip to content

Commit

Permalink
Test Morph Closed In World deletes Morph in Editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
ninaanre committed Jul 30, 2022
1 parent 8923e97 commit 3b5ab1a
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
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.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ tearDown
| targetMorph |

super tearDown.
self animationsEditorInstance propertyList first ifNotNil: [
targetMorph := (self animationsEditorInstance propertyList first) targetMorph.
targetMorph isFlexed
ifTrue: [targetMorph owner abandon]. "removes FlexShell"
targetMorph abandon.
targetMorph abandon. ].
self animationsEditorInstance windowReference abandon.


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.].
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"instance" : {
"animationsEditorInstance" : "MH 8/1/2021 18:39",
"animationsEditorInstance:" : "MH 8/1/2021 18:39",
"setUp" : "LW 6/27/2021 13:26",
"tearDown" : "Noel Bastubbe 6/22/2022 11:55",
"morphIsDeleted" : "NR 7/30/2022 16:23",
"setUp" : "NR 7/30/2022 15:15",
"tearDown" : "NR 7/30/2022 15:15",
"testGetDeepestMorph" : "MH 8/1/2021 18:40",
"testInstanceCreation" : "LW 6/27/2021 13:30",
"testMorphClosedInWorldTreeSpecUpdated" : "NR 7/30/2022 16:24",
"testPlayAnimations" : "Noel Bastubbe 6/22/2022 11:52",
"testSelectMorphByHand" : "MH 8/1/2021 18:40",
"testShowMessagePlayAnimation" : "Noel Bastubbe 6/22/2022 11:56",
Expand Down

0 comments on commit 3b5ab1a

Please sign in to comment.