blob: 0f49b2a3a360a668517b2f3f89d7bcf0a306c167 [file] [log] [blame]
<?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/formatters/CurrencyFormatter/Fallback/"
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns="*"
testSWF="CF_Fallback_SetGetProperties_Main.mxml">
<mx:Script>
<![CDATA[
import assets.*;
import flash.globalization.NationalDigitsType;
public static function init(o:DisplayObject):void
{
}
]]>
</mx:Script>
<mx:Metadata>
<![CDATA[
[Mixin]
]]>
</mx:Metadata>
<testCases>
<TestCase testID="CF_Fallback_SetGetProperties_decimalSeparator_default_declarations_test1" description="test default decimalSeparator value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="decimalSeparator" target="cf_inline" value="."/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_decimalSeparator_null_declarations_test2" description="set the decimalSeparator to 'null', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="decimalSeparator" target="cf_inline" valueExpression="value=null" waitEvent="change"/>
<AssertPropertyValue propertyName="decimalSeparator" target="cf_inline" valueExpression="value=null"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf_inline" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_decimalSeparator_default_script_test3" description="test default decimalSeparator value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
</setup>
<body>
<AssertPropertyValue propertyName="decimalSeparator" target="cf" value="."/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_decimalSeparator_valid_script_test4" description="set the decimalSeparator to ';', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="decimalSeparator" target="cf" value=";" waitEvent="change"/>
<AssertPropertyValue propertyName="decimalSeparator" target="cf" value=";"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_digitsType_default_declarations_test5" description="test default digitsType is 'NationalDigitsType.EUROPEAN'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="digitsType" target="cf_inline" valueExpression="value=NationalDigitsType.EUROPEAN"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_digitsType_null_declarations_test6" description="set digitsType to 'null', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="digitsType" target="cf_inline" valueExpression="value=null" waitEvent="change"/>
<AssertPropertyValue propertyName="digitsType" target="cf_inline" valueExpression="value=0"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf_inline" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_digitsType_default_script_test7" description="test default digitsType is 'NationalDigitsType.EUROPEAN'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="digitsType" target="cf" valueExpression="value=NationalDigitsType.EUROPEAN"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_digitsType_NKO_script_test8" description="set digitsType to 'NationalDigitsType.NKO', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="digitsType" target="cf" valueExpression="value=NationalDigitsType.NKO" waitEvent="change"/>
<AssertPropertyValue propertyName="digitsType" target="cf" valueExpression="value=NationalDigitsType.NKO"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_fractionalDigits_default_declarations_test9" description="test default fractionalDigits is '0'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="fractionalDigits" target="cf_inline" valueExpression="value=0"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_fractionalDigits_1_declarations_test10" description="set fractionalDigits to '1', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="fractionalDigits" target="cf_inline" valueExpression="value=1" waitEvent="change"/>
<AssertPropertyValue propertyName="fractionalDigits" target="cf_inline" valueExpression="value=1"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf_inline" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_fractionalDigits_default_script_test11" description="test default fractionalDigits is '0'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="fractionalDigits" target="cf" valueExpression="value=0"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_fractionalDigits_2_script_test12" description="set fractionalDigits to '2', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="fractionalDigits" target="cf" valueExpression="value=2" waitEvent="change"/>
<AssertPropertyValue propertyName="fractionalDigits" target="cf" valueExpression="value=2"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_groupingPattern_default_declarations_test13" description="test default groupingPattern is '3'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="groupingPattern" target="cf_inline" value="3"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_groupingPattern_valid_declarations_test14" description="set groupingPattern to '3;*', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="groupingPattern" target="cf_inline" value="3;*" waitEvent="change"/>
<AssertPropertyValue propertyName="groupingPattern" target="cf_inline" value="3;*"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf_inline" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_groupingPattern_default_script_test15" description="test default groupingPattern is '3'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="groupingPattern" target="cf" value="3"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_groupingPattern_valid_script_test16" description="set groupingPattern to '3;2;*', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="groupingPattern" target="cf" value="3;2;*" waitEvent="change"/>
<AssertPropertyValue propertyName="groupingPattern" target="cf" value="3;2;*"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_groupingSeparator_default_declarations_test17" description="test default groupingSeparator is ','" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="groupingSeparator" target="cf_inline" value=","/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_groupingSeparator_valid_declarations_test18" description="set groupingSeparator to ''', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="groupingSeparator" target="cf_inline" value="'" waitEvent="change"/>
<AssertPropertyValue propertyName="groupingSeparator" target="cf_inline" value="'"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf_inline" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_groupingSeparator_default_script_test19" description="test default groupingSeparator is ','" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="groupingSeparator" target="cf" value=","/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_groupingSeparator_valid_script_test20" description="set groupingSeparator to '%', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="groupingSeparator" target="cf" value="%" waitEvent="change"/>
<AssertPropertyValue propertyName="groupingSeparator" target="cf" value="%"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_leadingZero_default_declarations_test21" description="test default leadingZero is 'true'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="leadingZero" target="cf_inline" valueExpression="value=true"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_leadingZero_false_declarations_test22" description="set leadingZero to 'false', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="leadingZero" target="cf_inline" valueExpression="value=false" waitEvent="change"/>
<AssertPropertyValue propertyName="leadingZero" target="cf_inline" valueExpression="value=false"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf_inline" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_leadingZero_default_script_test23" description="test default leadingZero is 'true'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="leadingZero" target="cf" valueExpression="value=true"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_leadingZero_false_script_test24" description="set leadingZero to 'false', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="leadingZero" target="cf" valueExpression="value=false" waitEvent="change"/>
<AssertPropertyValue propertyName="leadingZero" target="cf" valueExpression="value=false"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_negativeSymbol_default_declarations_test25" description="test default negativeSymbol is '-'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="negativeSymbol" target="cf_inline" value="-"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_negativeSymbol_undefined_declarations_test26" description="set negativeSymbol to 'undefined', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="negativeSymbol" target="cf_inline" valueExpression="value=undefined" waitEvent="change"/>
<AssertPropertyValue propertyName="negativeSymbol" target="cf_inline" valueExpression="value=undefined"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf_inline" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_negativeSymbol_default_script_test27" description="test default negativeSymbol is '-'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="negativeSymbol" target="cf" value="-"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_negativeSymbol_valid_script_test28" description="set negativeSymbol to '/', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="negativeSymbol" target="cf" value="/" waitEvent="change"/>
<AssertPropertyValue propertyName="negativeSymbol" target="cf" value="/"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_trailingZeros_default_declarations_test29" description="test default trailingZeros is 'false'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="trailingZeros" target="cf_inline" valueExpression="value=false"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_trailingZeros_true_declarations_test30" description="set trailingZeros to 'true', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="trailingZeros" target="cf_inline" valueExpression="value=true" waitEvent="change"/>
<AssertPropertyValue propertyName="trailingZeros" target="cf_inline" valueExpression="value=true"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf_inline" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_trailingZeros_default_script_test31" description="test default trailingZeros is 'false'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="trailingZeros" target="cf" valueExpression="value=false"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_trailingZeros_true_script_test32" description="set trailingZeros to 'true', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="trailingZeros" target="cf" valueExpression="value=true" waitEvent="change"/>
<AssertPropertyValue propertyName="trailingZeros" target="cf" valueExpression="value=true"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_useGrouping_default_declarations_test33" description="test default useGrouping is 'false'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="useGrouping" target="cf_inline" valueExpression="value=false"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_useGrouping_true_declarations_test34" description="set useGrouping to 'true', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="useGrouping" target="cf_inline" valueExpression="value=true" waitEvent="change"/>
<AssertPropertyValue propertyName="useGrouping" target="cf_inline" valueExpression="value=true"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf_inline" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_useGrouping_default_script_test35" description="test default useGrouping is 'false'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="useGrouping" target="cf" valueExpression="value=false"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_useGrouping_true_script_test36" description="set useGrouping to 'true', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="useGrouping" target="cf" valueExpression="value=true" waitEvent="change"/>
<AssertPropertyValue propertyName="useGrouping" target="cf" valueExpression="value=true"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_negativeCurrencyFormat_default_declarations_test37" description="test default negativeCurrencyFormat is '0'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="negativeCurrencyFormat" target="cf_inline" valueExpression="value=0"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_negativeCurrencyFormat_5_declarations_test38" description="set negativeCurrencyFormat to '5', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="negativeCurrencyFormat" target="cf_inline" valueExpression="value=5" waitEvent="change"/>
<AssertPropertyValue propertyName="negativeCurrencyFormat" target="cf_inline" valueExpression="value=5"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf_inline" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_negativeCurrencyFormat_default_script_test39" description="test default negativeCurrencyFormat is '0'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="negativeCurrencyFormat" target="cf" valueExpression="value=0"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_negativeCurrencyFormat_9_script_test40" description="set negativeCurrencyFormat to '9', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="negativeCurrencyFormat" target="cf" valueExpression="value=9" waitEvent="change"/>
<AssertPropertyValue propertyName="negativeCurrencyFormat" target="cf" valueExpression="value=9"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_positiveCurrencyFormat_default_declarations_test41" description="test default positiveCurrencyFormat is '0'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="positiveCurrencyFormat" target="cf_inline" valueExpression="value=0"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_positiveCurrencyFormat_5_declarations_test42" description="set positiveCurrencyFormat to '1', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="positiveCurrencyFormat" target="cf_inline" valueExpression="value=1" waitEvent="change"/>
<AssertPropertyValue propertyName="positiveCurrencyFormat" target="cf_inline" valueExpression="value=1"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf_inline" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_positiveCurrencyFormat_default_script_test43" description="test default positiveCurrencyFormat is '0'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="positiveCurrencyFormat" target="cf" valueExpression="value=0"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_positiveCurrencyFormat_9_script_test44" description="set positiveCurrencyFormat to '3', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="positiveCurrencyFormat" target="cf" valueExpression="value=3" waitEvent="change"/>
<AssertPropertyValue propertyName="positiveCurrencyFormat" target="cf" valueExpression="value=3"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_currencySymbol_default_declarations_test45" description="test default currencySymbol is '$'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="currencySymbol" target="cf_inline" value="$"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_currencySymbol_valid_declarations_test46" description="set currencySymbol to '€', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="currencySymbol" target="cf_inline" value="€" waitEvent="change"/>
<AssertPropertyValue propertyName="currencySymbol" target="cf_inline" value="€"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf_inline" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_currencySymbol_default_script_test47" description="test default currencySymbol is '$'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="currencySymbol" target="cf" value="$"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_currencySymbol_valid_script_test48" description="set currencySymbol to 'SFr.', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="currencySymbol" target="cf" value="SFr." waitEvent="change"/>
<AssertPropertyValue propertyName="currencySymbol" target="cf" value="SFr."/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_currencyISOCode_default_declarations_test49" description="test default currencyISOCode is 'USD'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="currencyISOCode" target="cf_inline" value="USD"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_currencyISOCode_valid_declarations_test50" description="set currencyISOCode to 'CHF', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf_inline" className="assets.FallbackCF"/>
<RunCode code="application.cf_inline.initialized(null,'cf_inline')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="currencyISOCode" target="cf_inline" value="CHF" waitEvent="change"/>
<AssertPropertyValue propertyName="currencyISOCode" target="cf_inline" value="CHF"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf_inline" value="noError"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_currencyISOCode_default_script_test51" description="test default currencyISOCode is 'USD'" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<AssertPropertyValue propertyName="currencyISOCode" target="cf" value="USD"/>
</body>
</TestCase>
<TestCase testID="CF_Fallback_SetGetProperties_currencyISOCode_valid_script_test52" description="set currencyISOCode to 'INR', verify the value" keywords="[CurrencyFormatter, SetGetProperties]">
<setup>
<ResetComponent target="cf" className="assets.FallbackCF"/>
<RunCode code="application.cf.initialized(null,'cf')"/>
<Pause timeout="{CFConstant.pauseTime}"/>
</setup>
<body>
<SetProperty propertyName="currencyISOCode" target="cf" value="INR" waitEvent="change"/>
<AssertPropertyValue propertyName="currencyISOCode" target="cf" value="INR"/>
<AssertPropertyValue propertyName="lastOperationStatus" target="cf" value="noError"/>
</body>
</TestCase>
</testCases>
</UnitTester>