XiaoXiangWang / google-toolbox-for-mac

Automatically exported from code.google.com/p/google-toolbox-for-mac
Apache License 2.0
0 stars 0 forks source link

GTMAssertObjectImageEqualToImageNamed asserts always on UIToolbar #62

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
GTM always asserts while testing UIToolbar using 
GTMAssertObjectImageEqualToImageNamed() macro if toolbar style is 
UIBarStyleBlackTranslucent and it contains a button with style 
UIBarButtonItemStyleBordered.

Please observe images produced: failed and diff in attached archive.

Issue doesn't reproduced if to change   
CGImageRef imageRep = [self gtm_unitTestImage];
to
UIImage *image = [UIImage imageWithData:[self gtm_imageRepresentation]];
CGImageRef imageRep = image.CGImage;
in 
- (BOOL)gtm_compareWithImageAt:(NSString*)path diffImage:(CGImageRef*)diff

It would help us a lot if you could resolve the issue inside GTM...

Dev configuration: XCode 3.2.4, Mac OS X 10.6.4, iPhone SDK 4.1

Original issue reported on code.google.com by sergey.maysak on 3 Nov 2010 at 12:39

Attachments: