[Pkg] The Trunk: Tests-fbs.226.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Jun 27 19:56:17 UTC 2013

Frank Shearar uploaded a new version of Tests to project The Trunk:

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

Name: Tests-fbs.226
Author: fbs
Time: 27 June 2013, 8:55:56.713 pm
UUID: c4ac4684-08cc-3244-8c13-81f648224b6c
Ancestors: Tests-fbs.225

#decompilerFailures lets us record the failure case while not breaking tests unnecessarily.

=============== Diff against Tests-fbs.225 ===============

Item was changed:
  ----- Method: DecompilerTests>>decompilerFailures (in category 'utilities') -----
  	"Here is the list of failures: either a syntax error, a hard error or some failure to decompile correctly.
  	 Collected via
  		CurrentReadOnlySourceFiles cacheDuring: [
  			(DecompilerTestFailuresCollector new computeFailures collect:
  				[:mr| { mr classSymbol. mr selector }]) asArray ]."
  	^#(	(BrowserCommentTextMorph showPane)
  		(ClassDescription replaceSilently:to:)
  		(CodeHolder getSelectorAndSendQuery:to:with:)
  		(Date printOn:)
+ 		(DecompilerTests testDecompileUnreachableParameter)
  		(HttpUrl checkAuthorization:retry:)
  		(MCConfigurationBrowser post)
  		(MailComposition breakLinesInMessage:)
  		(MVCToolBuilder setLayout:in:) "same-name block-local temps in optimized blocks"
  		(ParagraphEditor inOutdent:delta:)
  		(PNGReadWriter copyPixelsGray:)
  		(PointTest testNormal) "fraction printing??"
  		(PointTest testTheta) "fraction printing??"
  		(ScaledDecimalTest testConvertFromFraction) "local/non-local temps"
  		(StandardScriptingSystem holderWithAlphabet) "same-name block-local temps in optimized blocks"
  		(SystemWindow convertAlignment)
  		(TextEditor inOutdent:delta:)
  		(TextURL actOnClickFor:)
  		(TTContourConstruction segmentsDo:) "Worth fixing; these two are mistaken conversion from a whileTrue: to a to:do: but the index is used outside the whileTrue:"
  		(TTFontReader processHorizontalMetricsTable:length:))!

Item was added:
+ ----- Method: DecompilerTests>>expectedFailures (in category 'testing') -----
+ expectedFailures
+ 	^ #(testDecompileUnreachableParameter)!

Item was added:
+ ----- Method: DecompilerTests>>testDecompileUnreachableParameter (in category 'failing decompile tests') -----
+ testDecompileUnreachableParameter
+ 	"The call to #value: is unreachable because both blocks in the #ifTrue:ifFalse: send force a return."
+ 	self shouldnt: [[self value: (true ifTrue: [^true] ifFalse: [^false])] decompile] raise: Error.!

More information about the Packages mailing list