| <UnitTester |
| testDir="spark/components/VideoPlayer/regression/" |
| xmlns:mx="http://www.adobe.com/2006/mxml" |
| xmlns="*" |
| testSWF="../SWFs/SDK_21504.mxml"> |
| |
| <!--Default Script--> |
| <mx:Script> |
| <![CDATA[ |
| import spark.components.VideoPlayer; |
| public static function init(o:DisplayObject):void{} |
| ]]> |
| </mx:Script> |
| |
| <!--Default Metadata--> |
| <mx:Metadata><![CDATA[[Mixin]]]></mx:Metadata> |
| |
| <!--Test Cases--> |
| <testCases> |
| |
| <TestCase |
| testID="VideoPlayer_sdk_21504_playPauseButton" |
| keywords="[VideoPlayer]" |
| description="You should be able to tab and use keys to control the Spark VideoPlayer."> |
| <!--bugs> |
| <Bug bugID="SDK-21504"/> |
| </bugs--> |
| <setup> |
| <RunCode code="application.testPlayer.setFocus()"/> |
| <DispatchKeyEvent keys="[TAB]" /> |
| <Pause timeout="1000" reason="Wait for Video to load."/> |
| </setup> |
| <body> |
| <CompareBitmap url="../regression/baseline/$testID.png" /> |
| </body> |
| </TestCase> |
| |
| <TestCase |
| testID="VideoPlayer_sdk_21504_scrubBar" |
| keywords="[VideoPlayer]" |
| description="You should be able to tab and use keys to control the Spark VideoPlayer."> |
| <!--bugs> |
| <Bug bugID="SDK-21504"/> |
| </bugs--> |
| <setup> |
| <RunCode code="application.testPlayer.setFocus()"/> |
| <DispatchKeyEvent keys="[TAB]" repeatCount="2"/> |
| <Pause timeout="1000" reason="Wait for Video to load."/> |
| </setup> |
| <body> |
| <CompareBitmap url="../regression/baseline/$testID.png" /> |
| </body> |
| </TestCase> |
| |
| <TestCase |
| testID="VideoPlayer_sdk_21504_volumeBar" |
| keywords="[VideoPlayer]" |
| description="You should be able to tab and use keys to control the Spark VideoPlayer."> |
| <!--bugs> |
| <Bug bugID="SDK-21504"/> |
| </bugs--> |
| <setup> |
| <RunCode code="application.testPlayer.setFocus()"/> |
| <DispatchKeyEvent keys="[TAB]" repeatCount="3"/> |
| <Pause timeout="1000" reason="Wait for Video to load."/> |
| </setup> |
| <body> |
| <CompareBitmap numColorVariances="7" maxColorVariance="10" url="../regression/baseline/$testID.png" /> |
| </body> |
| </TestCase> |
| |
| <TestCase |
| testID="VideoPlayer_sdk_21504_fullScreenButton" |
| keywords="[VideoPlayer]" |
| description="You should be able to tab and use keys to control the Spark VideoPlayer."> |
| <!--bugs> |
| <Bug bugID="SDK-21504"/> |
| </bugs--> |
| <setup> |
| <RunCode code="application.testPlayer.setFocus()"/> |
| <DispatchKeyEvent keys="[TAB]" repeatCount="4"/> |
| <Pause timeout="1000" reason="Wait for Video to load."/> |
| </setup> |
| <body> |
| <CompareBitmap url="../regression/baseline/$testID.png" /> |
| </body> |
| </TestCase> |
| |
| </testCases> |
| </UnitTester> |