@@ -2026,6 +2026,31 @@ SindarinDebuggerTest >> testStepUntilOverAnEnsureBlock [
20262026
20272027]
20282028
2029+ { #category : ' tests' }
2030+ SindarinDebuggerTest >> testSteppingAQuickMethod [
2031+
2032+ | newContext aMethodContext |
2033+ aMethodContext := Context
2034+ sender: thisContext
2035+ receiver: Rectangle new
2036+ method: Rectangle >> #center
2037+ arguments: #( ) .
2038+
2039+ aMethodContext step.
2040+ aMethodContext stepIntoQuickMethod: true .
2041+ newContext := aMethodContext step.
2042+
2043+ " We're in the quick method now, it should be steppable"
2044+ self assert: newContext sender identicalTo: aMethodContext.
2045+ self deny: newContext instructionStream willReturn.
2046+
2047+ newContext := newContext step.
2048+ self assert: newContext instructionStream willReturn.
2049+
2050+ newContext := newContext step.
2051+ self assert: newContext identicalTo: aMethodContext
2052+ ]
2053+
20292054{ #category : ' tests' }
20302055SindarinDebuggerTest >> testSteppingAnExecutionSignalingExceptions [
20312056 | scdbg |
@@ -2041,6 +2066,28 @@ SindarinDebuggerTest >> testSteppingAnExecutionSignalingExceptions [
20412066 raise: UnhandledExceptionSignalledByADebuggedExecution
20422067]
20432068
2069+ { #category : ' tests' }
2070+ SindarinDebuggerTest >> testSteppingReturnSelfMethod [
2071+
2072+ |newContext aMethodContext |
2073+ aMethodContext := Context
2074+ sender: thisContext
2075+ receiver: SimulationMock new
2076+ method: (SimulationMock >> #exampleSelfReturnCall )
2077+ arguments: #() .
2078+
2079+ aMethodContext step.
2080+ aMethodContext stepIntoQuickMethod: true .
2081+ newContext := aMethodContext step.
2082+
2083+ " We're in the quick method now, it should be steppable"
2084+ self assert: newContext sender identicalTo: aMethodContext.
2085+ self assert: newContext instructionStream willReturn.
2086+
2087+ newContext := newContext step.
2088+ self assert: newContext identicalTo: aMethodContext
2089+ ]
2090+
20442091{ #category : ' tests' }
20452092SindarinDebuggerTest >> testTemporaryNamed [
20462093 | dbg |
0 commit comments