aboutsummaryrefslogtreecommitdiff
path: root/AppKit
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-09-08 17:15:31 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-09-08 17:15:31 +0000
commitdb82cd9ae80c2428fc2cf93b46c21b6360b37f0b (patch)
treea7b05ff2f59f6ab0bfd7f83849139add53044719 /AppKit
parentbe889d78f77920dd99b6b08d7f4c0200b5ef8371 (diff)
[Author: dmaclach]
Fix up test so that it doesn't run on Tiger. R=thomasvl,alcor DELTA=3 (3 added, 0 deleted, 0 changed)
Diffstat (limited to 'AppKit')
-rw-r--r--AppKit/GTMNSImage+SearchCacheTest.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/AppKit/GTMNSImage+SearchCacheTest.m b/AppKit/GTMNSImage+SearchCacheTest.m
index 51c2693..f18b12a 100644
--- a/AppKit/GTMNSImage+SearchCacheTest.m
+++ b/AppKit/GTMNSImage+SearchCacheTest.m
@@ -35,9 +35,12 @@
testImage = [NSImage gtm_imageNamed:@"com.apple.Xcode"];
STAssertNotNil(testImage, nil);
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
+ // The stencil images only exist on 10.5+
testImage = [NSImage gtm_imageNamed:NSImageNameBonjour];
STAssertNotNil(testImage, nil);
-
+#endif // MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
+
testImage = [NSImage gtm_imageNamed:(NSString *)kUTTypeFolder];
STAssertNotNil(testImage, nil);