| <?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="gumbo/components/RadioButton/integration/" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:m="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="FxRadioButtonBasic.mxml"> |
| |
| <!-- this set of lines form a template that must be in each unit test --> |
| |
| <fx:Script> |
| <![CDATA[ |
| public static function init(o:DisplayObject):void |
| { |
| } |
| ]]> |
| </fx:Script> |
| |
| <fx:Metadata> |
| <![CDATA[ |
| [Mixin] |
| ]]> |
| </fx:Metadata> |
| |
| <!-- end of set of lines that must be in each unit test --> |
| |
| <fx:Script> |
| <![CDATA[ |
| import spark.components.RadioButton; |
| import comps.*; |
| ]]> |
| </fx:Script> |
| |
| <testCases> |
| |
| <TestCase testID="FxRadioButton_integration_customSkin" keywords="[RadioButton, integration]" description="visual check of a custom skin"> |
| <setup> |
| <ResetComponent target="rb1" className="spark.components.RadioButton" waitEvent="updateComplete" /> |
| <SetProperty target="rb1" propertyName="width" value="200" waitTarget="rb1" waitEvent="updateComplete" /> |
| <SetProperty target="rb1" propertyName="label" value="Skinned Radio Button" waitTarget="rb1.skin" waitEvent="updateComplete" /> |
| <SetStyle target="rb1" styleName="skinClass" value="{comps.CustomRadioButtonSkin}" waitEvent="updateComplete" /> |
| </setup> |
| <body> |
| <CompareBitmap url="../integration/baselines/FxRadioButton_integration_customSkin.png" target="rb1"/> |
| </body> |
| </TestCase> |
| |
| <TestCase testID="FxRadioButton_integration_customSkin_select_icon" keywords="[RadioButton, integration]" description="visual check of a custom skin"> |
| <setup> |
| <ResetComponent target="rb1" className="spark.components.RadioButton" waitEvent="updateComplete" /> |
| <SetProperty target="rb1" propertyName="width" value="200" waitTarget="rb1" waitEvent="updateComplete" /> |
| <SetProperty target="rb1" propertyName="label" value="Skinned Radio Button" waitTarget="rb1.skin" waitEvent="updateComplete" /> |
| <SetStyle target="rb1" styleName="skinClass" value="{comps.CustomRadioButtonSkin}" waitEvent="updateComplete" /> |
| <DispatchMouseClickEvent target="rb1" localX="3" localY="3" waitEvent="updateComplete" waitTarget="rb1"/> |
| </setup> |
| <body> |
| <CompareBitmap url="../integration/baselines/$testID.png" target="rb1"/> |
| </body> |
| </TestCase> |
| |
| <TestCase testID="FxRadioButton_integration_customSkin_select_label" keywords="[RadioButton, integration]" description="visual check of a custom skin"> |
| <setup> |
| <ResetComponent target="rb1" className="spark.components.RadioButton" waitEvent="updateComplete" /> |
| <SetProperty target="rb1" propertyName="width" value="200" waitTarget="rb1" waitEvent="updateComplete" /> |
| <SetProperty target="rb1" propertyName="label" value="Skinned Radio Button" waitTarget="rb1.skin" waitEvent="updateComplete" /> |
| <SetStyle target="rb1" styleName="skinClass" value="{comps.CustomRadioButtonSkin}" waitEvent="updateComplete" /> |
| <DispatchMouseClickEvent target="rb1" localX="70" localY="9" waitEvent="updateComplete" waitTarget="rb1"/> |
| </setup> |
| <body> |
| <CompareBitmap url="../integration/baselines/$testID.png" target="rb1"/> |
| </body> |
| </TestCase> |
| |
| </testCases> |
| </UnitTester> |
| |
| |