[squeak-dev] The Inbox: Tests-ct.466.mcz
Thiede, Christoph
Christoph.Thiede at student.hpi.uni-potsdam.de
Fri Oct 22 13:32:21 UTC 2021
(OT: Did I just manage to link from the class comment in this patch to the mail in which the patch would have been announced later? Ha, should have been http://lists.squeakfoundation.org/pipermail/squeak-dev/2021-October/216778.html, of course. I accuse the MVC-stacking like implementation in MorphicToolBuilder >> #runModal: for this trouble. (-:)
________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von commits at source.squeak.org <commits at source.squeak.org>
Gesendet: Freitag, 22. Oktober 2021 15:28:57
An: squeak-dev at lists.squeakfoundation.org
Betreff: [squeak-dev] The Inbox: Tests-ct.466.mcz
A new version of Tests was added to project The Inbox:
http://source.squeak.org/inbox/Tests-ct.466.mcz
==================== Summary ====================
Name: Tests-ct.466
Author: ct
Time: 22 October 2021, 3:28:55.369526 pm
UUID: 359b8eb8-e155-4448-8039-42ef17ccb09d
Ancestors: Tests-eem.464
Provides regression tests for an issue with background styling in Shout that is fixed in ShoutCore-ct.86.
=============== Diff against Tests-eem.464 ===============
Item was changed:
SystemOrganization addCategory: #'Tests-Bugs'!
SystemOrganization addCategory: #'Tests-Compiler'!
SystemOrganization addCategory: #'Tests-Dependencies'!
SystemOrganization addCategory: #'Tests-Digital Signatures'!
SystemOrganization addCategory: #'Tests-Environments'!
SystemOrganization addCategory: #'Tests-Exceptions'!
SystemOrganization addCategory: #'Tests-FilePackage'!
SystemOrganization addCategory: #'Tests-Files'!
SystemOrganization addCategory: #'Tests-Finalization'!
SystemOrganization addCategory: #'Tests-Hex'!
SystemOrganization addCategory: #'Tests-Installer-Core'!
SystemOrganization addCategory: #'Tests-Localization'!
SystemOrganization addCategory: #'Tests-Monticello'!
SystemOrganization addCategory: #'Tests-Monticello-Mocks'!
SystemOrganization addCategory: #'Tests-Monticello-Utils'!
SystemOrganization addCategory: #'Tests-Object Events'!
SystemOrganization addCategory: #'Tests-ObjectsAsMethods'!
SystemOrganization addCategory: #'Tests-PrimCallController'!
SystemOrganization addCategory: #'Tests-Release'!
SystemOrganization addCategory: #'Tests-System-Applications'!
SystemOrganization addCategory: #'Tests-System-Digital Signatures'!
SystemOrganization addCategory: #'Tests-System-Object Storage'!
SystemOrganization addCategory: #'Tests-System-Preferences'!
SystemOrganization addCategory: #'Tests-System-Support'!
SystemOrganization addCategory: #'Tests-Utilities'!
SystemOrganization addCategory: #'Tests-VM'!
SystemOrganization addCategory: #'Tests-Sound'!
+ SystemOrganization addCategory: #'Tests-ShoutCore-Styling'!
Item was added:
+ TestCase subclass: #ShoutBackgroundStylingTest
+ instanceVariableNames: 'styler text styledText'
+ classVariableNames: ''
+ poolDictionaries: ''
+ category: 'Tests-ShoutCore-Styling'!
+
+ !ShoutBackgroundStylingTest commentStamp: 'ct 10/22/2021 15:28' prior: 0!
+ Regression tests for background styling in Shout. See: http://lists.squeakfoundation.org/pipermail/squeak-dev/2021-October/216777.html.!
Item was added:
+ ----- Method: ShoutBackgroundStylingTest>>runDeferredUIMessages (in category 'support') -----
+ runDeferredUIMessages
+
+ self assert: Smalltalk isMorphic.
+
+ [Project current lastDeferredUIMessage]
+ whileNotNil: [Project current world runStepMethods].!
Item was added:
+ ----- Method: ShoutBackgroundStylingTest>>setUp (in category 'running') -----
+ setUp
+
+ super setUp.
+
+ self runDeferredUIMessages.
+ styler := SHTextStylerST80 new view: self.
+ text := 'foo ^2+3' asText.
+ styledText := nil.!
Item was added:
+ ----- Method: ShoutBackgroundStylingTest>>stylerStyledInBackground: (in category 'mock view') -----
+ stylerStyledInBackground: aText
+
+ styledText := aText!
Item was added:
+ ----- Method: ShoutBackgroundStylingTest>>testBackgroundStyling (in category 'tests') -----
+ testBackgroundStyling
+
+ styler styleInBackgroundProcess: text.
+
+ self waitForDeferredUIMessages.
+ self runDeferredUIMessages.
+
+ self assert: text equals: styledText.!
Item was added:
+ ----- Method: ShoutBackgroundStylingTest>>testDiscardBackgroundStyling1 (in category 'tests') -----
+ testDiscardBackgroundStyling1
+
+ styler styleInBackgroundProcess: text.
+
+ styler discardBackgroundStyling.
+ self runDeferredUIMessages.
+
+ self assert: styledText isNil.!
Item was added:
+ ----- Method: ShoutBackgroundStylingTest>>testDiscardBackgroundStyling2 (in category 'tests') -----
+ testDiscardBackgroundStyling2
+
+ styler styleInBackgroundProcess: text.
+
+ self waitForDeferredUIMessages.
+ styler discardBackgroundStyling.
+ self runDeferredUIMessages.
+
+ self assert: styledText isNil.!
Item was added:
+ ----- Method: ShoutBackgroundStylingTest>>testDiscardBackgroundStyling3 (in category 'tests') -----
+ testDiscardBackgroundStyling3
+
+ styler styleInBackgroundProcess: text.
+
+ self waitForDeferredUIMessages.
+ self runDeferredUIMessages.
+ styler discardBackgroundStyling.
+
+ self assert: text equals: styledText.!
Item was added:
+ ----- Method: ShoutBackgroundStylingTest>>waitForDeferredUIMessages (in category 'support') -----
+ waitForDeferredUIMessages
+
+ [Project current lastDeferredUIMessage]
+ whileNil: [10 milliSeconds wait].!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20211022/c66e0b7f/attachment.html>
More information about the Squeak-dev
mailing list
|