blob: 6afe3ecc7c965ba17e0e877c77379b724c5b9a92 [file] [log] [blame]
<UnitTester testDir="MarshallPlan/RSLs/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="AllowDomainBug.mxml">
<!--Default Script-->
<mx:Script>
<![CDATA[
public static function init(o:DisplayObject):void{}
]]>
</mx:Script>
<!--Default Metadata-->
<mx:Metadata><![CDATA[[Mixin]]]></mx:Metadata>
<testCases>
<TestCase testID="allowDomain_rsl" description="Test loading of untursted sub app which depends upon class loaded in trusted domain."
keywords="[RSL]">
<setup>
<SetProperty target="sl1" propertyName="autoLoad" value="true" />
<SetProperty target="sl1" propertyName="source" value="assets/baconplacemat.jpg" waitTarget="sl1" waitEvent="updateComplete"/>
<Pause timeout="100"/>
<SetProperty target="sl1" propertyName="autoLoad" value="false" />
<SetProperty target="sl1" propertyName="source" value="assets/SubApp.swf" waitTarget="sl1" waitEvent="updateComplete"/>
<SetProperty target="sl1" propertyName="autoLoad" value="true" waitTarget="sl1" waitEvent="complete" timeout="10000"/>
<SetProperty target="sl2" propertyName="autoLoad" value="true" />
<SetProperty target="sl2" propertyName="source" value="assets/baconplacemat.jpg" waitTarget="sl2" waitEvent="updateComplete"/>
<Pause timeout="100"/>
<SetProperty target="sl2" propertyName="autoLoad" value="false" />
<SetProperty target="sl2" propertyName="source" value="http://127.0.0.1:{portNumber}/MarshallPlan/SWFs/assets/UntrustedApp.swf" waitTarget="sl2" waitEvent="updateComplete"/>
<SetProperty target="sl2" propertyName="autoLoad" value="true" waitTarget="sl2" waitEvent="complete" timeout="10000"/>
<Pause timeout="100"/>
</setup>
<body>
<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="sl2.content" waitEvent="added" timeout="15000"/>
<DispatchMouseClickEvent target="sl2.content.document.runBtn" waitEvent="click" waitTarget="sl2.content.document.runBtn" />
<AssertPropertyValue target="sl2.content.document" propertyName="flag" value="true" />
</body>
</TestCase>
</testCases>
</UnitTester>