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) --- .../GTMUILocalizerAndLayoutTweakerTest1-0.tiff | Bin 29342 -> 29350 bytes .../GTMUILocalizerAndLayoutTweakerTest1-1.tiff | Bin 25084 -> 25452 bytes .../GTMUILocalizerAndLayoutTweakerTest1-2.tiff | Bin 25580 -> 25574 bytes ...ILocalizerAndLayoutTweakerTest4-0.10_4_SDK.tiff | Bin 0 -> 29136 bytes .../GTMUILocalizerAndLayoutTweakerTest4-0.tiff | Bin 0 -> 30114 bytes ...ILocalizerAndLayoutTweakerTest4-1.10_4_SDK.tiff | Bin 0 -> 39946 bytes .../GTMUILocalizerAndLayoutTweakerTest4-1.tiff | Bin 0 -> 40706 bytes ...ILocalizerAndLayoutTweakerTest4-2.10_4_SDK.tiff | Bin 0 -> 27478 bytes .../GTMUILocalizerAndLayoutTweakerTest4-2.tiff | Bin 0 -> 28468 bytes .../TestData/GTMUILocalizerWindow3State.gtmUTState | 304 +++++++++++++++++++++ .../Resources/English.lproj/Localizable.strings | 1 + 11 files changed, 305 insertions(+) create mode 100644 AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-0.10_4_SDK.tiff create mode 100644 AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-0.tiff create mode 100644 AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-1.10_4_SDK.tiff create mode 100644 AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-1.tiff create mode 100644 AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-2.10_4_SDK.tiff create mode 100644 AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-2.tiff create mode 100644 AppKit/TestData/GTMUILocalizerWindow3State.gtmUTState (limited to 'AppKit/TestData') diff --git a/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-0.tiff b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-0.tiff index a0108e2..86814a3 100644 Binary files a/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-0.tiff and b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-0.tiff differ diff --git a/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-1.tiff b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-1.tiff index a9e1604..31a44ba 100644 Binary files a/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-1.tiff and b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-1.tiff differ diff --git a/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-2.tiff b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-2.tiff index 9e9adf7..b4c2375 100644 Binary files a/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-2.tiff and b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest1-2.tiff differ diff --git a/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-0.10_4_SDK.tiff b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-0.10_4_SDK.tiff new file mode 100644 index 0000000..62ff8a1 Binary files /dev/null and b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-0.10_4_SDK.tiff differ diff --git a/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-0.tiff b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-0.tiff new file mode 100644 index 0000000..252ee9a Binary files /dev/null and b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-0.tiff differ diff --git a/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-1.10_4_SDK.tiff b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-1.10_4_SDK.tiff new file mode 100644 index 0000000..17748e5 Binary files /dev/null and b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-1.10_4_SDK.tiff differ diff --git a/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-1.tiff b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-1.tiff new file mode 100644 index 0000000..2c1ddc7 Binary files /dev/null and b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-1.tiff differ diff --git a/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-2.10_4_SDK.tiff b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-2.10_4_SDK.tiff new file mode 100644 index 0000000..294237a Binary files /dev/null and b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-2.10_4_SDK.tiff differ diff --git a/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-2.tiff b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-2.tiff new file mode 100644 index 0000000..b63ef59 Binary files /dev/null and b/AppKit/TestData/GTMUILocalizerAndLayoutTweakerTest4-2.tiff differ diff --git a/AppKit/TestData/GTMUILocalizerWindow3State.gtmUTState b/AppKit/TestData/GTMUILocalizerWindow3State.gtmUTState new file mode 100644 index 0000000..ed88b68 --- /dev/null +++ b/AppKit/TestData/GTMUILocalizerWindow3State.gtmUTState @@ -0,0 +1,304 @@ + + + + + $GTMArchive + GTMUnitTestingArchive + $GTMVersion + 1 + WindowContent + + ViewIsHidden + + ViewSubView 0 + + BoxBorderType + 1 + BoxTitle + Localized Box + BoxTitlePosition + 2 + BoxType + 0 + ViewIsHidden + + ViewSubView 0 + + ViewIsHidden + + ViewSubView 0 + + ButtonAlternateTitle + + ControlIsEnabled + + ControlSelectedCell + + CellState + 0 + CellTag + 0 + CellTitle + Localized Button + CellValue + 0 + + ControlTag + 0 + ControlType + NSButton + ControlValue + 0 + ViewIsHidden + + + ViewSubView 1 + + ButtonAlternateTitle + + ControlIsEnabled + + ControlSelectedCell + + CellState + 0 + CellTag + 0 + CellTitle + ^Button2 + CellValue + 0 + + ControlTag + 0 + ControlType + NSButton + ControlValue + 0 + ViewIsHidden + + + + + ViewSubView 1 + + ViewIsHidden + + ViewSubView 0 + + ViewIsHidden + + ViewSubView 0 + + ViewIsHidden + + ViewSubView 0 + + ControlIsEnabled + + ControlSelectedCell + + CellState + 0 + CellTag + 0 + CellTitle + Localized Label + CellValue + Localized Label + + ControlTag + 0 + ControlType + NSTextField + ControlValue + Localized Label + ViewIsHidden + + + ViewSubView 1 + + ControlIsEnabled + + ControlSelectedCell + + CellState + 1 + CellTag + 1 + CellTitle + Localized Radio 1 + CellValue + 1 + + ControlTag + 0 + ControlType + NSMatrix + ControlValue + 1 + MatrixAllowEmptySelection + + MatrixAutosizesCells + + MatrixCell 0 + + CellState + 1 + CellTag + 1 + CellTitle + Localized Radio 1 + CellValue + 1 + + MatrixCell 1 + + CellState + 0 + CellTag + 0 + CellTitle + Localized Radio 2 + CellValue + 0 + + MatrixCellPrototype + + CellState + 0 + CellTag + 0 + CellTitle + Radio + CellValue + 0 + + MatrixColumnCount + 1 + MatrixIntercellSpacing + {4, 2} + MatrixMode + 0 + MatrixRowCount + 2 + MatrixSelectionByRect + + ViewIsHidden + + + ViewSubView 2 + + ControlIsEnabled + + ControlSelectedCell + + CellState + 0 + CellTag + 0 + CellTitle + ^Label2 + CellValue + ^Label2 + + ControlTag + 0 + ControlType + NSTextField + ControlValue + ^Label2 + ViewIsHidden + + + + + ViewSubView 1 + + ControlIsEnabled + + ControlTag + 0 + ControlType + NSScroller + ViewIsHidden + + + ViewSubView 2 + + ControlIsEnabled + + ControlTag + 0 + ControlType + NSScroller + ViewIsHidden + + + + ViewSubView 2 + + ViewIsHidden + + ViewSubView 0 + + ButtonAlternateTitle + + ControlIsEnabled + + ControlSelectedCell + + CellState + 1 + CellTag + 0 + CellTitle + Localized Checkbox 1 + CellValue + 1 + + ControlTag + 0 + ControlType + NSButton + ControlValue + 1 + ViewIsHidden + + + ViewSubView 1 + + ButtonAlternateTitle + + ControlIsEnabled + + ControlSelectedCell + + CellState + 1 + CellTag + 0 + CellTitle + Localized Checkbox 2 + CellValue + 1 + + ControlTag + 0 + ControlType + NSButton + ControlValue + 1 + ViewIsHidden + + + + + WindowIsMain + + WindowIsVisible + + WindowTitle + Localized Window + + diff --git a/AppKit/TestData/Resources/English.lproj/Localizable.strings b/AppKit/TestData/Resources/English.lproj/Localizable.strings index 4e6fabe..8228d3f 100644 --- a/AppKit/TestData/Resources/English.lproj/Localizable.strings +++ b/AppKit/TestData/Resources/English.lproj/Localizable.strings @@ -34,3 +34,4 @@ "Checkbox 2" = "Localized Checkbox 2"; "Radio 1" = "Localized Radio 1"; "Radio 2" = "Localized Radio 2"; +"Box" = "Localized Box"; -- cgit v1.2.3