diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-09-07 21:15:28 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-09-07 21:15:28 +0000 |
commit | 0bcba4844f6ceb73e9e83f15126de3f598ee8a76 (patch) | |
tree | ec239ecb8d742f82a7122bdd32aa51f4b0e5d9a1 /AppKit/GTMUILocalizerTest.m | |
parent | aa35fde684e364a9e118c1d737336abdff25350a (diff) |
[Author: alcor]
Fix toolbar localizer test
R=thomasvl
DELTA=2780 (2767 added, 6 deleted, 7 changed)
Diffstat (limited to 'AppKit/GTMUILocalizerTest.m')
-rw-r--r-- | AppKit/GTMUILocalizerTest.m | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/AppKit/GTMUILocalizerTest.m b/AppKit/GTMUILocalizerTest.m index 6bea385..7ef4cd8 100644 --- a/AppKit/GTMUILocalizerTest.m +++ b/AppKit/GTMUILocalizerTest.m @@ -22,8 +22,6 @@ #import "GTMNSObject+UnitTesting.h" #import "GTMUILocalizer.h" -#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 - @interface GTMUILocalizerTest : GTMTestCase @end @@ -33,8 +31,14 @@ = [[GTMUILocalizerTestWindowController alloc] init]; NSWindow *window = [controller window]; STAssertNotNil(window, nil); + +#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 GTMAssertObjectStateEqualToStateNamed(window, @"GTMUILocalizerWindow1State", nil); +#else + GTMAssertObjectStateEqualToStateNamed(window, + @"GTMUILocalizerWindow1State.10.4", nil); +#endif NSBundle *bundle = [NSBundle bundleForClass:[self class]]; GTMUILocalizer *localizer = [[GTMUILocalizer alloc] initWithBundle:bundle]; @@ -57,6 +61,7 @@ [controller release]; } +#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 - (void)testViewLocalization { GTMUILocalizerTestViewController *controller = [[GTMUILocalizerTestViewController alloc] init]; @@ -79,7 +84,11 @@ @implementation GTMUILocalizerTestWindowController - (id)init { +#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 return [self initWithWindowNibName:@"GTMUILocalizerTestWindow"]; +#else + return [self initWithWindowNibName:@"GTMUILocalizerTestWindow10.4"]; +#endif // MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 } - (NSWindow *)otherWindow { |