aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-09-09 21:00:41 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-09-09 21:00:41 +0000
commit42aa1c06dd802bfadc0f77f6b5a05f7f6fa2c067 (patch)
tree98d92b27ba7338765a3de92679e68f32b84090f2 /UnitTesting
parentef53b5beb4295064e9a8568362052f09d18906dc (diff)
[Author: thomasvl]
Support the toolbar item's view in state logging. Add table columns to ui localizer (tests will come in a following cl). Add a toolbar item that doesn't localize to help catch bugs in the future like we had on first impl. Add a tooltip to the toolbar item in the unittest for ui localizer. Add a note about the limits to ui localizer and toolbars due to the NSToolbar api's limits. R=dmaclach DELTA=746 (90 added, 599 deleted, 57 changed)
Diffstat (limited to 'UnitTesting')
-rw-r--r--UnitTesting/GTMAppKit+UnitTesting.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/UnitTesting/GTMAppKit+UnitTesting.m b/UnitTesting/GTMAppKit+UnitTesting.m
index 5263fa1..ad883e4 100644
--- a/UnitTesting/GTMAppKit+UnitTesting.m
+++ b/UnitTesting/GTMAppKit+UnitTesting.m
@@ -326,6 +326,10 @@ GTM_METHOD_CHECK(NSObject, gtm_unitTestEncodeState:);
[inCoder encodeObject:[self label] forKey:@"Label"];
[inCoder encodeObject:[self paletteLabel] forKey:@"PaletteLabel"];
[inCoder encodeObject:[self toolTip] forKey:@"ToolTip"];
+ NSView *view = [self view];
+ if (view) {
+ [inCoder encodeObject:view forKey:@"View"];
+ }
}
@end