silvansky / 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 should allow language specific image file name generation #70

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a test for GTMAssertObjectImageEqualToImageNamed that includes a 
UISwitch
2. Let it create a reference image (first run) with iOS configured to use 
English for language
3. Reconfigure device to use German language
4. Rerun test with the previously generated image.

What is the expected output? What do you see instead?
The test fails, because the switch is rendered differently, depending on the 
language. The English variant has the words "On"/"Off", the German variant uses 
"I"/"O".
Since there might be more differences in UIs (think localized texts), the 
reference image should allow for a locale/language specification. Currently 
there are already several variants possible, including OS versions, 
architecture and so on. Adding support for different languages would broaden 
the possible scope of tests.

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.
Attaching two images, showing the problem.

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

Attachments: