aboutsummaryrefslogtreecommitdiffstats
path: root/Framework/MASHotKeyTests.m
diff options
context:
space:
mode:
authorTomáš Znamenáček2015-01-14 12:54:49 +0100
committerTomáš Znamenáček2015-01-14 12:54:49 +0100
commit27eace979e202116e44db3dc6acc9a8427ecaa0a (patch)
tree8c438cf3ecdc17c05b6bbb8124d5d15b55ffd2cb /Framework/MASHotKeyTests.m
parent44542896d447dccb0579f319935c44c04a1ca62e (diff)
downloadMASShortcut-27eace979e202116e44db3dc6acc9a8427ecaa0a.tar.bz2
Added test for hotkeys and shortcut monitor.
Diffstat (limited to 'Framework/MASHotKeyTests.m')
-rw-r--r--Framework/MASHotKeyTests.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/Framework/MASHotKeyTests.m b/Framework/MASHotKeyTests.m
new file mode 100644
index 0000000..65361ab
--- /dev/null
+++ b/Framework/MASHotKeyTests.m
@@ -0,0 +1,15 @@
+#import "MASHotKey.h"
+
+@interface MASHotKeyTests : XCTestCase
+@end
+
+@implementation MASHotKeyTests
+
+- (void) testBasicFunctionality
+{
+ MASHotKey *hotKey = [MASHotKey registeredHotKeyWithShortcut:
+ [MASShortcut shortcutWithKeyCode:kVK_ANSI_H modifierFlags:NSCommandKeyMask|NSAlternateKeyMask]];
+ XCTAssertNotNil(hotKey, @"Register a simple Cmd-Alt-H hotkey.");
+}
+
+@end