blob: 7d628df059dad1333f1e5a724de8d67bfd351fb6 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<UnitTester testDir="LangPacks/Swedish/tests/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="LangPackApp.mxml">
<!-- this set of lines form a template that must be in each unit test -->
<mx:Script>
<![CDATA[
public static function init(o:DisplayObject):void
{
}
]]>
</mx:Script>
<mx:Metadata>
<![CDATA[
[Mixin]
]]>
</mx:Metadata>
<!-- end of set of lines that must be in each unit test -->
<mx:Script>
<![CDATA[
]]>
</mx:Script>
<testCases>
<TestCase testID="SV_DateField_Dropdown_Swedish_Layout" description="Test that Swedish DateField dropdown layout is correct." keywords="[DateField, dropdown, layout]">
<setup>
<ResetComponent target="df" className="mx.controls.DateField" waitEvent="updateComplete" waitTarget="df"/>
<SetProperty target="df" propertyName="selectedDate" valueExpression="value=new Date(2005, 2, 5)" waitEvent="updateComplete" waitTarget="df"/>
</setup>
<body>
<DispatchMouseClickEvent target="df.getChildAt(1)" localX="5" localY="5" waitEvent="updateComplete" waitTarget="df.dropdown" />
<CompareBitmap target="df.dropdown" url="../tests/baselines/$testID.png" numColorVariances="8" ignoreMaxColorVariance="true" timeout="5000" />
</body>
</TestCase>
<TestCase testID="SV_DateField_Property_yearSymbol" keywords="[yearSymbol, DateField]">
<setup>
<ResetComponent target="df" className="mx.controls.DateField" waitEvent="updateComplete" waitTarget="df"/>
</setup>
<body>
<RunCode code="application.df.open()" />
<AssertPropertyValue target="df" propertyName="yearSymbol" value="" />
</body>
</TestCase>
<TestCase testID="SV_DateField_Property_monthSymbol" keywords="[monthSymbol, DateField]">
<setup>
<ResetComponent target="df" className="mx.controls.DateField" waitEvent="updateComplete" waitTarget="df"/>
</setup>
<body>
<AssertPropertyValue target="df" propertyName="monthSymbol" value="" />
</body>
</TestCase>
<TestCase testID="SV_DateField_Property_MonthNames" keywords="[monthNames, DateField]">
<setup>
<ResetComponent target="df" className="mx.controls.DateField" waitEvent="updateComplete" waitTarget="df"/>
<SetProperty target="df" propertyName="selectedDate" valueExpression="value=new Date(2005, 2, 5)" waitEvent="updateComplete" waitTarget="df"/>
</setup>
<body>
<AssertPropertyValue target="df" propertyName="monthNames" value="['januari','februari','mars','april','maj','juni','juli','augusti','september','oktober','november','december']" />
</body>
</TestCase>
<TestCase testID="SV_DateField_Property_DayNames" keywords="[dayNames, DateField]">
<setup>
<ResetComponent target="df" className="mx.controls.DateField" waitEvent="updateComplete" waitTarget="df"/>
</setup>
<body>
<AssertPropertyValue target="df" propertyName="dayNames" value="['S','M','T','O','T','F','L']" />
</body>
</TestCase>
<TestCase testID="SV_DateField_Property_FormatString" keywords="[formatString, DateField]">
<setup>
<ResetComponent target="df" className="mx.controls.DateField" waitEvent="updateComplete" waitTarget="df"/>
</setup>
<body>
<AssertPropertyValue target="df" propertyName="formatString" value="D MMM YYYY" />
</body>
</TestCase>
</testCases>
</UnitTester>