Skip to content

Commit

Permalink
Fix: testUIProcessIsRecognised
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenCostiou committed Aug 26, 2020
1 parent a1fd523 commit ea945f0
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/Debugger-Oups-Tests/OupsDebuggerSystemTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ OupsDebuggerSystemTest >> createDummyDebugRequestForNotUIProcess [

{ #category : #tests }
OupsDebuggerSystemTest >> createDummyDebugRequestForUIProcess [

| exception |
[ Exception signal ] on: Exception do: [ :e | exception := e ].
^ OupsDummyDebugRequest newForException: exception
[ Exception signal ]
on: Exception
do: [ :e | exception := e ].
^ (OupsDummyDebugRequest newForException: exception)
process: UIManager default uiProcess;
yourself
]

{ #category : #running }
Expand Down Expand Up @@ -104,8 +109,10 @@ OupsDebuggerSystemTest >> testPreDebugActionExecuted [

{ #category : #tests }
OupsDebuggerSystemTest >> testUIProcessIsRecognised [

"Test that a DebuggerSystem opening a DebugRequest on the ui process will spawn a new UI process"
debuggerSystem openDebuggerOnRequest: self createDummyDebugRequestForUIProcess.

debuggerSystem spawnNewUIProcessIfNecessary:
self createDummyDebugRequestForUIProcess.
self assert: debuggerSystem newUIProcessSpawned

]

0 comments on commit ea945f0

Please sign in to comment.