| <?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/Grid/Styles/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Grid_Mirroring_Basic.mxml"> |
| |
| <!-- this set of lines Grid 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 --> |
| |
| <testCases> |
| |
| <TestCase testID="Grid_Styles_Mirroring_RTL" keywords="[Grid, Styles, Mirroring]" description="Test layoutDirection = rtl on Grid"> |
| <setup> |
| <ResetComponent target="myCustomGrid" className="CustomGrid" waitEvent="updateComplete" waitTarget="myCustomGrid"/> |
| </setup> |
| <body> |
| <CompareBitmap target="myCustomGrid.myGrid" url="../Styles/baselines/$testID_1.png"/> |
| <SetStyle target="myCustomGrid.myGrid" styleName="layoutDirection" value="rtl" waitEvent="updateComplete"/> |
| <CompareBitmap target="myCustomGrid.myGrid" url="../Styles/baselines/$testID_2.png"/> |
| </body> |
| </TestCase> |
| |
| <TestCase testID="Grid_Styles_Mirroring_RTL_tabOrder" keywords="[Grid, Styles, Mirroring]" description="Test layoutDirection = rtl on Grid"> |
| <setup> |
| <ResetComponent target="myCustomGrid" className="CustomGrid" waitEvent="updateComplete" waitTarget="myCustomGrid"/> |
| </setup> |
| <body> |
| <SetStyle target="myCustomGrid.myGrid" styleName="layoutDirection" value="rtl" waitEvent="updateComplete"/> |
| <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="myCustomGrid.b1"/> |
| <CompareBitmap target="myCustomGrid.myGrid" url="../Styles/baselines/$testID_1.png"/> |
| <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="myCustomGrid.b2"/> |
| <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="myCustomGrid.b3"/> |
| <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="myCustomGrid.b4"/> |
| <CompareBitmap target="myCustomGrid.myGrid" url="../Styles/baselines/$testID_2.png"/> |
| <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="myCustomGrid.b5"/> |
| <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="myCustomGrid.b6"/> |
| <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="myCustomGrid.b7"/> |
| <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="myCustomGrid.b8"/> |
| <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="myCustomGrid.b9"/> |
| </body> |
| </TestCase> |
| |
| </testCases> |
| </UnitTester> |