| <?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="spark/collections/Sort/Other/" |
| xmlns:mx="http://www.adobe.com/2006/mxml" |
| xmlns:s="library://ns.adobe.com/flex/spark" |
| xmlns="*" |
| testSWF="SF_sparkButtonBar.mxml"> |
| |
| <mx:Script> |
| <![CDATA[ |
| import assets.newClasses.SFConstant; |
| |
| import flash.globalization.NationalDigitsType; |
| import flash.globalization.NumberFormatter; |
| |
| import mx.validators.NumberValidatorDomainType; |
| |
| import spark.formatters.NumberFormatter; |
| public var nfGSLib:flash.globalization.NumberFormatter; |
| |
| public var nf:spark.formatters.NumberFormatter = new spark.formatters.NumberFormatter(); |
| public static function init(o:DisplayObject):void |
| { |
| |
| } |
| |
| ]]> |
| </mx:Script> |
| |
| <mx:Metadata> |
| <![CDATA[ |
| [Mixin] |
| ]]> |
| </mx:Metadata> |
| |
| <testCases> |
| <TestCase testID="SF_ComponentUsage_localeStyle_appSelector_test1" description="test application selector in component" keywords="[Sort, SortField, Component]"> |
| <setup> |
| <ResetComponent target="uiButtonBarComp" className="newComps.CustomButtonBarComp" waitEvent="updateComplete"/> |
| <SetProperty target="" propertyName="appLocale" value="fr-FR"/> |
| <Pause timeout="{SFConstant.pauseTime}"/> |
| </setup> |
| <body> |
| <AssertStyleValue target="uiButtonBarComp.appSort" styleName="locale" value="fr-FR" /> |
| <AssertStyleValue target="uiButtonBarComp.appSortField" styleName="locale" value="fr-FR" /> |
| </body> |
| </TestCase> |
| <TestCase testID="SF_ComponentUsage_localeStyle_classSelector_test2" description="test class selector in component" keywords="[Sort, SortField, Component]"> |
| <setup> |
| <ResetComponent target="uiButtonBarComp" className="newComps.CustomButtonBarComp" waitEvent="updateComplete"/> |
| </setup> |
| <body> |
| <AssertStyleValue target="uiButtonBarComp.classSort" styleName="locale" value="ja-JP" /> |
| <AssertStyleValue target="uiButtonBarComp.classSortField" styleName="locale" value="ja-JP" /> |
| </body> |
| </TestCase> |
| <TestCase testID="SF_ComponentUsage_localeStyle_IDSelector_test3" description="test ID selector in component" keywords="[Sort, SortField, Component]"> |
| <setup> |
| <ResetComponent target="uiButtonBarComp" className="newComps.CustomButtonBarComp" waitEvent="updateComplete"/> |
| </setup> |
| <body> |
| <AssertStyleValue target="uiButtonBarComp.idSort" styleName="locale" value="fr-CA"/> |
| <AssertStyleValue target="uiButtonBarComp.idSortField" styleName="locale" value="fr-CA"/> |
| </body> |
| </TestCase> |
| </testCases> |
| |
| </UnitTester> |