Author: titmuss
Date: Thu Apr 24 02:18:15 2008
New Revision: 2327

URL: http://svn.slimdevices.com?rev=2327&root=Jive&view=rev
Log:
Bug: N/A
Description:
Macro to test playmode.


Added:
    7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodeMacro.lua
    7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodePause.bmp   
(with props)
    7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodePlay.bmp   
(with props)
    7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodeStop.bmp   
(with props)
Removed:
    7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/NowPlaying.bmp
    7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/NowPlayingMacro.lua
    7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/NowPlaying_fail.bmp
Modified:
    7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/Macros.lua

Modified: 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/Macros.lua
URL: 
http://svn.slimdevices.com/7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/Macros.lua?rev=2327&root=Jive&r1=2326&r2=2327&view=diff
==============================================================================
--- 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/Macros.lua (original)
+++ 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/Macros.lua Thu Apr 24 
02:18:15 2008
@@ -1,18 +1,13 @@
 return {
   auto=false,
-  autostart={ "nowplaying", "chooseplayer" },
+  autostart={ "playmode" },
   macros={
-    chooseplayer={
-      desc="Choose Player Macro",
-      file="ChoosePlayerMacro.lua",
-      name="Choose Player",
-      passed="Fri Apr 11 19:04:37 2008" 
-    },
-    nowplaying={
-      desc="Now Playing Macro",
-      failed="Fri Apr 11 19:04:07 2008",
-      file="NowPlayingMacro.lua",
-      name="Now Playing" 
+    chooseplayer={ desc="Choose Player Macro", file="ChoosePlayerMacro.lua", 
name="Choose Player" },
+    playmode={
+      desc="Playmode tests (stop/pause/play)",
+      failed="Thu Apr 24 10:15:50 2008",
+      file="PlaymodeMacro.lua",
+      name="Playmode" 
     } 
   } 
 }

Added: 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodeMacro.lua
URL: 
http://svn.slimdevices.com/7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodeMacro.lua?rev=2327&root=Jive&view=auto
==============================================================================
--- 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodeMacro.lua 
(added)
+++ 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodeMacro.lua Thu 
Apr 24 02:18:15 2008
@@ -1,0 +1,32 @@
+
+-- go home
+macroHome()
+
+-- key down until Now Playing
+while not macroIsMenuItem("Now Playing") do
+       macroEvent(100, EVENT_KEY_PRESS, KEY_DOWN)
+end
+
+-- key go into Now Playing
+macroEvent(100, EVENT_KEY_PRESS, KEY_GO)
+
+
+-- stop (hold pause), wait until after show briefly
+macroEvent(5000, EVENT_KEY_HOLD, KEY_PAUSE)
+if not macroScreenshot(1000, "PlaymodeStop") then
+       return macroFail("Playmode Stop")
+end
+
+-- play, wait until after show briefly
+macroEvent(5000, EVENT_KEY_PRESS, KEY_PLAY)
+if not macroScreenshot(1000, "PlaymodePlay") then
+       return macroFail("Playmode Play")
+end
+
+-- pause, wait until after show briefly
+macroEvent(5000, EVENT_KEY_PRESS, KEY_PAUSE)
+if not macroScreenshot(1000, "PlaymodePause") then
+       return macroFail("Playmode Pause")
+end
+
+macroPass("Playmode")

Added: 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodePause.bmp
URL: 
http://svn.slimdevices.com/7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodePause.bmp?rev=2327&root=Jive&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodePause.bmp
------------------------------------------------------------------------------
    svn:executable = *

Propchange: 
7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodePause.bmp
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodePlay.bmp
URL: 
http://svn.slimdevices.com/7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodePlay.bmp?rev=2327&root=Jive&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodePlay.bmp
------------------------------------------------------------------------------
    svn:executable = *

Propchange: 
7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodePlay.bmp
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodeStop.bmp
URL: 
http://svn.slimdevices.com/7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodeStop.bmp?rev=2327&root=Jive&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodeStop.bmp
------------------------------------------------------------------------------
    svn:executable = *

Propchange: 
7.1/trunk/squeezeplay/src/squeezeplay_jive/test/smoke/PlaymodeStop.bmp
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to