blob: f5eab350578f345fb51b0cf91dd6bc40c1945f49 [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="RuntimeLocalization/RTL_SparkSkin/Integration/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="RTL_Compiler_LocaleParams_1.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.ResourceManager;
]]></mx:Script>
<testCases>
<!--
========================================================
Verify -locale[=]en_US[,]fr_FR[,]ja_JP combinations:
1) Verify the locale chain.
2) Verify resources were included by changing the locale
chain and checking resources.
========================================================
-->
<TestCase frequency="all" testID="RTL_Compiler_LocaleParams_1_LocaleChain" description="Be sure that the locale chain was set correctly." keywords="[Localization,Compiler,locale]" >
<body>
<AssertMethodValue method="value=ResourceManager.getInstance().localeChain.toString()" value="en_US,ja_JP" />
<Pause timeout="1" />
</body>
</TestCase>
<TestCase frequency="all" testID="RTL_Compiler_LocaleParams_1_EnglishPresent" description="Be sure that the English resources are present." keywords="[Localization,Compiler,locale]" >
<body>
<AssertPropertyValue target="lbl1" propertyName="text" value="View Source" />
<Pause timeout="1" />
</body>
</TestCase>
<TestCase frequency="all" testID="RTL_Compiler_LocaleParams_1_JapanesePresent" description="Be sure that the Japanese resources are present." keywords="[Localization,Compiler,locale]" >
<setup>
<RunCode code="ResourceManager.getInstance().localeChain=['ja_JP','en_US']" waitTarget="lbl1" waitEvent="updateComplete" />
</setup>
<body>
<AssertPropertyValue target="lbl1" propertyName="text" value="ソースの表示" />
</body>
</TestCase>
</testCases>
</UnitTester>