-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #710 from bouraqadi/revert-method-version-context-…
…menu-bug-fix-pharo-issue-16045 Bug fix for Pharo issue 16045
- Loading branch information
Showing
5 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
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
7 changes: 7 additions & 0 deletions
7
src/NewTools-MethodBrowsers-Tests/StVersionBrowserPresenter.extension.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,7 @@ | ||
Extension { #name : 'StVersionBrowserPresenter' } | ||
|
||
{ #category : '*NewTools-MethodBrowsers-Tests' } | ||
StVersionBrowserPresenter >> selectIndex: index [ | ||
|
||
messageList selectIndex: index | ||
] |
41 changes: 41 additions & 0 deletions
41
src/NewTools-MethodBrowsers-Tests/StVersionBrowserPresenterTest.class.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,41 @@ | ||
Class { | ||
#name : 'StVersionBrowserPresenterTest', | ||
#superclass : 'TestCase', | ||
#instVars : [ | ||
'class', | ||
'factory' | ||
], | ||
#category : 'NewTools-MethodBrowsers-Tests', | ||
#package : 'NewTools-MethodBrowsers-Tests' | ||
} | ||
|
||
{ #category : 'running' } | ||
StVersionBrowserPresenterTest >> setUp [ | ||
super setUp. | ||
factory := ClassFactoryForTestCase new. | ||
class := factory newClass | ||
|
||
] | ||
|
||
{ #category : 'running' } | ||
StVersionBrowserPresenterTest >> tearDown [ | ||
factory cleanUp. | ||
super tearDown | ||
] | ||
|
||
{ #category : 'running' } | ||
StVersionBrowserPresenterTest >> testRevertOldMethod [ | ||
| browser | | ||
class compile: 'm | ||
^1'. | ||
self assert: class new m equals: 1. | ||
class compile: 'm | ||
^2'. | ||
self assert: class new m equals: 2. | ||
browser := StVersionBrowserPresenter on: class >> #m. | ||
browser selectIndex: browser changeList size. | ||
browser doRevert. | ||
self assert: class new m equals: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Package { #name : 'NewTools-MethodBrowsers-Tests' } |
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