blob: 909b0a71c73d69bc3547597bfc3c9744bc3fe84e [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="Managers/LayoutManager/Events/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="LayoutManager_Events_Spark.mxml">
<mx:Script>
<![CDATA[
public static function init(o:DisplayObject):void
{
}
]]>
</mx:Script>
<mx:Metadata>
<![CDATA[
[Mixin]
]]>
</mx:Metadata>
<testCases>
<!-- updateComplete event -->
<TestCase testID="LayoutManager_events_updateComplete_addChild" description="Ensure that the updateComplete event is sent when addChild is called. This should cover SDK-20994"
keywords="[LayoutManager, updateComplete, addChild, bug]">
<body>
<RunCode code="application.addChildToCanvas()" waitEvent="added" waitTarget="canvas1" />
<AssertEvent eventName="updateComplete" eventClass="mx.events::FlexEvent" target="managerInstance" />
</body>
</TestCase>
<TestCase testID="LayoutManager_events_updateComplete_addElement" description="Ensure that the updateComplete event is sent when addElement is called. This should cover SDK-20994"
keywords="[LayoutManager, updateComplete, addElement, bug]">
<setup>
<ResetComponent target="group1" className="spark.components.Group" waitTarget="group1" waitEvent="updateComplete"/>
</setup>
<body>
<RunCode code="application.addElementToGroup()" waitEvent="added" waitTarget="group1" />
<AssertEvent eventName="updateComplete" eventClass="mx.events::FlexEvent" target="managerInstance" numExpectedEvents="1"
timeout="2000" />
</body>
</TestCase>
</testCases>
</UnitTester>