| <?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="mx/controls/MovieClipSWFLoader/versioning/" |
| xmlns:mx="http://www.adobe.com/2006/mxml" |
| xmlns="*" |
| testSWF="MP_SparkControls_Main.mxml"> |
| |
| <mx:Script> |
| <![CDATA[ |
| |
| import mx.core.IFlexDisplayObject; |
| import mx.events.FlexEvent; |
| import flash.utils.*; |
| import mx.core.FlexSprite; |
| |
| public static function init(o:DisplayObject):void |
| { |
| |
| } |
| |
| |
| |
| ]]> |
| </mx:Script> |
| |
| <mx:Metadata> |
| <![CDATA[ |
| [Mixin] |
| ]]> |
| </mx:Metadata> |
| |
| <testCases> |
| <TestCase testID="MP_MovieClipSWFLoader_toolTip_trusted" description="Test that you can see a tooltip for a Spark component." keywords="[TextInput, Spark, Marshall Plan, ToolTip]"> |
| <setup> |
| <ResetComponent target="control1" className="spark.components.TextInput" waitTarget="control1" |
| waitEvent="updateComplete" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" /> |
| <SetProperty target="swf1" propertyName="source" value="../../../../Assets/Images/smallbluerect.jpg" waitTarget="swf1" waitEvent="complete"/> |
| <Pause timeout="100" /> |
| <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="false" /> |
| <SetProperty target="swf1" propertyName="source" value="assets/MP_SparkControls_Child.swf" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/> |
| </setup> |
| <body> |
| <DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/> |
| <DispatchMouseEvent type="mouseOver" target="swf1.content.document.textinput1" localX="20" localY="8" |
| waitEvent="toolTipShown" waitTarget="swf1.content.document.textinput1" /> |
| <WaitForEffectsToEnd /> |
| <Pause timeout="200" /> |
| <CompareBitmap numColorVariances="4" maxColorVariance="10" url="../versioning/baselines/$testID_2.png" target="swf1.content.document.group1" timeout="2000" /> |
| </body> |
| </TestCase> |
| <TestCase testID="MP_MovieClipSWFLoader_toolTip_compatibility" description="Test that you can see a tooltip for a Spark component in compatibility mode." keywords="[TextInput, Spark, Marshall Plan, ToolTip]"> |
| <setup> |
| <ResetComponent target="control1" className="spark.components.TextInput" waitTarget="control1" waitEvent="updateComplete" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" /> |
| <SetProperty target="swf1" propertyName="source" value="../../../../../Assets/Images/smallbluerect.jpg" waitTarget="swf1" waitEvent="complete"/> |
| <Pause timeout="100" /> |
| <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="false" /> |
| <SetProperty target="swf1" propertyName="source" value="assets/MP_SparkControls_Child.swf" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/> |
| </setup> |
| <body> |
| <DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/> |
| <DispatchMouseEvent type="mouseOver" target="swf1.content.document.textinput1" localX="20" localY="8"/> |
| <AssertEvent eventName="toolTipShown" eventClass="mx.events::ToolTipEvent" target="swf1.content.document.textinput1" /> |
| </body> |
| </TestCase> |
| <TestCase testID="MP_MovieClipSWFLoader_toolTip_untrusted" description="Test that you can see a tooltip for a Spark component in untrusted mode." keywords="[TextInput, Spark, Marshall Plan, ToolTip]"> |
| <setup> |
| <ResetComponent target="control1" className="spark.components.TextInput" waitTarget="control1" waitEvent="updateComplete" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" /> |
| <SetProperty target="swf1" propertyName="source" value="../../../../../Assets/Images/smallbluerect.jpg" waitTarget="swf1" waitEvent="complete"/> |
| <Pause timeout="100" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="false" /> |
| <SetProperty target="swf1" propertyName="autoLoad" value="false" /> |
| <SetProperty target="swf1" propertyName="source" value="assets/MP_SparkControls_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/> |
| <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/> |
| </setup> |
| <body> |
| <DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/> |
| <DispatchMouseEvent type="mouseOver" target="swf1.content.document.textinput1" localX="20" localY="8" waitEvent="toolTipShown" waitTarget="swf1.content.document.textinput1" /> |
| <AssertEvent eventName="toolTipShown" eventClass="mx.events::ToolTipEvent" target="swf1.content.document.textinput1" /> |
| </body> |
| </TestCase> |
| |
| </testCases> |
| </UnitTester> |