aboutsummaryrefslogtreecommitdiff
path: root/AppKit/GTMUILocalizerTest.m
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-09-02 20:30:38 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-09-02 20:30:38 +0000
commit4ee3b1359f5407ad4bb552bcc1c563970d355017 (patch)
tree7a32b511367746f60b003ad9cec7811dbec56d95 /AppKit/GTMUILocalizerTest.m
parenta8ff4e805f875b8d565df63ad1e9fd56e699b3e1 (diff)
[Author: thomasvl]
Add another window to the UILocalizer unittest that puts a bunch of items into boxes, splitters, and scroll views to make sure they are working. Support some NSBox attributes in AppKit+UnitTesting. Update the size to fit code to only special case regular push buttons and not other types of buttons. Update the expectations due to this change. Add a new unittest to test all button styles and sizes. Update how we decided to do vertical or horizontal layout on a width box because left aligning things is visual and doesn't actually align their frames, so instead we do a rect intersection instead. Added in the CompilerSDK on Mac OS builds to the paths searches. Update the comments on how paths are searched to be correct. R=dmaclach,stuartmorgan DELTA=2709 (2643 added, 8 deleted, 58 changed)
Diffstat (limited to 'AppKit/GTMUILocalizerTest.m')
-rw-r--r--AppKit/GTMUILocalizerTest.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/AppKit/GTMUILocalizerTest.m b/AppKit/GTMUILocalizerTest.m
index fb92b52..d0830ce 100644
--- a/AppKit/GTMUILocalizerTest.m
+++ b/AppKit/GTMUILocalizerTest.m
@@ -40,6 +40,11 @@
[localizer localizeObject:window recursively:YES];
GTMAssertObjectStateEqualToStateNamed(window,
@"GTMUILocalizerWindow2State", nil);
+ window = [controller anotherWindow];
+ STAssertNotNil(window, nil);
+ [localizer localizeObject:window recursively:YES];
+ GTMAssertObjectStateEqualToStateNamed(window,
+ @"GTMUILocalizerWindow3State", nil);
NSMenu *menu = [controller otherMenu];
STAssertNotNil(menu, nil);
[localizer localizeObject:menu recursively:YES];
@@ -79,6 +84,10 @@
return otherWindow_;
}
+- (NSWindow *)anotherWindow {
+ return anotherWindow_;
+}
+
- (NSMenu *)otherMenu {
return otherMenu_;
}