Skip to content

Enable accessibility programmatically on load#78

Merged
puls merged 3 commits into
kif-framework:masterfrom
sgleadow:master
Nov 1, 2011
Merged

Enable accessibility programmatically on load#78
puls merged 3 commits into
kif-framework:masterfrom
sgleadow:master

Conversation

@sgleadow

@sgleadow sgleadow commented Oct 7, 2011

Copy link
Copy Markdown
Contributor

It's a pain to have to enable accessibility in the Settings app before running tests. This code edits the relevant plist file automatically on load. I discovered it needs to be done pretty early, so it's done on class loading - calling on init didn't seem to work (plist content and timestamp did not change).

This seems to correctly enable accessibility, but the method to check whether accessibility was enabled returned true in both cases. However, tests failed without enabling accessibility, and passed with this method being called, so it seems to be working as expected (maybe we need a new way of checking accessibility being enabled?)

It works for the simulator only, and was testing with iOS 5.0 Simulator SDK.

Comment thread Classes/KIFTestController.m Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

autoreleasePool, I believe.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed and updated... got overly keen with my camel casing there!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants