aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMNSAppleScript+HandlerTest.m
diff options
context:
space:
mode:
authorGravatar thomasvl@gmail.com <thomasvl@gmail.com@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2008-11-04 20:10:52 +0000
committerGravatar thomasvl@gmail.com <thomasvl@gmail.com@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2008-11-04 20:10:52 +0000
commit8ddb49cefd01b220ad5e1d2f0060b2a0ad54efdb (patch)
treeb1cb7590d31d8086eb3929028303e1d16324e115 /Foundation/GTMNSAppleScript+HandlerTest.m
parent750b28c89618586a0450cacb86e28cd709374c9d (diff)
- Added has ability to check if a script has an open handler to GTMNSAppleScript+Handler.
- GTMStackTrace support for building a trace from the call stack in an NSException (for 10.5+ and iPhone). - Added GTMUIFont+LineHeight. - Cleaned up some OS version checks to use constants instead of numbers directly.
Diffstat (limited to 'Foundation/GTMNSAppleScript+HandlerTest.m')
-rw-r--r--Foundation/GTMNSAppleScript+HandlerTest.m10
1 files changed, 9 insertions, 1 deletions
diff --git a/Foundation/GTMNSAppleScript+HandlerTest.m b/Foundation/GTMNSAppleScript+HandlerTest.m
index 102332e..02f62e0 100644
--- a/Foundation/GTMNSAppleScript+HandlerTest.m
+++ b/Foundation/GTMNSAppleScript+HandlerTest.m
@@ -278,7 +278,7 @@
- (void)testHandlers {
NSSet *handlers = [script_ gtm_handlers];
NSSet *expected = [NSSet setWithObjects:
- @"aevtodoc",
+ @"aevtpdoc",
@"test",
@"testreturnone",
@"testreturnparam",
@@ -475,6 +475,14 @@
STAssertNotNil(handlers, @"Couldn't get handlers");
}
+- (void)testOpenHandler {
+ STAssertFalse([script_ gtm_hasOpenDocumentsHandler], nil);
+ id script = [script_ gtm_valueForProperty:@"testscript"];
+ STAssertNotNil(script, nil);
+ STAssertTrue([script gtm_hasOpenDocumentsHandler], nil);
+}
+
+
@protocol ScriptInterface
- (id)test;
- (id)testReturnParam:(id)param;