Patrick Rein uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-pre.353.mcz==================== Summary ====================
Name: Tests-pre.353
Author: pre
Time: 16 August 2016, 11:28:55.154232 pm
UUID: 46ff28ff-ac37-4141-8d71-bcca99980a55
Ancestors: Tests-pre.352
Fixes the LocaleTest which runs when locale files are present. Adds a setUp and tearDown to make sure that the previous locale is re-installed after the test ran.
=============== Diff against Tests-pre.352 ===============
Item was changed:
TestCase subclass: #LocaleTest
+ instanceVariableNames: 'previousID'
- instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'Tests-Localization'!
!LocaleTest commentStamp: 'tak 8/3/2005 18:24' prior: 0!
LocaleTest buildSuite run!
Item was added:
+ ----- Method: LocaleTest>>setUp (in category 'testing') -----
+ setUp
+
+ previousID := Locale current localeID.!
Item was added:
+ ----- Method: LocaleTest>>tearDown (in category 'testing') -----
+ tearDown
+
+ Locale switchToID: (LocaleID isoLanguage: previousID).!
Item was changed:
----- Method: LocaleTest>>testLocaleChanged (in category 'testing') -----
testLocaleChanged
"self debug: #testLocaleChanged"
"LanguageEnvironment >> startUp is called from Prject >> localeChanged"
<timeout: 60> "takes quite a while"
Project current updateLocaleDependents.
self assert: (ActiveHand instVarNamed: 'keyboardInterpreter') isNil description: 'non-nil keyboardInterpreter'.
self assert: (Clipboard default instVarNamed: 'interpreter') isNil description: 'non-nil interpreter'.
Locale switchToID: (LocaleID isoLanguage: 'ja').
+ self assert: 'ja' equals: Locale current localeID isoLanguage.
- self assert: 'ja' equals: Locale current localeID.
Locale switchToID: (LocaleID isoLanguage: 'en').
+ self assert: 'en' equals: Locale current localeID isoLanguage.!
- self assert: 'en' equals: Locale current localeID.!