| <?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="components/H_V_Rule/Properties/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Rule_Basic.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:Style> |
| |
| .myStyle{ |
| color: #FF0000 |
| } |
| .myStyle2{ |
| color: #0000FF |
| } |
| |
| </mx:Style> |
| |
| <mx:Script> |
| <![CDATA[ |
| [Embed(source="../../../../Assets/Images/smallredrect.jpg")] |
| public var MyIcon:Class; |
| import mx.core.IFlexDisplayObject; |
| public function allChildrenlist():int |
| { |
| return (application.myCustomHRule.myHRule.rawChildren.numChildren); |
| } |
| public function autoLayoutAS():void{ |
| application.myCustomHRule.myHRule.autoLayout = false; |
| } |
| public function clipContentAS():void{ |
| application.myCustomHRule.myHRule.clipContent=false; |
| } |
| public function creationPolicyAS():void{ |
| application.myCustomHRule.myHRule.creationPolicy="all"; |
| } |
| public function getDefaultButton():Boolean{ |
| if(application.myCustomHRule.myHRule.defaultButton==application.myCustomHRule.myButton1) |
| return true; |
| return false; |
| } |
| public function setDefaultButtonAS():void{ |
| application.myCustomHRule.myHRule.defaultButton=application.myCustomHRule.myButton1; |
| } |
| public function setHeightAS():void{ |
| application.myCustomHRule.myHRule.height=120; |
| } |
| public function setHorizontalLineScrollSizeAS():void{ |
| application.myCustomHRule.myHRule.horizontalLineScrollSize=10; |
| } |
| public function setHorizontalPageScrollSizeAS():void{ |
| application.myCustomHRule.myHRule.horizontalPageScrollSize=10; |
| } |
| public function setHorizontalScrollPositionAS():void{ |
| application.myCustomHRule.myHRule.horizontalScrollPosition=10; |
| } |
| public function setHorizontalScrollPolicyAS():void{ |
| application.myCustomHRule.myHRule.horizontalScrollPolicy="on"; |
| } |
| public function setIncludeInLayoutAS():void{ |
| application.myCustomHRule.myHRule.includeInLayout="true"; |
| } |
| public function setLabelAS():void{ |
| application.myCustomHRule.myHRule.label="Other HRule Label"; |
| } |
| public function setMaxHeightAS():void{ |
| application.myCustomHRule.myHRule.maxHeight=150; |
| } |
| public function setMaxWidthAS():void{ |
| application.myCustomHRule.myHRule.maxWidth=150; |
| } |
| public function setMinHeightAS():void{ |
| application.myCustomHRule.myHRule.minHeight=150; |
| } |
| public function setMinWidthAS():void{ |
| application.myCustomHRule.myHRule.minWidth=150; |
| } |
| public function setPercentHeightAS():void{ |
| application.myCustomHRule.myHRule.percentHeight=70; |
| } |
| public function setPercentWidthAS():void{ |
| application.myCustomHRule.myHRule.percentWidth=70; |
| } |
| public function setScaleXAS():void{ |
| application.myCustomHRule.myHRule.scaleX=5; |
| } |
| public function setScaleYAS():void{ |
| application.myCustomHRule.myHRule.scaleY=5; |
| } |
| public function setStyleNameAS():void{ |
| application.myCustomHRule.myHRule.styleName='myStyle2'; |
| } |
| public function setToolTipAS():void{ |
| application.myCustomHRule.myHRule.toolTip="My HRule"; |
| } |
| public function setVisibleAS():void{ |
| application.myCustomHRule.myHRule.visible=false; |
| } |
| public function setVerticalLineScrollSizeAS():void{ |
| application.myCustomHRule.myHRule.verticalLineScrollSize=10; |
| } |
| public function setVerticalScrollPositionAS():void{ |
| application.myCustomHRule.myHRule.verticalScrollPosition=10; |
| } |
| public function setVerticalScrollPolicyAS():void{ |
| application.myCustomHRule.myHRule.verticalScrollPolicy='on'; |
| } |
| public function setWidthAS():void{ |
| application.myCustomHRule.myHRule.width=120; |
| } |
| public function setXAS():void{ |
| application.myCustomHRule.myHRule.x=50; |
| } |
| public function setYAS():void{ |
| application.myCustomHRule.myHRule.y=50; |
| } |
| ]]> |
| </mx:Script> |
| |
| <testCases> |
| <TestCase testID="HRule_Property_height1" keywords="[height, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="height" value="2"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_height2" keywords="[height, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="height" value="100" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="height" value="100"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_height3" keywords="[height, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="height" value="100.5" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="height" value="100.5"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_height4" keywords="[height, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <RunCode code="setHeightAS()" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="height" value="120"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_includeInLayout1" keywords="[includeInLayout, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="includeInLayout" value="true"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_includeInLayout2" keywords="[includeInLayout, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="includeInLayout" value="true" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="includeInLayout" value="true"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_includeInLayout3" keywords="[includeInLayout, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="includeInLayout" value="false" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="includeInLayout" value="false"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_includeInLayout4" keywords="[includeInLayout, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <RunCode code="setIncludeInLayoutAS()" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="includeInLayout" value="true"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_maxHeight1" keywords="[maxHeight, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="maxHeight" value="10000"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_maxHeight2" keywords="[maxHeight, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="maxHeight" value="100" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="maxHeight" value="100"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_maxHeight3" keywords="[maxHeight, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="maxHeight" value="126.5" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="maxHeight" value="126.5"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_maxHeight4" keywords="[maxHeight, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <RunCode code="setMaxHeightAS()" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="maxHeight" value="150"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_maxWidth1" keywords="[maxWidth, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="maxWidth" value="10000"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_maxWidth2" keywords="[maxWidth, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="maxWidth" value="100" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="maxWidth" value="100"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_maxWidth3" keywords="[maxWidth, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="maxWidth" value="126.5" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="maxWidth" value="126.5"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_maxWidth4" keywords="[maxWidth, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <RunCode code="setMaxWidthAS()" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="maxWidth" value="150"/> |
| </body> |
| </TestCase> |
| |
| <TestCase testID="HRule_Property_minHeight1" keywords="[maxHeight, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="minHeight" value="0"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_minHeight2" keywords="[maxHeight, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="minHeight" value="100" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="minHeight" value="100"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_minHeight3" keywords="[minHeight, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="minHeight" value="126.5" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="minHeight" value="126.5"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_minHeight4" keywords="[minHeight, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <RunCode code="setMinHeightAS()" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="minHeight" value="150"/> |
| </body> |
| </TestCase> |
| |
| <TestCase testID="HRule_Property_minWidth1" keywords="[minWidth, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="minWidth" value="0"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_minWidth2" keywords="[minWidth, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="minWidth" value="100" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="minWidth" value="100"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_minWidth3" keywords="[minWidth, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="minWidth" value="126.5" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="minWidth" value="126.5"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_minWidth4" keywords="[minWidth, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <RunCode code="setMinWidthAS()" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="minWidth" value="150"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_percentHeight1" keywords="[percentHeight, unset, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="percentHeight" value="NaN"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_percentHeight2" keywords="[percentHeight, whole, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="percentHeight" value="80" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="percentHeight" value="80"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_percentHeight3" keywords="[percentHeight, decimal, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="percentHeight" value="50.5" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="percentHeight" value="50.5"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_percentHeight4" keywords="[percentHeight, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <RunCode code="setPercentHeightAS()" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="percentHeight" value="70"/> |
| </body> |
| </TestCase> |
| |
| <TestCase testID="HRule_Property_percentWidth1" keywords="[percentWidth, unset, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="percentWidth" value="NaN"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_percentWidth2" keywords="[percentWidth, whole, HRule]" > |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="percentWidth" value="80" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="percentWidth" value="80"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_percentWidth3" keywords="[percentWidth, decimal, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="percentWidth" value="50.5" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="percentWidth" value="50.5"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_percentWidth4" keywords="[percentWidth, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <RunCode code="setPercentWidthAS()" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="percentWidth" value="70"/> |
| </body> |
| </TestCase> |
| |
| <TestCase testID="HRule_Property_scaleX1" keywords="[scaleX, unset, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="scaleX" value="1"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_scaleX2" keywords="[scaleX, zero, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="scaleX" value="0" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="scaleX" value="0"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_scaleX3" keywords="[scaleX, 2, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="scaleX" value="2" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="scaleX" value="2"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_scaleX4" keywords="[scaleX, large, value, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <RunCode code="setScaleXAS()" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="scaleX" value="5"/> |
| </body> |
| </TestCase> |
| |
| <TestCase testID="HRule_Property_scaleY1" keywords="[scaleY, unset, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="scaleY" value="1"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_scaleY2" keywords="[scaleY, zero, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="scaleY" value="0" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="scaleY" value="0"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_scaleY3" keywords="[scaleY, 2, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="scaleY" value="2" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="scaleY" value="2"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_scaleY4" keywords="[scaleY, large, value, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <RunCode code="setScaleYAS()" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="scaleY" value="5"/> |
| </body> |
| </TestCase> |
| |
| <TestCase testID="HRule_Property_styleName1" keywords="[styleName, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="styleName" valueExpression="value=null"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_styleName2" keywords="[styleName, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="styleName" value="myStyle" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="styleName" value="myStyle"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_styleName3" keywords="[styleName, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <RunCode code="setStyleNameAS()" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="styleName" value="myStyle2"/> |
| </body> |
| </TestCase> |
| |
| <TestCase testID="HRule_Property_toolTip1" keywords="[toolTip, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| </setup> |
| <body> |
| <DispatchMouseEvent target="myCustomHRule.myHRule" type="mouseOver" localX="10" localY="10"/> |
| <AssertNoEvent target="myCustomHRule.myHRule" eventName="toolTipShow"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_visible1" keywords="[visible, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="visible" value="true"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_visible2" keywords="[visible, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="visible" value="true" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="visible" value="true"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_visible3" keywords="[visible, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="visible" value="false" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="visible" value="false"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_visible4" keywords="[visible, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <RunCode code="setVisibleAS()" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="visible" value="false"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_width1" keywords="[width, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="width" value="100"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_width2" keywords="[width, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="width" value="100" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="width" value="100"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_width3" keywords="[width, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="width" value="126.5" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="width" value="126.5"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_width4" keywords="[width, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <RunCode code="setWidthAS()" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="width" value="120"/> |
| </body> |
| </TestCase> |
| |
| <TestCase testID="HRule_Property_x1" keywords="[x, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="x" value="0"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_x2" keywords="[x, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="x" value="100" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="x" value="100"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_x3" keywords="[x, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="x" value="-5.6" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="x" value="-5.6000000000000005"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_x4" keywords="[x, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <RunCode code="setXAS()" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="x" value="50"/> |
| </body> |
| </TestCase> |
| |
| <TestCase testID="HRule_Property_y1" keywords="[y, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="y" value="0"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_y2" keywords="[y, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="y" value="100" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="y" value="100"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_y3" keywords="[y, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetProperty target="myCustomHRule.myHRule" propertyName="y" value="-5.6" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="y" value="-5.6000000000000005"/> |
| </body> |
| </TestCase> |
| <TestCase testID="HRule_Property_y4" keywords="[y, HRule]"> |
| <setup> |
| <ResetComponent target="myCustomHRule" className="CustomHRule" waitEvent="updateComplete" waitTarget="myCustomHRule"/> |
| <SetStyle target="myCustomHRule.myHRule" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <SetStyle target="myCustomHRule.myHRule" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomHRule.myHRule" /> |
| <RunCode code="setYAS()" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomHRule.myHRule" propertyName="y" value="50"/> |
| </body> |
| </TestCase> |
| </testCases> |
| </UnitTester> |