| <?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="containers/Panel/Styles/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="SkinImprovements_Panel_Basic.mxml"> |
| |
| <!-- this set of lines form a template that must be in each unit test --> |
| <mx:Script> |
| <![CDATA[ |
| import mx.managers.SystemManager; |
| |
| public static function init(o:DisplayObject):void |
| { |
| |
| } |
| |
| public function setPercentWidthAndHeight():void{ |
| |
| application.componentPanelPngBorderSkin.myPanelBSpng.percentHeight=100; |
| application.componentPanelPngBorderSkin.myPanelBSpng.percentWidth=100; |
| application.componentPanelPngBorderSkin.myPanelBSpng.setStyle("paddingTop",78); |
| application.componentPanelPngBorderSkin.myPanelBSpng.setStyle("paddingBottom",55); |
| } |
| |
| |
| ]]> |
| </mx:Script> |
| <mx:Metadata> |
| <![CDATA[ |
| [Mixin] |
| ]]> |
| </mx:Metadata> |
| <!-- end of set of lines that must be in each unit test --> |
| |
| <testCases> |
| <TestCase testID="Test_Panel_BorderSkin_png" description="Skinning Improvements phase I being validated." keywords="[SkinImprovement, Panel, BorderSkin, Png]"> |
| <setup> |
| <SetProperty target="skinningVS" propertyName="selectedIndex" valueExpression="value=application.skinningVS.numChildren-1" |
| waitTarget="skinningVS" waitEvent="change" /> |
| <SetProperty target="skinningVS" propertyName="selectedIndex" value="5" |
| waitTarget="skinningVS" waitEvent="change" /> |
| <ResetComponent target="componentPanelPngBorderSkin" className="component_Panel_Png_BorderSkin" waitTarget="componentPanelPngBorderSkin" waitEvent="updateComplete"/> |
| <WaitForEffectsToEnd /> |
| </setup> |
| <body> |
| <CompareBitmap target="componentPanelPngBorderSkin" url="../Styles/Baselines/Panel_BorderSkin_scale9_Png3.png" /> |
| </body> |
| </TestCase> |
| <TestCase testID="Test_Panel_BorderSkin_png_width_height" description="Skinning Improvements phase I being validated." keywords="[SkinImprovement, Panel, BorderSkin, Png, width, height]"> |
| <setup> |
| <SetProperty target="skinningVS" propertyName="selectedIndex" valueExpression="value=application.skinningVS.numChildren-1" |
| waitTarget="skinningVS" waitEvent="change" /> |
| <SetProperty target="skinningVS" propertyName="selectedIndex" value="5" |
| waitTarget="skinningVS" waitEvent="change" /> |
| <ResetComponent target="componentPanelPngBorderSkin" className="component_Panel_Png_BorderSkin" waitTarget="componentPanelPngBorderSkin" waitEvent="updateComplete"/> |
| <DispatchMouseClickEvent localX="10" localY="10" target="componentPanelPngBorderSkin.BtnPng" waitTarget="componentPanelPngBorderSkin.myPanelBSpng" waitEvent="updateComplete" /> |
| <WaitForEffectsToEnd /> |
| </setup> |
| <body> |
| <CompareBitmap target="componentPanelPngBorderSkin" url="../Styles/Baselines/Panel_BorderSkin_scale9_Png4.png" /> |
| </body> |
| </TestCase> |
| <TestCase testID="Test_Panel_BorderSkin_png_percent_width_height" description="Skinning Improvements phase I being validated." keywords="[SkinImprovement, Panel, BorderSkin, Png, percentWidth, percentHeight]"> |
| <setup> |
| <SetProperty target="skinningVS" propertyName="selectedIndex" value="5" /> |
| <ResetComponent target="componentPanelPngBorderSkin" className="component_Panel_Png_BorderSkin" waitTarget="componentPanelPngBorderSkin" waitEvent="updateComplete"/> |
| <RunCode code="setPercentWidthAndHeight()" timeout="2000" waitTarget="componentPanelPngBorderSkin.myPanelBSpng" waitEvent="updateComplete"/> |
| <WaitForEffectsToEnd /> |
| </setup> |
| <body> |
| <CompareBitmap target="componentPanelPngBorderSkin" url="../Styles/Baselines/Panel_BorderSkin_scale9_Png5.png" /> |
| </body> |
| </TestCase> |
| </testCases> |
| </UnitTester> |