| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <UnitTester testDir="LangPacks/French/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="FR_DateField_Dropdown_French_Layout" description="Test that French 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="FR_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="FR_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="FR_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="['Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre']" /> |
| </body> |
| </TestCase> |
| |
| <TestCase testID="FR_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="['D','L','M','M','J','V','S']" /> |
| </body> |
| </TestCase> |
| |
| <TestCase testID="FR_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> |