Skip to content

Commit

Permalink
Fixing copyStackToClipboard debugger action
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenCostiou committed Jul 29, 2020
1 parent 4ccebb7 commit 197c227
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/NewTools-Debugger-Tests/StDebuggerTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,16 @@ StDebuggerTest >> testContextUnchangedAfterStepOver [
self assert: dbg inspector inspectedObject == currentContext
]

{ #category : #'tests - actions' }
StDebuggerTest >> testCopyStackToClipboard [
debugger := self debuggerOn: session.
debugger copyStackToClipboard.
self
assert: Clipboard clipboardText string
equals: (String streamContents: [ :s |
session interruptedContext shortDebugStackOn: s ])
]

{ #category : #'tests - initialization' }
StDebuggerTest >> testDebuggerApplication [
self
Expand Down
2 changes: 1 addition & 1 deletion src/NewTools-Debugger/StDebugger.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ StDebugger >> context [

{ #category : #actions }
StDebugger >> copyStackToClipboard [
self debuggerActionModel peelToFirstLike: self currentContext
self debuggerActionModel copyStackToClipboard
]

{ #category : #actions }
Expand Down

0 comments on commit 197c227

Please sign in to comment.