-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vincent Opitz
committed
May 29, 2019
1 parent
327897c
commit 5ddcad4
Showing
7 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
packages/Presenter-Core.package/PSAdvancedMenuBar.class/instance/removeAllButtons.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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
as yet unclassified | ||
removeAllButtons | ||
|
||
self buttons do: [:each | each abandon] | ||
self buttons do: [:each | each abandon]. | ||
self buttons removeAll |
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
4 changes: 4 additions & 0 deletions
4
packages/Presenter-Tests.package/PSOnSlideTest.class/instance/tool.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,4 @@ | ||
accessing | ||
tool | ||
|
||
^ self slideContainer model |
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
11 changes: 11 additions & 0 deletions
11
...r-Tests.package/PSSlideSubmorphTest.class/instance/testAdvancedMenuBarHasAllTheButtons.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,11 @@ | ||
container tests | ||
testAdvancedMenuBarHasAllTheButtons | ||
|
||
| actionSelectorsWanted actionSelectorsGotten | | ||
self click: MouseEvent redButton at: self morph center. | ||
actionSelectorsWanted := self container menuBarItems reject: [:each | each at: #noButton ifAbsent: [false]]. | ||
actionSelectorsWanted := actionSelectorsWanted collect: [:each | each at: #action]. | ||
actionSelectorsGotten := self tool advancedMenuBar buttons collect: [:each | each actionSelector]. | ||
self assert: actionSelectorsWanted asSet equals: actionSelectorsGotten asSet. | ||
|
||
|
7 changes: 7 additions & 0 deletions
7
...ackage/PSSlideSubmorphTest.class/instance/testAdvancedMenuBarHasNoButtonsAfterUnselect.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 @@ | ||
container tests | ||
testAdvancedMenuBarHasNoButtonsAfterUnselect | ||
|
||
self tool removeSelection. | ||
self assert: self tool advancedMenuBar buttons isEmpty | ||
|
||
|
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