spiegel-keyman/mac/Keyman4MacIM/KeymanTests/LegacyTestClient.h
Tom Bogle 26ad29a744 [Mac] Added lots of IM tests (legacy, no-context, Apple-compliant [WIP])
Fixes #1005 (at least in part). Still one failing test.
2018-06-25 17:15:00 -04:00

24 lines
682 B
Objective-C

//
// LegacyTestClient.h
// Keyman4MacIM
//
// Created by tom on 6/22/18.
// Copyright © 2018 SIL International. All rights reserved.
//
#ifndef LegacyTestClient_h
#define LegacyTestClient_h
#import <Foundation/Foundation.h>
#import "KMInputMethodEventHandler.h"
@interface LegacyTestClient : NSObject
- (instancetype)init;
- (instancetype)initWithString:(NSString *)contents;
- (void)handleEventIfNotHandledBy: (KMInputMethodEventHandler *) im event:(NSEvent *)event;
- (NSString *) getResult;
- (void)insertTextProtected:(id)string replacementRange:(NSRange)replacementRange;
- (NSString *)substringFromRangeProtected:(NSRange)range;
@end
#endif /* LegacyTestClient_h */