-
Notifications
You must be signed in to change notification settings - Fork 67
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 #1473 from Ducasse/introduceInformDuring
Introduce inform during
- Loading branch information
Showing
9 changed files
with
304 additions
and
153 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
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
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
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,44 @@ | ||
Class { | ||
#name : 'SpDialogTest', | ||
#superclass : 'TestCase', | ||
#category : 'Spec2-Dialogs-Tests', | ||
#package : 'Spec2-Dialogs-Tests' | ||
} | ||
|
||
{ #category : 'tests - informUserDuring' } | ||
SpDialogTest >> testInformUserDuring [ | ||
|
||
self shouldnt: [ SpInformUserDialog new informUser: 'hello' during: [ (Delay forMilliseconds: 100) wait] ] raise: Error | ||
] | ||
|
||
{ #category : 'tests - progress bar' } | ||
SpDialogTest >> testInformUserDuringExecutesItsBlock [ | ||
|
||
| executed | | ||
executed := false. | ||
SpInformUserDialog new informUser: 'hello' during: [ executed := true ]. | ||
self assert: executed. | ||
] | ||
|
||
{ #category : 'tests - informUserDuring' } | ||
SpDialogTest >> testInformUserDuringViaApplication [ | ||
|
||
self shouldnt: [ SpPresenter new application informUser: 'hello' during: [ (Delay forMilliseconds: 100) wait] ] raise: Error. | ||
|
||
] | ||
|
||
{ #category : 'tests - informUserDuring' } | ||
SpDialogTest >> testInformUserDuringViaPresenter [ | ||
|
||
self shouldnt: [ SpPresenter new informUser: 'hello' during: [ (Delay forMilliseconds: 100) wait] ] raise: Error. | ||
self shouldnt: [ SpPresenter new informUser: 'hello' during: [ (Delay forMilliseconds: 100) wait] ] raise: Error | ||
] | ||
|
||
{ #category : 'tests - progress bar' } | ||
SpDialogTest >> testProgressInformUserDuringExecutesItsBlock [ | ||
|
||
| executed | | ||
executed := false. | ||
SpProgressDialog new informUser: 'hello' during: [ executed := true. ]. | ||
self assert: executed. | ||
] |
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 : 'Spec2-Dialogs-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
Oops, something went wrong.