blob: d8e64a37819d6ea9b00fb40f603b1a45a890bf3a [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<UnitTester testDir="gumbo/layout/TileLayout/properties/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="TileLayoutApp1.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:Script>
<![CDATA[
import spark.layouts.*;
]]>
</mx:Script>
<testCases>
<!--
========================================================
rowAlign:
This property gives control over the implementation of
horizontalAlign = "justify".
top: No justification.
justifyUsingGap: The gap changes. rowHeight does not.
justifyUsingHeight: The rowHeight changes. The gap does not.
========================================================
-->
<!--
========================================================
none
========================================================
-->
<TestCase testID="rowAlign_defaultValue" keywords="[TileLayout,rowAlign]" description="Check default." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<AssertMethodValue method="value = TileLayout(application.box1.group1.layout).rowAlign" valueExpression="value = RowAlign.TOP" />
</body>
</TestCase>
<TestCase testID="rowAlign_top_test1" keywords="[TileLayout,rowAlign]" description="1 item, group is taller than it." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 1)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 25)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 25)" waitTarget="box1.group1" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" />
</body>
</TestCase>
<TestCase testID="rowAlign_top_test2" keywords="[TileLayout,rowAlign]" description="2 items, only part of the 2nd one is visible." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 25)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 25)" waitTarget="box1.group1" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
</body>
</TestCase>
<TestCase testID="rowAlign_top_test3a" keywords="[TileLayout,rowAlign]" description="2 items, only part of the 2nd one is visible, scroll down/up." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 25)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 25)" waitTarget="box1.group1" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
</body>
</TestCase>
<TestCase testID="rowAlign_top_test3b" keywords="[TileLayout,rowAlign]" description="2 items, only part of the 2nd one is visible, scroll down/up." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 25)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 25)" waitTarget="box1.group1" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
</body>
</TestCase>
<TestCase testID="rowAlign_top_test4" keywords="[TileLayout,rowAlign]" description="4 items, only part of the 2nd one is visible." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 4)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 25)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 25)" waitTarget="box1.group1" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
</body>
</TestCase>
<TestCase testID="rowAlign_top_test5a" keywords="[TileLayout,rowAlign]" description="4 items, only part of the 2nd one is visible, scroll down/up." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 4)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 25)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 25)" waitTarget="box1.group1" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
</body>
</TestCase>
<TestCase testID="rowAlign_top_test5b" keywords="[TileLayout,rowAlign]" description="4 items, only part of the 2nd one is visible, scroll down/up." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 4)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 25)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 25)" waitTarget="box1.group1" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
</body>
</TestCase>
<TestCase testID="rowAlign_top_test6" keywords="[TileLayout,rowAlign]" description="2 items, only part of the gap is visible." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 50)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 45)" waitTarget="box1.group1" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
</body>
</TestCase>
<TestCase testID="rowAlign_top_test7a" keywords="[TileLayout,rowAlign]" description="2 items, only part of the gap is visible, scroll down/up." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 50)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 45)" waitTarget="box1.group1" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
</body>
</TestCase>
<TestCase testID="rowAlign_top_test7b" keywords="[TileLayout,rowAlign]" description="2 items, only part of the gap is visible, scroll down/up." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 50)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 45)" waitTarget="box1.group1" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
</body>
</TestCase>
<TestCase testID="rowAlign_top_test8" keywords="[TileLayout,rowAlign]" description="4 items, only part of the gap is visible." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 4)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 50)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 45)" waitTarget="box1.group1" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
</body>
</TestCase>
<TestCase testID="rowAlign_top_test9a" keywords="[TileLayout,rowAlign]" description="4 items, only part of the gap is visible, scroll down/up." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 4)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 50)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 45)" waitTarget="box1.group1" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
</body>
</TestCase>
<TestCase testID="rowAlign_top_test9b" keywords="[TileLayout,rowAlign]" description="4 items, only part of the gap is visible, scroll down/up." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 4)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 50)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 45)" waitTarget="box1.group1" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
</body>
</TestCase>
<!--
========================================================
justifyUsingGap
========================================================
-->
<TestCase testID="rowAlign_justifyUsingGap_test1" keywords="[TileLayout,rowAlign]" description="Group height less than item + gap. 2 items." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="60" />
<SetProperty target="box1.group1" propertyName="height" value="60" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_GAP" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 55)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 55)" waitTarget="box1.group1" waitEvent="updateComplete" />
<AssertPropertyValue target="box1.group1.layout" propertyName="verticalGap" value="6" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
</body>
</TestCase>
<TestCase testID="rowAlign_justifyUsingGap_test2a" keywords="[TileLayout,rowAlign]" description="Group height less than item + gap. 2 items, scroll." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="60" />
<SetProperty target="box1.group1" propertyName="height" value="60" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_GAP" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 55)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 55)" waitTarget="box1.group1" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<AssertPropertyValue target="box1.group1.layout" propertyName="verticalGap" value="6" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
</body>
</TestCase>
<TestCase testID="rowAlign_justifyUsingGap_test2b" keywords="[TileLayout,rowAlign]" description="Group height less than item + gap. 2 items, scroll." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="60" />
<SetProperty target="box1.group1" propertyName="height" value="60" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_GAP" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 55)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 55)" waitTarget="box1.group1" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<AssertPropertyValue target="box1.group1.layout" propertyName="verticalGap" value="6" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
</body>
</TestCase>
<TestCase testID="rowAlign_justifyUsingGap_test3" keywords="[TileLayout,rowAlign]" description="Group height a little more than item + gap. 2 items." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="60" />
<SetProperty target="box1.group1" propertyName="height" value="60" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_GAP" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 50)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 50)" waitTarget="box1.group1" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
<AssertPropertyValue target="box1.group1.layout" propertyName="verticalGap" value="9" />
</body>
</TestCase>
<TestCase testID="rowAlign_justifyUsingGap_test4" keywords="[TileLayout,rowAlign]" description="Group height a little more than item + gap. 2 items. Scroll a little ways over so we can see the gap." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="60" />
<SetProperty target="box1.group1" propertyName="height" value="60" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_GAP" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 50)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 50)" waitTarget="box1.group1" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.thumb" type="rollOver" localY="10" localX="2" waitTarget="box1.scroller1.verticalScrollBar.thumb.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.thumb" type="mouseDown" localY="10" localX="2" waitTarget="box1.scroller1.verticalScrollBar.thumb.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.thumb" type="mouseMove" localY="12" localX="2" waitTarget="box1.scroller1.verticalScrollBar" waitEvent="updateComplete" />
<AssertPropertyValue target="box1.group1.layout" propertyName="verticalGap" value="9" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
</body>
</TestCase>
<TestCase testID="rowAlign_justifyUsingGap_test5" keywords="[TileLayout,rowAlign]" description="Group height a little more than item + gap. 2 items. Scroll all the way." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="60" />
<SetProperty target="box1.group1" propertyName="height" value="60" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_GAP" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 50)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 50)" waitTarget="box1.group1" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<AssertPropertyValue target="box1.group1.layout" propertyName="verticalGap" value="9" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
</body>
</TestCase>
<TestCase testID="rowAlign_justifyUsingGap_test6" keywords="[TileLayout,rowAlign]" description="Group height equals 2 items + gap. 2 items." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="60" />
<SetProperty target="box1.group1" propertyName="height" value="60" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_GAP" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 26)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 26)" waitTarget="box1.group1" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" />
<AssertPropertyValue target="box1.group1.layout" propertyName="verticalGap" value="6" />
</body>
</TestCase>
<TestCase testID="rowAlign_justifyUsingGap_test7" keywords="[TileLayout,rowAlign]" description="Group height equals 2 items + gap. 2 items. Shorten Group by 2 pixels. Gap should increase." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="60" />
<SetProperty target="box1.group1" propertyName="height" value="60" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_GAP" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 26)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 26)" waitTarget="box1.group1" waitEvent="updateComplete" />
<SetProperty target="box1.group1" propertyName="width" value="58" waitTarget="box1.group1" waitEvent="updateComplete" />
<SetProperty target="box1.group1" propertyName="height" value="58" waitTarget="box1.group1" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
<AssertPropertyValue target="box1.group1.layout" propertyName="verticalGap" value="31" />
</body>
</TestCase>
<!--
========================================================
justifyUsingHeight
========================================================
-->
<TestCase testID="rowAlign_justifyUsingHeight_test1" keywords="[TileLayout,rowAlign]" description="Group height less than item height." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_HEIGHT" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 55)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 55)" waitTarget="box1.group1" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
<AssertPropertyValue target="box1.group1.layout" propertyName="rowHeight" value="56" />
</body>
</TestCase>
<TestCase testID="rowAlign_justifyUsingHeight_test2a" keywords="[TileLayout,rowAlign]" description="Group height less than item height. Scroll." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_HEIGHT" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 55)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 55)" waitTarget="box1.group1" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
<AssertPropertyValue target="box1.group1.layout" propertyName="rowHeight" value="56" />
</body>
</TestCase>
<TestCase testID="rowAlign_justifyUsingHeight_test2b" keywords="[TileLayout,rowAlign]" description="Group height less than item height. Scroll." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_HEIGHT" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 55)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 55)" waitTarget="box1.group1" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
<AssertPropertyValue target="box1.group1.layout" propertyName="rowHeight" value="56" />
</body>
</TestCase>
<TestCase testID="rowAlign_justifyUsingHeight_test3" keywords="[TileLayout,rowAlign]" description="Group height equals item height." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_HEIGHT" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 49)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 49)" waitTarget="box1.group1" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
<AssertPropertyValue target="box1.group1.layout" propertyName="rowHeight" value="50" />
</body>
</TestCase>
<TestCase testID="rowAlign_justifyUsingHeight_test4a" keywords="[TileLayout,rowAlign]" description="Group height equals item height. Scroll." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_HEIGHT" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 49)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 49)" waitTarget="box1.group1" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
<AssertPropertyValue target="box1.group1.layout" propertyName="rowHeight" value="50" />
</body>
</TestCase>
<TestCase testID="rowAlign_justifyUsingHeight_test4b" keywords="[TileLayout,rowAlign]" description="Group height equals item height. Scroll." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="50" />
<SetProperty target="box1.group1" propertyName="height" value="50" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_HEIGHT" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 49)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 49)" waitTarget="box1.group1" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
<AssertPropertyValue target="box1.group1.layout" propertyName="rowHeight" value="50" />
</body>
</TestCase>
<TestCase testID="rowAlign_justifyUsingHeight_test5" keywords="[TileLayout,rowAlign]" description="Group height exceeds item's height, but not by enough to fit 2 items and a gap. 1 item." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="70" />
<SetProperty target="box1.group1" propertyName="height" value="70" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_HEIGHT" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 1)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 50)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 50)" waitTarget="box1.group1" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" />
<AssertPropertyValue target="box1.group1.layout" propertyName="rowHeight" value="70" />
</body>
</TestCase>
<TestCase testID="rowAlign_justifyUsingHeight_test6" keywords="[TileLayout,rowAlign]" description="Group height exceeds item's height, but not by enough to fit 2 items and a gap. 2 items." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="70" />
<SetProperty target="box1.group1" propertyName="height" value="70" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_HEIGHT" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 50)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 50)" waitTarget="box1.group1" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
<AssertPropertyValue target="box1.group1.layout" propertyName="rowHeight" value="70" />
</body>
</TestCase>
<TestCase testID="rowAlign_justifyUsingHeight_test7a" keywords="[TileLayout,rowAlign]" description="Group height exceeds item's height, but not by enough to fit 2 items and a gap. 2 items. Scroll." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="70" />
<SetProperty target="box1.group1" propertyName="height" value="70" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_HEIGHT" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 50)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 50)" waitTarget="box1.group1" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
<AssertPropertyValue target="box1.group1.layout" propertyName="rowHeight" value="70" />
</body>
</TestCase>
<TestCase testID="rowAlign_justifyUsingHeight_test7b" keywords="[TileLayout,rowAlign]" description="Group height exceeds item's height, but not by enough to fit 2 items and a gap. 2 items. Scroll." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="70" />
<SetProperty target="box1.group1" propertyName="height" value="70" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_HEIGHT" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 50)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 50)" waitTarget="box1.group1" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.incrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.incrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="rollOver" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseDown" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<DispatchMouseEvent target="box1.scroller1.verticalScrollBar.decrementButton" type="mouseUp" localY="2" localX="2" waitTarget="box1.scroller1.verticalScrollBar.decrementButton.skin" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
<AssertPropertyValue target="box1.group1.layout" propertyName="rowHeight" value="70" />
</body>
</TestCase>
<TestCase testID="rowAlign_justifyUsingHeight_test8" keywords="[TileLayout,rowAlign]" description="Group height exceeds item's height, but not by enough to fit 2 items and a gap. 2 items. Increase Group height to fit both items + gap." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="70" />
<SetProperty target="box1.group1" propertyName="height" value="70" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_HEIGHT" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" waitTarget="box1.group1" waitEvent="updateComplete" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 50)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 50)" waitTarget="box1.group1" waitEvent="updateComplete" />
<SetProperty target="box1.group1" propertyName="height" value="110" waitTarget="box1.group1" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" />
<AssertPropertyValue target="box1.group1.layout" propertyName="rowHeight" value="52" />
</body>
</TestCase>
<TestCase testID="rowAlign_justifyUsingHeight_test9" keywords="[TileLayout,rowAlign]" description="Similar to the above, but start tall and decrease the group's height instead of starting short and increasing the group's height." >
<setup>
<ResetComponent target="box1" className="Assets::Box1" waitEvent="updateComplete" />
</setup>
<body>
<SetProperty target="box1.group1" propertyName="width" value="110" />
<SetProperty target="box1.group1" propertyName="height" value="70" />
<SetProperty target="box1.group1.layout" propertyName="rowAlign" valueExpression="value = RowAlign.JUSTIFY_USING_HEIGHT" />
<SetProperty target="box1.group1.layout" propertyName="requestedColumnCount" value="1" />
<RunCode code="application.addItemsToGroup(application.box1.group1, 2)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'width', 50)" />
<RunCode code="application.setPropsOnGroupElements(application.box1.group1, 'height', 50)" waitTarget="box1.group1" waitEvent="updateComplete" />
<SetProperty target="box1.group1" propertyName="width" value="70" waitTarget="box1.group1" waitEvent="updateComplete" />
<CompareBitmap url="../properties/baselines/$testID.png" target="box1" numColorVariances="5" maxColorVariance="1" />
<AssertPropertyValue target="box1.group1.layout" propertyName="rowHeight" value="70" />
</body>
</TestCase>
</testCases>
</UnitTester>