jmpeek454 / 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 fails to write images on iOS device #69

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set up test for GTMAssertObjectImageEqualToImageNamed, leave out the 
reference image
2. Run on iOS device
3. Observe failure

What is the expected output? What do you see instead?
Reference image (same for diff, if reference exists) should be saved, but will 
not be on device, because the destination path tried is /Desktop/imagename.png 
- /Desktop is not a valid path on the device.

Instead the image should be stored in the App's home directory so it can be 
grabbed later, e. g. via Xcode/Organizer.

What version of the product are you using? On what operating system?
GTM SVN Rev 426.
iOS 4.2.1 / Xcode 3.2.5

Please provide any additional information below.
Attached find a proposed patch to fix this. It will place the images to the 
App's tmp directory.

Original issue reported on code.google.com by daniel.s...@gmail.com on 20 Jan 2011 at 1:44

Attachments: