The Inbox: KernelTests-tcj.350.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: KernelTests-tcj.350.mcz

commits-2
A new version of KernelTests was added to project The Inbox:
http://source.squeak.org/inbox/KernelTests-tcj.350.mcz

==================== Summary ====================

Name: KernelTests-tcj.350
Author: tcj
Time: 24 November 2018, 1:50:04.681743 am
UUID: a0951193-8488-47c9-bcc1-13f18a9a6f47
Ancestors: KernelTests-pre.349

Beginning some tests to ensure messages being sent from menus actually exist in default receivers

=============== Diff against KernelTests-pre.349 ===============

Item was changed:
  SystemOrganization addCategory: #'KernelTests-Classes'!
  SystemOrganization addCategory: #'KernelTests-Methods'!
+ SystemOrganization addCategory: #'KernelTests-Models'!
  SystemOrganization addCategory: #'KernelTests-Numbers'!
  SystemOrganization addCategory: #'KernelTests-Objects'!
  SystemOrganization addCategory: #'KernelTests-Processes'!

Item was added:
+ TestCase subclass: #StringHolderTest
+ instanceVariableNames: 'mvcEditor morphicEditor'
+ classVariableNames: ''
+ poolDictionaries: ''
+ category: 'KernelTests-Models'!

Item was added:
+ ----- Method: StringHolderTest>>setUp (in category 'as yet unclassified') -----
+ setUp
+ mvcEditor := ParagraphEditor new.
+ morphicEditor := TextMorph defaultEditorClass new.   "may be SmalltalkEditor"
+ !

Item was added:
+ ----- Method: StringHolderTest>>testYellowButtonMenuItems (in category 'as yet unclassified') -----
+ testYellowButtonMenuItems
+ | tuples actions mvcDnu morphicDnu |
+ "Morphic and MVC share StringHolder.  Ensure that both respond to its menu items."
+ tuples := StringHolder shiftedYellowButtonMenuItems reject: [:tuple | tuple size < 2].    "ignore lines/bars"
+ actions := tuples collect: [:ea | ea at: 2].
+ mvcDnu := actions reject: [:action | mvcEditor respondsTo: action].
+ self
+ assert: mvcDnu isEmpty
+ description: 'An MVC editor should respond to all menu items.'.
+ morphicDnu := actions reject: [:action | morphicEditor respondsTo: action].
+ self
+ assert: (morphicDnu hasEqualElements: #( sendContentsToPrinter yellowButtonActivity) )
+ description: 'A Morphic editor should respond to all menu items.'!