From 4ee3b1359f5407ad4bb552bcc1c563970d355017 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Wed, 2 Sep 2009 20:30:38 +0000 Subject: [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) --- AppKit/GTMUILocalizerTest.m | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'AppKit/GTMUILocalizerTest.m') 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_; } -- cgit v1.2.3