diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-11-11 15:01:04 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-11-11 15:01:04 +0000 |
commit | db99fd344b9262d4b32d0a73107cf33dfb47ed50 (patch) | |
tree | e0b2e82437a46b797775c56680b4ab6d4854c670 /UnitTesting | |
parent | ee96eba5fd4929f251855009121803b70a48f2d2 (diff) |
[Author: thomasvl]
More work towards passing on 10.6:
- Remove the build constants as we don't need them.
- Update some bindings tests that were checking for wwdc seed or lower, to just be 10.6 or less, we'll update again with 10.7 (since i doubt they will change during an os release).
- Move some images from 10.6.0 to 10.6.
- Update the 10.6 images to current values, this appears to be the gamma change that happening in 10.6 (late in the cycle).
- Add 10.6 image for the view drawing.
R=dmaclach
DELTA=44 (14 added, 13 deleted, 17 changed)
Diffstat (limited to 'UnitTesting')
-rw-r--r-- | UnitTesting/GTMNSObject+BindingUnitTesting.m | 26 | ||||
-rw-r--r-- | UnitTesting/TestData/GTMUnitTestingImage.10.6.0.tiff | bin | 21014 -> 0 bytes | |||
-rw-r--r-- | UnitTesting/TestData/GTMUnitTestingImage.10.6.tiff | bin | 0 -> 20174 bytes | |||
-rw-r--r-- | UnitTesting/TestData/GTMUnitTestingWindow.10.6.0.tiff | bin | 21380 -> 0 bytes | |||
-rw-r--r-- | UnitTesting/TestData/GTMUnitTestingWindow.10.6.tiff | bin | 0 -> 21622 bytes |
5 files changed, 17 insertions, 9 deletions
diff --git a/UnitTesting/GTMNSObject+BindingUnitTesting.m b/UnitTesting/GTMNSObject+BindingUnitTesting.m index a235bc0..4718854 100644 --- a/UnitTesting/GTMNSObject+BindingUnitTesting.m +++ b/UnitTesting/GTMNSObject+BindingUnitTesting.m @@ -376,8 +376,8 @@ BOOL GTMDoExposedBindingsFunctionCorrectly(NSObject *object, // class for NSValueBinding [array addObject:NSValueBinding]; } - if ([GTMSystemVersion isBuildLessThanOrEqualTo:kGTMSystemBuild10_6_0_WWDC]) { - // Broken on SnowLeopard WWDC and below + if (major <= 10 && minor <= 6) { + // Broken on SnowLeopard and below // rdar://5849236 - NSScroller exposes binding for NSFontBinding [array addObject:NSFontBinding]; } @@ -402,7 +402,9 @@ BOOL GTMDoExposedBindingsFunctionCorrectly(NSObject *object, - (NSMutableArray *)gtm_unitTestExposedBindingsTestValues:(NSString*)binding { NSMutableArray *array = [super gtm_unitTestExposedBindingsTestValues:binding]; if ([binding isEqualToString:NSAlignmentBinding]) { - if ([GTMSystemVersion isBuildLessThanOrEqualTo:kGTMSystemBuild10_6_0_WWDC]) { + SInt32 major, minor, bugFix; + [GTMSystemVersion getMajor:&major minor:&minor bugFix:&bugFix]; + if (major <= 10 && minor <= 6) { // rdar://5851487 - If NSAlignmentBinding for a NSTextField is set to -1 // and then got it returns 7 NSNumber *textAlignment = [NSNumber numberWithInt:NSNaturalTextAlignment]; @@ -429,10 +431,10 @@ BOOL GTMDoExposedBindingsFunctionCorrectly(NSObject *object, NSMutableArray *array = [super gtm_unitTestExposedBindingsToIgnore]; SInt32 major, minor, bugFix; [GTMSystemVersion getMajor:&major minor:&minor bugFix:&bugFix]; - if (major <= 10 && minor <= 5 && bugFix <= 8) { + if (major <= 10 && minor <= 6) { // rdar://5851491 - Setting NSAlignmentBinding of search field to // NSCenterTextAlignment broken - // Broken on 10.5.7 and below. + // Broken on 10.6 and below. [array addObject:NSAlignmentBinding]; } // Not KVC Compliant @@ -483,9 +485,11 @@ BOOL GTMDoExposedBindingsFunctionCorrectly(NSObject *object, - (NSMutableArray*)gtm_unitTestExposedBindingsToIgnore { NSMutableArray *array = [super gtm_unitTestExposedBindingsToIgnore]; - if ([GTMSystemVersion isBuildLessThanOrEqualTo:kGTMSystemBuild10_6_0_WWDC]) { + SInt32 major, minor, bugFix; + [GTMSystemVersion getMajor:&major minor:&minor bugFix:&bugFix]; + if (major <= 10 && minor <= 6) { // rdar://6288332 - NSTableView does not respond to NSFontBinding - // Broken on 10.5, and SnowLeopard WWDC + // Broken on 10.5 and SnowLeopard [array addObject:NSFontBinding]; } // Not KVC Compliant @@ -505,7 +509,9 @@ BOOL GTMDoExposedBindingsFunctionCorrectly(NSObject *object, - (NSMutableArray*)gtm_unitTestExposedBindingsToIgnore { NSMutableArray *array = [super gtm_unitTestExposedBindingsToIgnore]; - if ([GTMSystemVersion isBuildLessThanOrEqualTo:kGTMSystemBuild10_6_0_WWDC]) { + SInt32 major, minor, bugFix; + [GTMSystemVersion getMajor:&major minor:&minor bugFix:&bugFix]; + if (major <= 10 && minor <= 6) { //rdar://5849335 - NSTextView only partially KVC compliant for key // NSAttributedStringBinding [array addObject:NSAttributedStringBinding]; @@ -526,7 +532,9 @@ BOOL GTMDoExposedBindingsFunctionCorrectly(NSObject *object, - (NSMutableArray*)gtm_unitTestExposedBindingsToIgnore { NSMutableArray *array = [super gtm_unitTestExposedBindingsToIgnore]; - if ([GTMSystemVersion isBuildLessThanOrEqualTo:kGTMSystemBuild10_6_0_WWDC]) { + SInt32 major, minor, bugFix; + [GTMSystemVersion getMajor:&major minor:&minor bugFix:&bugFix]; + if (major <= 10 && minor <= 6) { // rdar://5849248 - NSTabView exposes binding with no value class // for NSSelectedIdentifierBinding [array addObject:NSSelectedIdentifierBinding]; diff --git a/UnitTesting/TestData/GTMUnitTestingImage.10.6.0.tiff b/UnitTesting/TestData/GTMUnitTestingImage.10.6.0.tiff Binary files differdeleted file mode 100644 index 2bbdb9c..0000000 --- a/UnitTesting/TestData/GTMUnitTestingImage.10.6.0.tiff +++ /dev/null diff --git a/UnitTesting/TestData/GTMUnitTestingImage.10.6.tiff b/UnitTesting/TestData/GTMUnitTestingImage.10.6.tiff Binary files differnew file mode 100644 index 0000000..ec06a53 --- /dev/null +++ b/UnitTesting/TestData/GTMUnitTestingImage.10.6.tiff diff --git a/UnitTesting/TestData/GTMUnitTestingWindow.10.6.0.tiff b/UnitTesting/TestData/GTMUnitTestingWindow.10.6.0.tiff Binary files differdeleted file mode 100644 index 60c362a..0000000 --- a/UnitTesting/TestData/GTMUnitTestingWindow.10.6.0.tiff +++ /dev/null diff --git a/UnitTesting/TestData/GTMUnitTestingWindow.10.6.tiff b/UnitTesting/TestData/GTMUnitTestingWindow.10.6.tiff Binary files differnew file mode 100644 index 0000000..6a88f84 --- /dev/null +++ b/UnitTesting/TestData/GTMUnitTestingWindow.10.6.tiff |