aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMNSAppleEventDescriptor+FoundationTest.m
diff options
context:
space:
mode:
Diffstat (limited to 'Foundation/GTMNSAppleEventDescriptor+FoundationTest.m')
-rw-r--r--Foundation/GTMNSAppleEventDescriptor+FoundationTest.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/Foundation/GTMNSAppleEventDescriptor+FoundationTest.m b/Foundation/GTMNSAppleEventDescriptor+FoundationTest.m
index 833fd5a..6df19ab 100644
--- a/Foundation/GTMNSAppleEventDescriptor+FoundationTest.m
+++ b/Foundation/GTMNSAppleEventDescriptor+FoundationTest.m
@@ -575,6 +575,13 @@
STAssertEquals([desc descriptorType], (DescType)typeKeyword, nil);
}
+- (void)testDescriptorWithDescriptor {
+ NSAppleEventDescriptor *desc
+ = [NSAppleEventDescriptor descriptorWithString:@"foo"];
+ NSAppleEventDescriptor *desc2 = [desc gtm_appleEventDescriptor];
+ STAssertEqualObjects(desc, desc2, nil);
+}
+
- (void)handleEvent:(NSAppleEventDescriptor*)event
withReply:(NSAppleEventDescriptor*)reply {
gotEvent_ = YES;