You are here: Foswiki>Tasks Web>Item11584 (11 Apr 2012, GeorgeClark)Edit Attach

Item11584: Fn_MAKETEXT::test_underscore fails unless at least one language is enabled

pencil
Priority: Normal
Current State: Closed
Released In: 1.1.5
Target Release: patch
Applies To: Engine
Component: UnitTestContrib
Branches: Release01x01 trunk
Reported By: OlivierRaginel
Waiting For:
Last Change By: GeorgeClark
As the nightly builds showed:
1 failure:
Fn_MAKETEXT::test_underscore

Expected:'Error: MAKETEXT argument's can't start with an underscore ("_").'
 But got:'_edit'

This is due to the fact that Foswiki::I18N won't be initialized unless:

The last point was missing in the unit test.

-- OlivierRaginel - 29 Feb 2012

Ideally, as Sven pointed out, we should make this test more robust and test all variations. But I don't think it's worth it. Maybe later.

-- OlivierRaginel - 29 Feb 2012

 

ItemTemplate edit

Summary Fn_MAKETEXT::test_underscore fails unless at least one language is enabled
ReportedBy OlivierRaginel
Codebase
SVN Range
AppliesTo Engine
Component UnitTestContrib
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:785a9f59fffe distro:2f149f5d9ac0
TargetRelease patch
ReleasedIn 1.1.5
CheckinsOnBranches Release01x01 trunk
trunkCheckins distro:785a9f59fffe
Release01x01Checkins distro:2f149f5d9ac0
Topic revision: r5 - 11 Apr 2012, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy