Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTMAssertObjectImageEqualToImageNamed asserts always on UIToolbar #62

Closed
GoogleCodeExporter opened this issue Apr 21, 2015 · 0 comments
Closed

Comments

@GoogleCodeExporter
Copy link

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants