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/GTMUILocalizerAndLayoutTweakerTest4.xib | 1504 ++++++++++++++++++++++++ 1 file changed, 1504 insertions(+) create mode 100644 AppKit/GTMUILocalizerAndLayoutTweakerTest4.xib (limited to 'AppKit/GTMUILocalizerAndLayoutTweakerTest4.xib') diff --git a/AppKit/GTMUILocalizerAndLayoutTweakerTest4.xib b/AppKit/GTMUILocalizerAndLayoutTweakerTest4.xib new file mode 100644 index 0000000..f4dc23a --- /dev/null +++ b/AppKit/GTMUILocalizerAndLayoutTweakerTest4.xib @@ -0,0 +1,1504 @@ + + + + 1050 + 9L30 + 677 + 949.54 + 353.00 + + YES + + + + YES + com.apple.InterfaceBuilderKit + com.apple.InterfaceBuilder.CocoaPlugin + + + YES + + YES + + + YES + + + + YES + + GTMUILocalizerAndLayoutTweakerTestWindowController + + + FirstResponder + + + NSApplication + + + 15 + 2 + {{71, 158}, {734, 294}} + 536870912 + Window + NSWindow + + {3.40282e+38, 3.40282e+38} + + + 256 + + YES + + + 268 + + YES + + + 268 + {{18, 39}, {96, 18}} + + YES + + -2080244224 + 0 + W:4:12 + + LucidaGrande + 1.300000e+01 + 1044 + + + 1211912703 + 130 + + NSImage + NSSwitch + + + NSSwitch + + + + 200 + 25 + + + + + 268 + {{20, 146}, {96, 19}} + + YES + + -2080244224 + 134217728 + W:4:12 + + LucidaGrande + 1.200000e+01 + 16 + + + -2038152961 + 164 + + + 400 + 75 + + + + + 268 + {{20, 121}, {96, 19}} + + YES + + -2080244224 + 134217728 + W:4:12 + + LucidaGrande-Bold + 1.200000e+01 + 16 + + + -1232846593 + 173 + + + 400 + 75 + + + + + 268 + {{20, 62}, {96, 25}} + + YES + + 67239424 + 134217728 + W:4:12 + + + -2038152961 + 163 + + + 400 + 75 + + + + + 268 + {{18, 18}, {96, 18}} + + YES + + -2080244224 + 0 + W:4:12 + + + 1211912703 + 130 + + NSImage + NSRadioButton + + + NSRadioButton + + + + 200 + 25 + + + + + 268 + {{19, 89}, {96, 27}} + + YES + + -2080244224 + 134217728 + W:4:12 + + + -2033434369 + 160 + + + 400 + 75 + + + + + 268 + {{20, 172}, {96, 23}} + + YES + + -2080244224 + 134217728 + W:4:12 + + + -2033434369 + 162 + + + 400 + 75 + + + + + 268 + {{14, 196}, {96, 32}} + + YES + + 67239424 + 134217728 + W:4:12 + + + -2038284033 + 129 + + + 200 + 25 + + + + {{0, 50}, {136, 244}} + + GTMWidthBasedTweaker + + + + 268 + + YES + + + 268 + {{20, 62}, {96, 25}} + + YES + + -2080244224 + 134348800 + W:4:12 + + LucidaGrande + 1.100000e+01 + 3100 + + + -2038152961 + 163 + + + 400 + 75 + + + + + 268 + {{15, 200}, {96, 28}} + + YES + + 67239424 + 134348800 + W:4:12 + + + -2038284033 + 129 + + + 200 + 25 + + + + + 268 + {{20, 98}, {96, 18}} + + YES + + -2080244224 + 134348800 + W:4:12 + + + -2033434369 + 160 + + + 400 + 75 + + + + + 268 + {{20, 123}, {96, 17}} + + YES + + -2080244224 + 134348800 + W:4:12 + + + -1232846593 + 173 + + + 400 + 75 + + + + + 268 + {{17, 39}, {96, 18}} + + YES + + -2080244224 + 131072 + W:4:12 + + + 1211912703 + 130 + + + + + 200 + 25 + + + + + 268 + {{20, 148}, {96, 17}} + + YES + + -2080244224 + 134348800 + W:4:12 + + + -2038152961 + 164 + + + 400 + 75 + + + + + 268 + {{20, 172}, {96, 23}} + + YES + + -2080244224 + 134348800 + W:4:12 + + + -2033434369 + 162 + + + 400 + 75 + + + + + 268 + {{18, 18}, {96, 18}} + + YES + + -2080244224 + 131072 + W:4:12 + + + 1211912703 + 130 + + + + + 200 + 25 + + + + {{242, 50}, {137, 244}} + + GTMWidthBasedTweaker + + + + 268 + + YES + + + 268 + {{20, 170}, {96, 23}} + + YES + + -2080244224 + 134479872 + W:4:12 + + LucidaGrande + 9.000000e+00 + 3614 + + + -2033434369 + 162 + + + 400 + 75 + + + + + 268 + {{20, 121}, {96, 17}} + + YES + + -2080244224 + 134479872 + W:4:12 + + + -1232846593 + 173 + + + 400 + 75 + + + + + 268 + {{16, 37}, {96, 18}} + + YES + + -2080244224 + 262144 + W:4:12 + + + 1211912703 + 130 + + + + + 200 + 25 + + + + + 268 + {{20, 60}, {96, 25}} + + YES + + -2080244224 + 134479872 + W:4:12 + + + -2038152961 + 163 + + + 400 + 75 + + + + + 268 + {{19, 210}, {96, 16}} + + YES + + 67239424 + 134479872 + W:4:12 + + + -2038284033 + 129 + + + 200 + 25 + + + + + 268 + {{20, 146}, {96, 17}} + + YES + + -2080244224 + 134479872 + W:4:12 + + + -2038152961 + 164 + + + 400 + 75 + + + + + 268 + {{19, 96}, {96, 18}} + + YES + + -2080244224 + 134479872 + W:4:12 + + + -2033434369 + 160 + + + 400 + 75 + + + + + 268 + {{16, 16}, {96, 18}} + + YES + + -2080244224 + 262144 + W:4:12 + + + 1211912703 + 130 + + + + + 200 + 25 + + + + {{475, 48}, {141, 246}} + + GTMWidthBasedTweaker + + + {734, 294} + + + {{0, 0}, {1920, 1178}} + {3.40282e+38, 3.40282e+38} + + + GTMUILocalizerAndLayoutTweaker + + + GTMUILocalizerAndLayoutTweakerTestLocalizer + + + + 268 + {154, 17} + YES + + -2080244224 + 134348800 + Recessed Button + + + -1232846593 + 173 + + + 400 + 75 + + + + + 268 + {154, 17} + YES + + -2080244224 + 134348800 + Recessed Button + + + -1232846593 + 173 + + + 400 + 75 + + + + + + YES + + + localizer_ + + + + 118 + + + + window + + + + 119 + + + + uiObject_ + + + + 193 + + + + + YES + + 0 + + YES + + + + + + -2 + + + RmlsZSdzIE93bmVyA + + + -1 + + + First Responder + + + -3 + + + Application + + + 1 + + + YES + + + + + + 2 + + + YES + + + + + + + + 35 + + + + + 117 + + + + + 188 + + + YES + + + + + + + + + + + + + 176 + + + YES + + + + + + 177 + + + + + 124 + + + YES + + + + + + 125 + + + + + 128 + + + YES + + + + + + 129 + + + + + 136 + + + YES + + + + + + 137 + + + + + 182 + + + YES + + + + + + 187 + + + + + 132 + + + YES + + + + + + 133 + + + + + 120 + + + YES + + + + + + 121 + + + + + 189 + + + YES + + + + + + + + + + + + + 157 + + + YES + + + + + + 158 + + + + + 152 + + + YES + + + + + + 163 + + + + + 156 + + + YES + + + + + + 159 + + + + + 155 + + + YES + + + + + + 160 + + + + + 178 + + + YES + + + + + + 179 + + + + + 154 + + + YES + + + + + + 161 + + + + + 153 + + + YES + + + + + + 162 + + + + + 183 + + + YES + + + + + + 186 + + + + + 190 + + + YES + + + + + + + + + + + + + 165 + + + YES + + + + + + 174 + + + + + 167 + + + YES + + + + + + 172 + + + + + 180 + + + YES + + + + + + 181 + + + + + 169 + + + YES + + + + + + 170 + + + + + 164 + + + YES + + + + + + 175 + + + + + 166 + + + YES + + + + + + 173 + + + + + 168 + + + YES + + + + + + 171 + + + + + 184 + + + YES + + + + + + 185 + + + + + 191 + + + YES + + + + + + 192 + + + + + 210 + + + YES + + + + + + 211 + + + + + 212 + + + YES + + + + + + 213 + + + + + + + YES + + YES + -1.IBPluginDependency + -2.IBPluginDependency + -3.IBPluginDependency + 1.IBEditorWindowLastContentRect + 1.IBPluginDependency + 1.IBViewEditorWindowController.showingBoundsRectangles + 1.IBWindowTemplateEditedContentRect + 1.NSWindowTemplate.visibleAtLaunch + 1.WindowOrigin + 1.editorWindowContentRectSynchronizationRect + 117.IBPluginDependency + 120.IBPluginDependency + 121.IBPluginDependency + 124.IBPluginDependency + 125.IBPluginDependency + 128.IBPluginDependency + 129.IBPluginDependency + 132.IBPluginDependency + 133.IBPluginDependency + 136.IBPluginDependency + 137.IBPluginDependency + 152.IBPluginDependency + 153.IBPluginDependency + 154.IBPluginDependency + 155.IBPluginDependency + 156.IBPluginDependency + 157.IBPluginDependency + 158.IBPluginDependency + 159.IBPluginDependency + 160.IBPluginDependency + 161.IBPluginDependency + 162.IBPluginDependency + 163.IBPluginDependency + 164.IBPluginDependency + 165.IBPluginDependency + 166.IBPluginDependency + 167.IBPluginDependency + 168.IBPluginDependency + 169.IBPluginDependency + 170.IBPluginDependency + 171.IBPluginDependency + 172.IBPluginDependency + 173.IBPluginDependency + 174.IBPluginDependency + 175.IBPluginDependency + 176.IBPluginDependency + 177.IBPluginDependency + 178.IBPluginDependency + 179.IBPluginDependency + 180.IBPluginDependency + 181.IBPluginDependency + 182.IBPluginDependency + 183.IBPluginDependency + 184.IBPluginDependency + 185.IBPluginDependency + 186.IBPluginDependency + 187.IBPluginDependency + 191.IBPluginDependency + 192.IBPluginDependency + 2.IBPluginDependency + 210.IBPluginDependency + 211.IBPluginDependency + 212.IBPluginDependency + 213.IBPluginDependency + 35.IBPluginDependency + + + YES + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilderKit + com.apple.InterfaceBuilderKit + {{636, 862}, {734, 294}} + com.apple.InterfaceBuilder.CocoaPlugin + + {{636, 862}, {734, 294}} + + {196, 240} + {{202, 428}, {480, 270}} + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + + + YES + + YES + + + YES + + + + + YES + + YES + + + YES + + + + 213 + + + + YES + + GTMUILocalizer + NSObject + + YES + + YES + otherObjectToLocalize_ + owner_ + yetAnotherObjectToLocalize_ + + + YES + id + id + id + + + + IBProjectSource + AppKit/GTMUILocalizer.h + + + + GTMUILocalizerAndLayoutTweaker + NSObject + + YES + + YES + localizerOwner_ + localizer_ + uiObject_ + + + YES + id + GTMUILocalizer + id + + + + IBProjectSource + AppKit/GTMUILocalizerAndLayoutTweaker.h + + + + GTMUILocalizerAndLayoutTweakerTestLocalizer + GTMUILocalizer + + IBProjectSource + AppKit/GTMUILocalizerAndLayoutTweakerTest.h + + + + GTMUILocalizerAndLayoutTweakerTestWindowController + NSWindowController + + + + GTMWidthBasedTweaker + NSView + + YES + + YES + viewToResize_ + viewToSlideAndResize_ + viewToSlide_ + + + YES + id + NSView + NSView + + + + + + NSApplication + + IBProjectSource + UnitTesting/GTMAppKit+UnitTesting.h + + + + NSButton + + + + NSCell + + + + NSControl + + + + NSMenu + + + + NSObject + + IBProjectSource + AppKit/GTMCarbonEvent.h + + + + NSObject + + IBProjectSource + AppKit/GTMDelegatingTableColumn.h + + + + NSObject + + IBProjectSource + Foundation/GTMHTTPServer.h + + + + NSObject + + IBProjectSource + Foundation/GTMNSAppleEventDescriptor+Foundation.h + + + + NSObject + + IBProjectSource + Foundation/GTMNSObject+KeyValueObserving.h + + + + NSObject + + IBProjectSource + UnitTesting/GTMCALayer+UnitTesting.h + + + + NSObject + + IBProjectSource + UnitTesting/GTMNSObject+BindingUnitTesting.h + + + + NSObject + + IBProjectSource + UnitTesting/GTMNSObject+UnitTesting.h + + + + NSView + + IBProjectSource + AppKit/GTMTheme.h + + + + NSView + + + + NSWindow + + + + NSWindow + + + + + 0 + ../GTM.xcodeproj + 3 + + -- cgit v1.2.3