| <?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/ControlBar/Properties/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="ControlBar_Basic.mxml"> |
| |
| <!-- this set of lines ControlBar 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[ |
| import mx.containers.ControlBar; |
| import mx.core.IFlexDisplayObject; |
| |
| public function setSize():void //For Validating Dock property |
| { |
| application.width=600; |
| application.height=600; |
| } |
| |
| ]]> |
| </mx:Script> |
| |
| <testCases> |
| |
| <TestCase testID="ControlBar_Property_autoLayout1" keywords="[autoLayout, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="autoLayout" value="true"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_autoLayout2" keywords="[autoLayout, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetProperty target="myCustomCB.myCB" propertyName="autoLayout" value="true" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="autoLayout" value="true"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_autoLayout3" keywords="[autoLayout, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetProperty target="myCustomCB.myCB" propertyName="autoLayout" value="false" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="autoLayout" value="false"/> |
| |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_clipContent1" keywords="[clipContent, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <WaitForEffectsToEnd /> |
| <CompareBitmap target="myCustomCB.myCB" url="../Properties/baselines/clipContent1.png" timeout="5000" numColorVariances="4" ignoreMaxColorVariance="true"/> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="clipContent" value="true"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_clipContent2" keywords="[clipContent, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="clipContent" value="false" /> |
| </setup> |
| <body> |
| <WaitForEffectsToEnd /> |
| <CompareBitmap target="myCustomCB.myCB" url="../Properties/baselines/clipContent2.png" timeout="5000" /> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="clipContent" value="false"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_clipContent3" keywords="[clipContent, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="width" value="35" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="clipContent" value="true" waitEvent="updateComplete" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="clipContent" value="true"/> |
| <WaitForEffectsToEnd /> |
| <CompareBitmap target="myCustomCB.myCB" url="../Properties/baselines/clipContent3.png" timeout="5000" /> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_creationPolicy1" keywords="[creationPolicy, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="creationPolicy" valueExpression="value='auto'"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_creationPolicy2" keywords="[creationPolicy, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="creationPolicy" value="all"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="creationPolicy" value="all"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_creationPolicy3" keywords="[creationPolicy, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="creationPolicy" value="none" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="creationPolicy" value="none"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_defaultButton1" keywords="[defaultButton, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="defaultButton" valueExpression="value=null"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_height1" keywords="[height, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="height" value="46"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_height2" keywords="[height, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="height" value="100" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="height" value="100"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_height3" keywords="[height, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="height" value="100.5" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="height" value="100.5"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_horizontalLineScrollSize1" keywords="[Scroll, size, Line, Horizontal, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="horizontalLineScrollSize" value="5"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_horizontalLineScrollSize2" keywords="[Scroll, Size, Line, Horizontal, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="horizontalLineScrollSize" value="10" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="horizontalLineScrollSize" value="10"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_horizontalLineScrollSize3" keywords="[Scroll, size, Line, Horizontal, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="horizontalLineScrollSize" value="-10" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="horizontalLineScrollSize" value="-10"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_horizontalPageScrollSize1" keywords="[Scroll, Size, Page, Horizontal, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="horizontalPageScrollSize" value="0"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_horizontalPageScrollSize2" keywords="[Scroll, Size, Page, Horizontal, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="horizontalPageScrollSize" value="10" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="horizontalPageScrollSize" value="10"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_horizontalPageScrollSize3" keywords="[Scroll, Size, Page, Horizontal, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="horizontalPageScrollSize" value="-10" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="horizontalPageScrollSize" value="-10"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_horizontalScrollPosition1" keywords="[Scroll, Position, Horizontal, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="horizontalScrollPosition" value="0"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_horizontalScrollPosition2" keywords="[Scroll, Position, Horizontal, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="horizontalScrollPosition" value="10"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="horizontalScrollPosition" value="10"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_horizontalScrollPosition3" keywords="[Scroll, Position, Horizontal, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="horizontalScrollPosition" value="0"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="horizontalScrollPosition" value="0"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_includeInLayout1" keywords="[includeInLayout, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="includeInLayout" value="true"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_includeInLayout2" keywords="[includeInLayout, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="includeInLayout" value="true" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="includeInLayout" value="true"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_includeInLayout3" keywords="[includeInLayout, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="includeInLayout" value="false"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="includeInLayout" value="false"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_label1" keywords="[label, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="label" value=""/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_label2" keywords="[label, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="label" value="ControlBar Label" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="label" value="ControlBar Label"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_maxHeight1" keywords="[maxHeight, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="maxHeight" value="10000"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_maxHeight2" keywords="[maxHeight, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="maxHeight" value="100" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="maxHeight" value="100"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_maxHeight3" keywords="[maxHeight, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="maxHeight" value="126.5" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="maxHeight" value="126.5"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_maxHorizontalScrollPosition1" keywords="[maxHorizontalScrollPosition, horizontal, scroll, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="maxHorizontalScrollPosition" value="0"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_maxVerticalScrollPosition1" keywords="[maxVerticalScrollPosition, horizontal, scroll, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="maxVerticalScrollPosition" value="0"/> |
| </body> |
| </TestCase> |
| |
| <TestCase testID="ControlBar_Property_maxWidth1" keywords="[maxWidth, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="maxWidth" value="10000"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_maxWidth2" keywords="[maxWidth, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="maxWidth" value="100" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="maxWidth" value="100"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_maxWidth3" keywords="[maxWidth, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="maxWidth" value="126.5" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="maxWidth" value="126.5"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_minHeight1" keywords="[maxHeight, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="minHeight" value="46"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_minHeight2" keywords="[maxHeight, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="minHeight" value="100" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="minHeight" value="100"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_minHeight3" keywords="[minHeight, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="minHeight" value="126.5" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="minHeight" value="126.5"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_minWidth1" keywords="[minWidth, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="minWidth" value="1378"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_minWidth2" keywords="[minWidth, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="minWidth" value="100" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="minWidth" value="100"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_minWidth3" keywords="[minWidth, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="minWidth" value="126.5" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="minWidth" value="126.5"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_numChildren1" keywords="[numChildren, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="numChildren" value="12"/> |
| </body> |
| </TestCase> |
| |
| <TestCase testID="ControlBar_Property_percentHeight1" keywords="[percentHeight, unset, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="percentHeight" value="NaN"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_percentHeight2" keywords="[percentHeight, whole, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="percentHeight" value="80" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="percentHeight" value="80"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_percentHeight3" keywords="[percentHeight, decimal, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="percentHeight" value="50.5" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="percentHeight" value="50.5"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_percentWidth1" keywords="[percentWidth, unset, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="percentWidth" value="NaN"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_percentWidth2" keywords="[percentWidth, whole, ControlBar]" > |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="percentWidth" value="80" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="percentWidth" value="80"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_percentWidth3" keywords="[percentWidth, decimal, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="percentWidth" value="50.5" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="percentWidth" value="50.5"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_scaleX1" keywords="[scaleX, unset, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="scaleX" value="1"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_scaleX2" keywords="[scaleX, zero, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="scaleX" value="0" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="scaleX" value="0"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_scaleX3" keywords="[scaleX, 2, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="scaleX" value="2" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="scaleX" value="2"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_scaleY1" keywords="[scaleY, unset, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="scaleY" value="1"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_scaleY2" keywords="[scaleY, zero, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="scaleY" value="0" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="scaleY" value="0"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_scaleY3" keywords="[scaleY, 2, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="scaleY" value="2" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="scaleY" value="2"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_styleName1" keywords="[styleName, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="styleName" valueExpression="value=null"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_styleName2" keywords="[styleName, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="styleName" value="myStyle" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="styleName" value="myStyle"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_toolTip1" keywords="[toolTip, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| </setup> |
| <body> |
| <DispatchMouseEvent target="myCustomCB.myCB" type="mouseOver" localX="10" localY="10"/> |
| <AssertNoEvent target="myCustomCB.myCB" eventName="toolTipShow"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_visible1" keywords="[visible, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="visible" value="true"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_visible2" keywords="[visible, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="visible" value="true"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="visible" value="true"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_visible3" keywords="[visible, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="visible" value="false"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="visible" value="false"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_verticalLineScrollSize1" keywords="[vertical, Line, Scroll, Size, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="verticalLineScrollSize" value="5"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_verticalLineScrollSize2" keywords="[vertical, Line, Scroll, Size, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="verticalLineScrollSize" value="20" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="verticalLineScrollSize" value="20"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_verticalScrollPosition1" keywords="[vertical, Scroll, Position, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="verticalScrollPosition" value="0"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_width1" keywords="[width, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="width" value="1378"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_width2" keywords="[width, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="width" value="100" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="width" value="100"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_width3" keywords="[width, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="width" value="126.5" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="width" value="126"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_x1" keywords="[x, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="x" value="0"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_x2" keywords="[x, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="x" value="100" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="x" value="100"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_x3" keywords="[x, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="x" value="-5.6" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="x" value="-5.6000000000000005"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_y1" keywords="[y, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="y" value="0"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_y2" keywords="[y, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="y" value="100" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="y" value="100"/> |
| </body> |
| </TestCase> |
| <TestCase testID="ControlBar_Property_y3" keywords="[y, ControlBar]"> |
| <setup> |
| <ResetComponent target="myCustomCB" className="CustomCB" waitEvent="updateComplete" waitTarget="myCustomCB"/> |
| <SetStyle target="myCustomCB.myCB" styleName="borderStyle" value="solid" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetStyle target="myCustomCB.myCB" styleName="color" value="#CCCCFF" waitEvent="updateComplete" waitTarget="myCustomCB.myCB" /> |
| <SetProperty target="myCustomCB.myCB" propertyName="y" value="-5.6" waitEvent="updateComplete" waitTarget="myCustomCB.myCB"/> |
| </setup> |
| <body> |
| <AssertPropertyValue target="myCustomCB.myCB" propertyName="y" value="-5.6000000000000005"/> |
| </body> |
| </TestCase> |
| </testCases> |
| </UnitTester> |