Permalink
Browse files

add the keyboard maestro test macro to the dist

  • Loading branch information...
1 parent 3552879 commit 27889d598ded1568c5de595f41ad2759972daa3d @2shortplanks committed Dec 11, 2012
Showing with 89 additions and 2 deletions.
  1. +1 −0 MANIFEST
  2. +7 −2 t/03macro.t
  3. +81 −0 t/testing.kmmacros
View
@@ -18,6 +18,7 @@ README
t/01basic.t
t/02vars.t
t/03macro.t
+t/testing.kmmacros
xt/001pod.t
xt/002podcoverage.t
xt/003perlcritic.t
View
@@ -3,8 +3,13 @@
use strict;
use warnings;
-# there's no auotmated way to install macros as far as I know
-# so for the moment we can only run this test on my own machine
+# there's no auotmated way to uninstall macros as far as I know
+# so for the moment we can only run this test on my own machine.
+#
+# If you want to run this test properly you'll need to install
+# testing.kmmacros (which is distributed in the directy containing
+# this test) by double clicking it, then set the THIS_IS_MARKF_YOU_BETCA
+# env varible before executing this test.
use Test::More;
BEGIN {
unless ($ENV{THIS_IS_MARKF_YOU_BETCHA}) {
View
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+
+<!--
+ Hello!
+
+ This is a keyboard maestro test macro that I have installed on
+ my machine. If you want to run 03macro.t properly you need to
+ first double click this file to install this macro, then you
+ need to set the enviroment var THIS_IS_MARKF_YOU_BETCHA before
+ you run the test.
+
+ Kind reguards.
+
+ Mark.
+-->
+
+<array>
+ <dict>
+ <key>Activate</key>
+ <string>Normal</string>
+ <key>IsActive</key>
+ <true/>
+ <key>Macros</key>
+ <array>
+ <dict>
+ <key>Actions</key>
+ <array>
+ <dict>
+ <key>IsActive</key>
+ <true/>
+ <key>IsDisclosed</key>
+ <true/>
+ <key>JustDisplay</key>
+ <false/>
+ <key>MacroActionType</key>
+ <string>SetClipboardToText</string>
+ <key>Text</key>
+ <string>%Variable%mackeyboardmaestrotestsuite%</string>
+ </dict>
+ <dict>
+ <key>Action</key>
+ <string>Calculate</string>
+ <key>IsActive</key>
+ <true/>
+ <key>IsDisclosed</key>
+ <true/>
+ <key>MacroActionType</key>
+ <string>FilterClipboard</string>
+ </dict>
+ <dict>
+ <key>IsActive</key>
+ <true/>
+ <key>IsDisclosed</key>
+ <true/>
+ <key>MacroActionType</key>
+ <string>SetVariableToText</string>
+ <key>Text</key>
+ <string>%CurrentClipboard%</string>
+ <key>Variable</key>
+ <string>mackeyboardmaestrotestsuite</string>
+ </dict>
+ </array>
+ <key>IsActive</key>
+ <true/>
+ <key>Name</key>
+ <string>Mac::KeyboardMaestro test</string>
+ <key>Triggers</key>
+ <array/>
+ <key>UID</key>
+ <string>44733D7D-94BC-433F-AD93-E169BBC6FAFB</string>
+ </dict>
+ </array>
+ <key>Name</key>
+ <string>Mac::KeyboardM</string>
+ <key>UID</key>
+ <string>B9E95F4A-8F95-463F-916D-F82119DB81B2</string>
+ </dict>
+</array>
+</plist>

0 comments on commit 27889d5

Please sign in to comment.