You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2012/08/07 19:34:19 UTC
svn commit: r1370380 [3/13] - in
/incubator/flex/trunk/mustella/tests/resources: ./ Integration/
Integration/Compiler/ Integration/FrameworkProperties/ Integration/SWFs/
Integration/SWFs/Assets/ Integration/SWFs/Assets/bundles/
Integration/SWFs/Assets/...
Added: incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/en_US/bundle1.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/en_US/bundle1.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/en_US/bundle1.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/en_US/bundle1.properties Tue Aug 7 17:34:13 2012
@@ -0,0 +1,19 @@
+################################################################################
+##
+## 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.
+##
+################################################################################
+GREETING=Bundle 1 in en_US says howdy!
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/en_US/bundle2.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/en_US/bundle2.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/en_US/bundle2.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/en_US/bundle2.properties Tue Aug 7 17:34:13 2012
@@ -0,0 +1,19 @@
+################################################################################
+##
+## 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.
+##
+################################################################################
+GREETING=Bundle 2 in en_US says howdy!
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/en_US/bundle3.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/en_US/bundle3.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/en_US/bundle3.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/en_US/bundle3.properties Tue Aug 7 17:34:13 2012
@@ -0,0 +1,19 @@
+################################################################################
+##
+## 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.
+##
+################################################################################
+GREETING=Bundle 3 in en_US says howdy!
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/fr_FR/bundle1.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/fr_FR/bundle1.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/fr_FR/bundle1.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/fr_FR/bundle1.properties Tue Aug 7 17:34:13 2012
@@ -0,0 +1,19 @@
+################################################################################
+##
+## 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.
+##
+################################################################################
+GREETING=Bundle 1 in fr_FR says bonjour!
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/fr_FR/bundle2.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/fr_FR/bundle2.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/fr_FR/bundle2.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/fr_FR/bundle2.properties Tue Aug 7 17:34:13 2012
@@ -0,0 +1,19 @@
+################################################################################
+##
+## 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.
+##
+################################################################################
+GREETING=Bundle 2 in fr_FR says bonjour!
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/fr_FR/bundle3.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/fr_FR/bundle3.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/fr_FR/bundle3.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/fr_FR/bundle3.properties Tue Aug 7 17:34:13 2012
@@ -0,0 +1,19 @@
+################################################################################
+##
+## 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.
+##
+################################################################################
+GREETING=Bundle 3 in fr_FR says bonjour!
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/ja_JP/bundle1.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/ja_JP/bundle1.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/ja_JP/bundle1.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/ja_JP/bundle1.properties Tue Aug 7 17:34:13 2012
@@ -0,0 +1,19 @@
+################################################################################
+##
+## 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.
+##
+################################################################################
+GREETING=Bundle 1 in ja_JP says Japanese Hello!
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/ja_JP/bundle2.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/ja_JP/bundle2.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/ja_JP/bundle2.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/ja_JP/bundle2.properties Tue Aug 7 17:34:13 2012
@@ -0,0 +1,19 @@
+################################################################################
+##
+## 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.
+##
+################################################################################
+GREETING=Bundle 2 in ja_JP says Japanese Hello!
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/ja_JP/bundle3.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/ja_JP/bundle3.properties?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/ja_JP/bundle3.properties (added)
+++ incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Assets/bundles/custom/ja_JP/bundle3.properties Tue Aug 7 17:34:13 2012
@@ -0,0 +1,19 @@
+################################################################################
+##
+## 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.
+##
+################################################################################
+GREETING=Bundle 3 in ja_JP says Japanese Hello!
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Compc_Params_Commas_App.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Compc_Params_Commas_App.compile?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Compc_Params_Commas_App.compile (added)
+++ incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Compc_Params_Commas_App.compile Tue Aug 7 17:34:13 2012
@@ -0,0 +1,2 @@
+-locale=en_US,fr_FR,ja_JP
+-library-path=${mustella.dir},${mustella.dir}/classes,${sdk.dir}/frameworks/locale/en_US,${sdk.dir}/frameworks/libs,${sdk.dir}/frameworks/libs/mx,Assets/enUS_frFR_jaJP_bundles123_commas.swc
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Compc_Params_Commas_App.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Compc_Params_Commas_App.mxml?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Compc_Params_Commas_App.mxml (added)
+++ incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Compc_Params_Commas_App.mxml Tue Aug 7 17:34:13 2012
@@ -0,0 +1,28 @@
+<?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.
+
+-->
+<mx:Application backgroundColor="0xFFFFFF" height="375" width="500" xmlns:mx="http://www.adobe.com/2006/mxml" >
+
+<mx:Script><![CDATA[
+
+]]></mx:Script>
+
+<mx:Label id="lbl1" text="@Resource(bundle='bundle1', key='GREETING')" />
+
+</mx:Application>
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Compc_Params_Spaces_App.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Compc_Params_Spaces_App.compile?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Compc_Params_Spaces_App.compile (added)
+++ incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Compc_Params_Spaces_App.compile Tue Aug 7 17:34:13 2012
@@ -0,0 +1,2 @@
+-locale en_US fr_FR ja_JP
+-library-path=${mustella.dir},${mustella.dir}/classes,${sdk.dir}/frameworks/locale/en_US,${sdk.dir}/frameworks/libs,${sdk.dir}/frameworks/libs/mx,Assets/enUS_frFR_jaJP_bundles123_spaces.swc
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Compc_Params_Spaces_App.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Compc_Params_Spaces_App.mxml?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Compc_Params_Spaces_App.mxml (added)
+++ incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Compc_Params_Spaces_App.mxml Tue Aug 7 17:34:13 2012
@@ -0,0 +1,28 @@
+<?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.
+
+-->
+<mx:Application backgroundColor="0xFFFFFF" height="375" width="500" xmlns:mx="http://www.adobe.com/2006/mxml" >
+
+<mx:Script><![CDATA[
+
+]]></mx:Script>
+
+<mx:Label id="lbl1" text="@Resource(bundle='bundle1', key='GREETING')" />
+
+</mx:Application>
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Components/CLabel.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Components/CLabel.as?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Components/CLabel.as (added)
+++ incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/Components/CLabel.as Tue Aug 7 17:34:13 2012
@@ -0,0 +1,33 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package Components{
+ import mx.controls.Label;
+ import mx.resources.IResourceManager;
+
+ public class CLabel extends Label{
+
+ public function getTextFromTextField():String{
+ return textField.text;
+ }
+
+ public function getResourceManager():IResourceManager{
+ return this.resourceManager;
+ }
+ }
+}
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/RTL_Integration_FrameworkProperties_App.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/RTL_Integration_FrameworkProperties_App.mxml?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/RTL_Integration_FrameworkProperties_App.mxml (added)
+++ incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/RTL_Integration_FrameworkProperties_App.mxml Tue Aug 7 17:34:13 2012
@@ -0,0 +1,71 @@
+<?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.
+
+-->
+<mx:Application backgroundColor="0xFFFFFF" height="375" width="500" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:Components="Components.*">
+
+<mx:Script><![CDATA[
+
+ import mx.collections.*;
+
+ public var al:ArrayList = new ArrayList();
+ public var lcv:ListCollectionView = new ListCollectionView();
+
+<!-- Charts are in the Data Vis. team.
+ [Bindable] public var stockDataAC:ArrayCollection = new ArrayCollection( [
+ { Date: "Values", Open: 40.55, High: 40.75, Low: 40.24, Close:40.31},
+ { Date: "Values", Open: 40.55, High: 40.75, Low: 40.24, Close:40.31} ]);
+-->
+
+]]></mx:Script>
+
+<!-- Charts are in the Data Vis. team.
+<mx:HLOCChart width="70" height="70" showDataTips="true" dataProvider="{stockDataAC}" id="hlocChart">
+ <mx:verticalAxis>
+ <mx:LinearAxis baseAtZero="false" />
+ </mx:verticalAxis>
+
+ <mx:series>
+ <mx:HLOCSeries openField="Open" highField="High" lowField="Low" closeField="Close"/>
+ </mx:series>
+</mx:HLOCChart>
+-->
+<mx:Array />
+<mx:HSlider id="hs" />
+<mx:CreditCardValidator id="ccv" />
+<mx:CurrencyFormatter id="cf" />
+<mx:CurrencyValidator id="cv" />
+<mx:DateChooser id="dc" />
+<mx:DateField id="df" />
+<mx:DateFormatter id="dfo" />
+<mx:DateValidator id="dv" />
+<mx:EmailValidator id="ev" />
+<Components:CLabel id="lbl" />
+<mx:NumberFormatter id="nf" />
+<mx:NumberValidator id="nv" />
+<mx:PhoneNumberValidator id="pnv" />
+<mx:PhoneFormatter id="pf" />
+<mx:ProgressBar id="pb" />
+<mx:RegExpValidator id="rev" />
+<mx:SocialSecurityValidator id="ssv"/>
+<mx:StringValidator id="sv" />
+<mx:Validator id="v" />
+<mx:ZipCodeFormatter id="zcf" />
+<mx:ZipCodeValidator id="zcv" />
+
+</mx:Application>
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/pre_compile.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/pre_compile.sh?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/pre_compile.sh (added)
+++ incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/pre_compile.sh Tue Aug 7 17:34:13 2012
@@ -0,0 +1,39 @@
+#!/bin/sh
+################################################################################
+##
+## 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.
+##
+################################################################################
+cd Assets
+
+echo ""
+echo "Removing previously compiled files..."
+rm -f `find . -name "*.swc"`
+rm -f `find . -name "*.swf"`
+
+# Do this so that we don't hit not-a-bug number SDK-11855:
+# Compc: Empty locale/{locale} directory has to be created in project's or framework's directory structure if specifying a locale.
+# and don't create the locale/{locale} directory here in the SWFs directory or else the tests will fail if bug SDK-11860 gets fixed.
+# We will use -library-path=$LIBRARY_PATH whenever there is a locale that is not en_US.
+echo "Defining a library path to avoid changing your frameworks directory..."
+LIBRARY_PATH="$SDK_DIR/frameworks/libs,$SDK_DIR/frameworks/libs/mx"
+
+echo ""
+echo "Compiling new SWC with commas..."
+$SDK_DIR/bin/compc -library-path=$LIBRARY_PATH -locale=en_US,fr_FR,ja_JP -source-path=bundles/custom/{locale} -include-resource-bundles=bundle1,bundle2,bundle3 -output=enUS_frFR_jaJP_bundles123_commas.swc
+
+echo "Compiling new SWC with spaces..."
+$SDK_DIR/bin/compc -library-path=$LIBRARY_PATH -locale en_US fr_FR ja_JP -source-path bundles/custom/{locale} -include-resource-bundles bundle1 bundle2 bundle3 -output enUS_frFR_jaJP_bundles123_spaces.swc
\ No newline at end of file
Propchange: incubator/flex/trunk/mustella/tests/resources/Integration/SWFs/pre_compile.sh
------------------------------------------------------------------------------
svn:executable = *
Added: incubator/flex/trunk/mustella/tests/resources/Locale/Properties/Locale_Properties_country.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Locale/Properties/Locale_Properties_country.mxml?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Locale/Properties/Locale_Properties_country.mxml (added)
+++ incubator/flex/trunk/mustella/tests/resources/Locale/Properties/Locale_Properties_country.mxml Tue Aug 7 17:34:13 2012
@@ -0,0 +1,97 @@
+<?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="resources/Locale/Properties/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="LocaleApp.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[
+
+ import mx.resources.Locale;
+
+ public var locale:Locale;
+
+ ]]></mx:Script>
+
+ <testCases>
+
+ <TestCase frequency="all" testID="Locale_country_is_read_only" description="Confirm that 'country' property of Locale is read-only" keywords="[resources,Locale,country]">
+ <setup>
+ <RunCode code="locale = new Locale('fr_FR_WIN')"/>
+ </setup>
+ <body>
+ <SetProperty target="script:locale" propertyName="country" value="DE"/>
+ <AssertError value="ReferenceError: Error #1074: Illegal write to read-only property country on mx.resources.Locale."/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="Locale_country_with_language_only" description="Confirm 'country' property of Locale when constructed with only language" keywords="[resources,Locale,country]">
+ <setup>
+ <RunCode code="locale = new Locale('fr')"/>
+ </setup>
+ <body>
+ <AssertPropertyValue target="script:locale" propertyName="country" value="null"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="Locale_country_with_language_and_country" description="Confirm 'country' property of Locale when constructed with only language and country" keywords="[resources,Locale,country]">
+ <setup>
+ <RunCode code="locale = new Locale('fr_FR')"/>
+ </setup>
+ <body>
+ <AssertPropertyValue target="script:locale" propertyName="country" value="FR"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="Locale_country_with_language_country_and_variant" description="Confirm 'country' property of Locale when constructed with language, country, and variant" keywords="[resources,Locale,country]">
+ <setup>
+ <RunCode code="locale = new Locale('fr_FR_WIN')"/>
+ </setup>
+ <body>
+ <AssertPropertyValue target="script:locale" propertyName="country" value="FR"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="Locale_country_with_language_country_and_extended_variant" description="Confirm 'country' property of Locale when constructed with language, country, and extended variant" keywords="[resources,Locale,country]">
+ <setup>
+ <RunCode code="locale = new Locale('fr_FR_WIN_XP')"/>
+ </setup>
+ <body>
+ <AssertPropertyValue target="script:locale" propertyName="country" value="FR"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ </testCases>
+
+</UnitTester>
Added: incubator/flex/trunk/mustella/tests/resources/Locale/Properties/Locale_Properties_language.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Locale/Properties/Locale_Properties_language.mxml?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Locale/Properties/Locale_Properties_language.mxml (added)
+++ incubator/flex/trunk/mustella/tests/resources/Locale/Properties/Locale_Properties_language.mxml Tue Aug 7 17:34:13 2012
@@ -0,0 +1,97 @@
+<?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="resources/Locale/Properties/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="LocaleApp.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[
+
+ import mx.resources.Locale;
+
+ public var locale:Locale;
+
+ ]]></mx:Script>
+
+ <testCases>
+
+ <TestCase frequency="all" testID="Locale_language_is_read_only" description="Confirm that 'language' property of Locale is read-only" keywords="[resources,Locale,language]">
+ <setup>
+ <RunCode code="locale = new Locale('fr_FR_WIN')"/>
+ </setup>
+ <body>
+ <SetProperty target="script:locale" propertyName="language" value="de"/>
+ <AssertError value="ReferenceError: Error #1074: Illegal write to read-only property language on mx.resources.Locale."/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="Locale_language_with_language_only" description="Confirm 'language' property of Locale when constructed with only language" keywords="[resources,Locale,language]">
+ <setup>
+ <RunCode code="locale = new Locale('fr')"/>
+ </setup>
+ <body>
+ <AssertPropertyValue target="script:locale" propertyName="language" value="fr"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="Locale_language_with_language_and_country" description="Confirm 'language' property of Locale when constructed with only language and country" keywords="[resources,Locale,language]">
+ <setup>
+ <RunCode code="locale = new Locale('fr_FR')"/>
+ </setup>
+ <body>
+ <AssertPropertyValue target="script:locale" propertyName="language" value="fr"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="Locale_language_with_language_country_and_variant" description="Confirm 'language' property of Locale when constructed with language, country, and variant" keywords="[resources,Locale,language]">
+ <setup>
+ <RunCode code="locale = new Locale('fr_FR_WIN')"/>
+ </setup>
+ <body>
+ <AssertPropertyValue target="script:locale" propertyName="language" value="fr"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="Locale_language_with_language_country_and_extended_variant" description="Confirm 'language' property of Locale when constructed with language, country, and extended variant" keywords="[resources,Locale,language]">
+ <setup>
+ <RunCode code="locale = new Locale('fr_FR_WIN_XP')"/>
+ </setup>
+ <body>
+ <AssertPropertyValue target="script:locale" propertyName="language" value="fr"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ </testCases>
+
+</UnitTester>
Added: incubator/flex/trunk/mustella/tests/resources/Locale/Properties/Locale_Properties_variant.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Locale/Properties/Locale_Properties_variant.mxml?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Locale/Properties/Locale_Properties_variant.mxml (added)
+++ incubator/flex/trunk/mustella/tests/resources/Locale/Properties/Locale_Properties_variant.mxml Tue Aug 7 17:34:13 2012
@@ -0,0 +1,97 @@
+<?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="resources/Locale/Properties/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="LocaleApp.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[
+
+ import mx.resources.Locale;
+
+ public var locale:Locale;
+
+ ]]></mx:Script>
+
+ <testCases>
+
+ <TestCase frequency="all" testID="Locale_variant_is_read_only" description="Confirm that 'variant' property of Locale is read-only" keywords="[resources,Locale,variant]">
+ <setup>
+ <RunCode code="locale = new Locale('fr_FR_WIN')"/>
+ </setup>
+ <body>
+ <SetProperty target="script:locale" propertyName="variant" value="MAC"/>
+ <AssertError value="ReferenceError: Error #1074: Illegal write to read-only property variant on mx.resources.Locale."/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="Locale_variant_with_language_only" description="Confirm 'variant' property of Locale when constructed with only language" keywords="[resources,Locale,variant]">
+ <setup>
+ <RunCode code="locale = new Locale('fr')"/>
+ </setup>
+ <body>
+ <AssertPropertyValue target="script:locale" propertyName="variant" value="null"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="Locale_variant_with_language_and_country" description="Confirm 'variant' property of Locale when constructed with only language and country" keywords="[resources,Locale,variant]">
+ <setup>
+ <RunCode code="locale = new Locale('fr_FR')"/>
+ </setup>
+ <body>
+ <AssertPropertyValue target="script:locale" propertyName="variant" value="null"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="Locale_variant_with_language_country_and_variant" description="Confirm 'variant' property of Locale when constructed with language, country, and variant" keywords="[resources,Locale,variant]">
+ <setup>
+ <RunCode code="locale = new Locale('fr_FR_WIN')"/>
+ </setup>
+ <body>
+ <AssertPropertyValue target="script:locale" propertyName="variant" value="WIN"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="Locale_variant_with_language_country_and_extended_variant" description="Confirm 'variant' property of Locale when constructed with language, country, and extended variant" keywords="[resources,Locale,variant]">
+ <setup>
+ <RunCode code="locale = new Locale('fr_FR_WIN_XP')"/>
+ </setup>
+ <body>
+ <AssertPropertyValue target="script:locale" propertyName="variant" value="WIN_XP"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ </testCases>
+
+</UnitTester>
Added: incubator/flex/trunk/mustella/tests/resources/Locale/SWFs/LocaleApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/Locale/SWFs/LocaleApp.mxml?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/Locale/SWFs/LocaleApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/resources/Locale/SWFs/LocaleApp.mxml Tue Aug 7 17:34:13 2012
@@ -0,0 +1,21 @@
+<?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.
+
+-->
+<mx:Application backgroundColor="0xFFFFFF" xmlns:mx="http://www.adobe.com/2006/mxml">
+</mx:Application>
Added: incubator/flex/trunk/mustella/tests/resources/ResourceBundle/Methods/ResourceBundle_Methods_getBoolean.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceBundle/Methods/ResourceBundle_Methods_getBoolean.mxml?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceBundle/Methods/ResourceBundle_Methods_getBoolean.mxml (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceBundle/Methods/ResourceBundle_Methods_getBoolean.mxml Tue Aug 7 17:34:13 2012
@@ -0,0 +1,398 @@
+<?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="resources/ResourceBundle/Methods/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="ResourceBundleApp.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[
+
+ public function testGetBooleanError(key:String):String
+ {
+ try
+ {
+ application.resourceBundle.getBoolean(key);
+ }
+ catch (e:Error)
+ {
+ return e.toString();
+ }
+ return null;
+ }
+
+ public function testGetBoolean(key:String, expectedValue:Boolean):Boolean
+ {
+ return application.resourceBundle.getBoolean(key) === expectedValue;
+ }
+
+ ]]></mx:Script>
+
+ <testCases>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_NO_SUCH_KEY" description="Tests that the getBoolean() method of ResourceBundle throws an Error when accessing a non-existent resource" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetBooleanError('NO_SUCH_KEY')" value="Error: Key NO_SUCH_KEY was not found in resource bundle myResources"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_STRING" description="Tests the getBoolean() method of ResourceBundle for a resource value which is a typical String" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetBoolean('STRING', true)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_STRING_LIST" description="Tests the getBoolean() method of ResourceBundle for a resource value which is a typical String of comma-separated items" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetBoolean('STRING_LIST', true)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_STRING_EMPTY" description="Tests the getBoolean() method of ResourceBundle for a resource value which is an empty String" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 1 below -->
+ <AssertMethodValue method="value=testGetBooleanError('STRING_EMPTY')" value="Error: Key STRING_EMPTY was not found in resource bundle myResources"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_STRING_NULL" description="Tests the getBoolean() method of ResourceBundle for a resource value which is the String 'null'" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetBoolean('STRING_NULL', true)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_STRING_UNDEFINED" description="Tests the getBoolean() method of ResourceBundle for a resource value which is the String 'undefined'" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetBoolean('STRING_UNDEFINED', true)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_STRING_TRUE_LOWERCASE" description="Tests the getBoolean() method of ResourceBundle for a resource value which is the String 'true'" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetBoolean('STRING_TRUE_LOWERCASE', true)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_STRING_TRUE_MIXEDCASE" description="Tests the getBoolean() method of ResourceBundle for a resource value which is the String 'True'" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetBoolean('STRING_TRUE_MIXEDCASE', true)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_STRING_TRUE_UPPERCASE" description="Tests the getBoolean() method of ResourceBundle for a resource value which is the String 'TRUE'" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetBoolean('STRING_TRUE_UPPERCASE', true)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_STRING_FALSE_LOWERCASE" description="Tests the getBoolean() method of ResourceBundle for a resource value which is the String 'false'" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetBoolean('STRING_FALSE_LOWERCASE', false)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_STRING_FALSE_MIXEDCASE" description="Tests the getBoolean() method of ResourceBundle for a resource value which is the String 'False'" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetBoolean('STRING_FALSE_MIXEDCASE', false)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_STRING_FALSE_UPPERCASE" description="Tests the getBoolean() method of ResourceBundle for a resource value which is the String 'FALSE'" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetBoolean('STRING_FALSE_UPPERCASE', false)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_STRING_NAN" description="Tests the getBoolean() method of ResourceBundle for a resource value which is the String 'NaN'" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetBoolean('STRING_NAN', true)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_STRING_ZERO" description="Tests the getBoolean() method of ResourceBundle for a resource value which is the String '0'" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetBoolean('STRING_ZERO', true)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_STRING_POSITIVE_INTEGER" description="Tests the getBoolean() method of ResourceBundle for a resource value which is the String rep of a typical positive integer" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetBoolean('STRING_POSITIVE_INTEGER', true)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_STRING_NEGATIVE_INTEGER" description="Tests the getBoolean() method of ResourceBundle for a resource value which is the String rep of a typical negative integer" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetBoolean('STRING_NEGATIVE_INTEGER', true)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_STRING_FIXEDPOINT" description="Tests the getBoolean() method of ResourceBundle for a resource value which is the String rep of a typical fractional Number" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetBoolean('STRING_FIXEDPOINT', true)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_STRING_FLOATINGPOINT" description="Tests the getBoolean() method of ResourceBundle for a resource value which is the String rep of a typical fractional Number in exponential notation" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetBoolean('STRING_FLOATINGPOINT', true)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_NULL" description="Tests the getBoolean() method of ResourceBundle for a resource value which is null" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 1 below -->
+ <AssertMethodValue method="value=testGetBooleanError('NULL')" value="Error: Key NULL was not found in resource bundle myResources"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_UNDEFINED" description="Tests the getBoolean() method of ResourceBundle for a resource value which is undefined" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 1 below -->
+ <AssertMethodValue method="value=testGetBooleanError('UNDEFINED')" value="Error: Key UNDEFINED was not found in resource bundle myResources"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_TRUE" description="Tests the getBoolean() method of ResourceBundle for a resource value which is true" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 2 below -->
+ <AssertMethodValue method="value=testGetBooleanError('TRUE')" value="TypeError: Error #1006: value is not a function."/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_FALSE" description="Tests the getBoolean() method of ResourceBundle for a resource value which is false" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 1 below -->
+ <AssertMethodValue method="value=testGetBooleanError('FALSE')" value="Error: Key FALSE was not found in resource bundle myResources"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_NAN" description="Tests the getBoolean() method of ResourceBundle for a resource value which is NaN" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 1 below -->
+ <AssertMethodValue method="value=testGetBooleanError('NAN')" value="Error: Key NAN was not found in resource bundle myResources"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_ZERO" description="Tests the getBoolean() method of ResourceBundle for a resource value which is 0" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 1 below -->
+ <AssertMethodValue method="value=testGetBooleanError('ZERO')" value="Error: Key ZERO was not found in resource bundle myResources"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_POSITIVE_INTEGER" description="Tests the getBoolean() method of ResourceBundle for a resource value which is a typical positive integer" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 2 below -->
+ <AssertMethodValue method="value=testGetBooleanError('POSITIVE_INTEGER')" value="TypeError: Error #1006: value is not a function."/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_NEGATIVE_INTEGER" description="Tests the getBoolean() method of ResourceBundle for a resource value which is a typical negative integer" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 2 below -->
+ <AssertMethodValue method="value=testGetBooleanError('NEGATIVE_INTEGER')" value="TypeError: Error #1006: value is not a function."/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_FIXEDPOINT" description="Tests the getBoolean() method of ResourceBundle for a resource value which is a typical fractional Number" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 2 below -->
+ <AssertMethodValue method="value=testGetBooleanError('FIXEDPOINT')" value="TypeError: Error #1006: value is not a function."/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_FLOATINGPOINT" description="Tests the getBoolean() method of ResourceBundle for a resource value which is a typical fractional Number in exponential notation" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 2 below -->
+ <AssertMethodValue method="value=testGetBooleanError('FLOATINGPOINT')" value="TypeError: Error #1006: value is not a function."/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_CLASS" description="Tests the getBoolean() method of ResourceBundle for a resource value which is a Class reference" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 2 below -->
+ <AssertMethodValue method="value=testGetBooleanError('CLASS')" value="TypeError: Error #1006: toLowerCase is not a function."/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_ARRAY" description="Tests the getBoolean() method of ResourceBundle for a resource value which is an Array of Strings" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 2 below -->
+ <AssertMethodValue method="value=testGetBooleanError('ARRAY')" value="TypeError: Error #1006: toLowerCase is not a function."/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getBoolean_OBJECT" description="Tests the getBoolean() method of ResourceBundle for a resource value which is a plain Object" keywords="[resources,ResourceBundle,getBoolean]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 2 below -->
+ <AssertMethodValue method="value=testGetBooleanError('OBJECT')" value="TypeError: Error #1006: toLowerCase is not a function."/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ </testCases>
+
+ <!--
+
+ Note 1: This is peculiar legacy behavior due to bad coding that used !value
+ to try to detect a nonexistent resource.
+ But it doesn't matter, because getBoolean() is a deprecated method.
+
+
+ Note 2: This is peculiar legacy behavior due to bad coding that called
+ toLowerCase() on the resource value even if it wasn't a String.
+ But it doesn't matter, because getBoolean() is a deprecated method.
+
+ -->
+
+</UnitTester>
+
Added: incubator/flex/trunk/mustella/tests/resources/ResourceBundle/Methods/ResourceBundle_Methods_getNumber.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/resources/ResourceBundle/Methods/ResourceBundle_Methods_getNumber.mxml?rev=1370380&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/resources/ResourceBundle/Methods/ResourceBundle_Methods_getNumber.mxml (added)
+++ incubator/flex/trunk/mustella/tests/resources/ResourceBundle/Methods/ResourceBundle_Methods_getNumber.mxml Tue Aug 7 17:34:13 2012
@@ -0,0 +1,393 @@
+<?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="resources/ResourceBundle/Methods/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="ResourceBundleApp.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[
+
+ public function testGetNumberError(key:String):String
+ {
+ try
+ {
+ application.resourceBundle.getNumber(key);
+ }
+ catch (e:Error)
+ {
+ return e.toString();
+ }
+ return null;
+ }
+
+ public function testGetNumber(key:String, expectedValue:Number):Boolean
+ {
+ // Special-case logic for when the resource value is NaN,
+ // because you can't use === to check for NaN.
+ if (expectedValue is Number && isNaN(expectedValue))
+ {
+ var resourceValue:* = application.resourceBundle.getNumber(key);
+ return resourceValue is Number && isNaN(resourceValue);
+ }
+
+ return application.resourceBundle.getNumber(key) === expectedValue;
+ }
+
+ ]]></mx:Script>
+
+ <testCases>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_NO_SUCH_KEY" description="Tests that the getNumber() method of ResourceBundle throws an Error when accessing a non-existent resource" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumberError('NO_SUCH_KEY')" value="Error: Key NO_SUCH_KEY was not found in resource bundle myResources"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_STRING" description="Tests the getNumber() method of ResourceBundle for a resource value which is a typical String" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('STRING', NaN)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_STRING_LIST" description="Tests the getNumber() method of ResourceBundle for a resource value which is a typical String of comma-separated items" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('STRING_LIST', NaN)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_STRING_EMPTY" description="Tests the getNumber() method of ResourceBundle for a resource value which is an empty String" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 1 below -->
+ <AssertMethodValue method="value=testGetNumberError('STRING_EMPTY')" value="Error: Key STRING_EMPTY was not found in resource bundle myResources"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_STRING_NULL" description="Tests the getNumber() method of ResourceBundle for a resource value which is the String 'null'" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('STRING_NULL', NaN)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_STRING_UNDEFINED" description="Tests the getNumber() method of ResourceBundle for a resource value which is the String 'undefined'" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('STRING_UNDEFINED', NaN)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_STRING_TRUE_LOWERCASE" description="Tests the getNumber() method of ResourceBundle for a resource value which is the String 'true'" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('STRING_TRUE_LOWERCASE', NaN)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_STRING_TRUE_MIXEDCASE" description="Tests the getNumber() method of ResourceBundle for a resource value which is the String 'True'" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('STRING_TRUE_MIXEDCASE', NaN)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_STRING_TRUE_UPPERCASE" description="Tests the getNumber() method of ResourceBundle for a resource value which is the String 'TRUE'" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('STRING_TRUE_UPPERCASE', NaN)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_STRING_FALSE_LOWERCASE" description="Tests the getNumber() method of ResourceBundle for a resource value which is the String 'false'" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('STRING_FALSE_LOWERCASE', NaN)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_STRING_FALSE_MIXEDCASE" description="Tests the getNumber() method of ResourceBundle for a resource value which is the String 'False'" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('STRING_FALSE_MIXEDCASE', NaN)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_STRING_FALSE_UPPERCASE" description="Tests the getNumber() method of ResourceBundle for a resource value which is the String 'FALSE'" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('STRING_FALSE_UPPERCASE', NaN)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_STRING_NAN" description="Tests the getNumber() method of ResourceBundle for a resource value which is the String 'NaN'" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('STRING_NAN', NaN)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_STRING_ZERO" description="Tests the getNumber() method of ResourceBundle for a resource value which is the String '0'" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('STRING_ZERO', 0)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_STRING_POSITIVE_INTEGER" description="Tests the getNumber() method of ResourceBundle for a resource value which is the String rep of a typical positive integer" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('STRING_POSITIVE_INTEGER', 3)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_STRING_NEGATIVE_INTEGER" description="Tests the getNumber() method of ResourceBundle for a resource value which is the String rep of a typical negative integer" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('STRING_NEGATIVE_INTEGER', -3)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_STRING_FIXEDPOINT" description="Tests the getNumber() method of ResourceBundle for a resource value which is the String rep of a typical fractional Number" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('STRING_FIXEDPOINT', 1.5)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_STRING_FLOATINGPOINT" description="Tests the getNumber() method of ResourceBundle for a resource value which is the String rep of a typical fractional Number in exponential notation" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('STRING_FLOATINGPOINT', 0.5)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_NULL" description="Tests the getNumber() method of ResourceBundle for a resource value which is null" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 1 below -->
+ <AssertMethodValue method="value=testGetNumberError('NULL')" value="Error: Key NULL was not found in resource bundle myResources"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_UNDEFINED" description="Tests the getNumber() method of ResourceBundle for a resource value which is undefined" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 1 below -->
+ <AssertMethodValue method="value=testGetNumberError('UNDEFINED')" value="Error: Key UNDEFINED was not found in resource bundle myResources"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_TRUE" description="Tests the getNumber() method of ResourceBundle for a resource value which is true" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('TRUE', 1)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_FALSE" description="Tests the getNumber() method of ResourceBundle for a resource value which is false" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 1 below -->
+ <AssertMethodValue method="value=testGetNumberError('FALSE')" value="Error: Key FALSE was not found in resource bundle myResources"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_NAN" description="Tests the getNumber() method of ResourceBundle for a resource value which is NaN" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 1 below -->
+ <AssertMethodValue method="value=testGetNumberError('NAN')" value="Error: Key NAN was not found in resource bundle myResources"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_ZERO" description="Tests the getNumber() method of ResourceBundle for a resource value which is 0" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <!-- See Note 1 below -->
+ <AssertMethodValue method="value=testGetNumberError('ZERO')" value="Error: Key ZERO was not found in resource bundle myResources"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_POSITIVE_INTEGER" description="Tests the getNumber() method of ResourceBundle for a resource value which is a typical positive integer" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('POSITIVE_INTEGER', 3)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_NEGATIVE_INTEGER" description="Tests the getNumber() method of ResourceBundle for a resource value which is a typical negative integer" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('NEGATIVE_INTEGER', -3)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_FIXEDPOINT" description="Tests the getNumber() method of ResourceBundle for a resource value which is a typical fractional Number" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('FIXEDPOINT', 1.5)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_FLOATINGPOINT" description="Tests the getNumber() method of ResourceBundle for a resource value which is a typical fractional Number in exponential notation" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('FLOATINGPOINT', 0.5)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_CLASS" description="Tests the getNumber() method of ResourceBundle for a resource value which is a Class reference" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('CLASS', NaN)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_ARRAY" description="Tests the getNumber() method of ResourceBundle for a resource value which is an Array of Strings" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('ARRAY', NaN)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ <TestCase frequency="all" testID="ResourceBundle_getNumber_OBJECT" description="Tests the getNumber() method of ResourceBundle for a resource value which is a plain Object" keywords="[resources,ResourceBundle,getNumber]">
+ <setup>
+ <RunCode code="application.setup()"/>
+ </setup>
+ <body>
+ <AssertMethodValue method="value=testGetNumber('OBJECT', NaN)" value="true"/>
+ <Pause timeout="1"/>
+ </body>
+ </TestCase>
+
+ </testCases>
+
+ <!--
+
+ Note 1: This is peculiar legacy behavior due to bad coding that used !value
+ to try to detect a nonexistent resource.
+ But it doesn't matter, because getNumber() is a deprecated method.
+
+ -->
+
+</UnitTester>
+