| <?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/validators/NumberValidator/Others/" |
| xmlns:mx="http://www.adobe.com/2006/mxml" |
| xmlns:s="library://ns.adobe.com/flex/spark" |
| xmlns="*" |
| testSWF="NV_ComponentUsage.mxml"> |
| |
| <mx:Script> |
| <![CDATA[ |
| import assets.NVConstants; |
| |
| import flash.globalization.NationalDigitsType; |
| import flash.globalization.NumberFormatter; |
| |
| import mx.validators.NumberValidatorDomainType; |
| public var nfGSLib:flash.globalization.NumberFormatter; |
| |
| public static function init(o:DisplayObject):void |
| { |
| |
| } |
| |
| ]]> |
| </mx:Script> |
| |
| <mx:Metadata> |
| <![CDATA[ |
| [Mixin] |
| ]]> |
| </mx:Metadata> |
| |
| <testCases> |
| <TestCase testID="NV_ComponentUsage_localeStyle_borderContainer_globalSelector_test1" description="test global selector in borderContainer component" keywords="[NumberValidator, Component]"> |
| <setup> |
| </setup> |
| <body> |
| <SetProperty target="" propertyName="globalLocale" value="de-DE"/> |
| <AssertPropertyValue target="customBorderContainerComp.nvcBorderContainerGlo" propertyName="actualLocaleIDName" value="de-DE"/> |
| <AssertPropertyValue target="customBorderContainerComp.nvcBorderContainerGlo" propertyName="lastOperationStatus" valueExpression="value=NVConstants.noErrorMsg"/> |
| </body> |
| </TestCase> |
| <TestCase testID="NV_ComponentUsage_localeStyle_globalSelector_test2" description="test global selector in component" keywords="[NumberValidator, Component]"> |
| <setup> |
| </setup> |
| <body> |
| <SetProperty target="" propertyName="globalLocale" value="ru-RU"/> |
| <AssertPropertyValue target="customGroupComp.nvcGlobalSelector" propertyName="actualLocaleIDName" value="ru-RU"/> |
| <AssertPropertyValue target="customGroupComp.nvcGlobalSelector" propertyName="lastOperationStatus" valueExpression="value=NVConstants.noErrorMsg"/> |
| </body> |
| </TestCase> |
| </testCases> |
| |
| </UnitTester> |