[squeak-dev] The Inbox: ToolsTests-jr.119.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Aug 25 20:03:26 UTC 2022

A new version of ToolsTests was added to project The Inbox:

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

Name: ToolsTests-jr.119
Author: jr
Time: 25 August 2022, 10:03:25.997487 pm
UUID: 4fe82b64-3fd2-5e4b-8f2d-859cd683220a
Ancestors: ToolsTests-jr.118

Test decoupled navigation of Browser copies.

=============== Diff against ToolsTests-jr.118 ===============

Item was added:
+ ----- Method: BrowserTest>>testNavigationIsCopied (in category 'tests') -----
+ testNavigationIsCopied
+ 	| copy |
+ 	browser selectClassReferenced: (ClassReference class: Browser);
+ 		selectMethodReferenced: (MethodReference class: Browser selector: #classList);
+ 		selectMethodReferenced: (MethodReference class: Browser selector: #messageList).
+ 	copy := browser veryDeepCopy. "Like with the copy halo on a SystemWindow"
+ 	copy goBack.
+ 	self assert: #classList equals: copy selectedMessageName;
+ 		assert: #Browser equals: copy selectedClassName;
+ 		assert: #editMessage equals: copy editSelection.
+ 	browser goBack.
+ 	self assert: #classList equals: browser selectedMessageName;
+ 		assert: #Browser equals: browser selectedClassName;
+ 		assert: #editMessage equals: browser editSelection.!

More information about the Squeak-dev mailing list