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

Adds quick screenshot method to all SLElement objects #129

Merged
merged 4 commits into from
Mar 5, 2014

Conversation

jzucker2
Copy link
Contributor

Reduces steps and allows for easy screenshots of individual
elements. Should be useful in multiple runs for small UI changes.

Reduces steps and allows for easy screenshots of individual
elements. Should be useful in multiple runs for small UI changes.
@jzucker2
Copy link
Contributor Author

My doc generation comments might not be good. Haven't worked that much for Obj-C. Also open to putting a timestamp if a filename isn't provided. I left notes in the comments in the patch.

@jzucker2 jzucker2 closed this Feb 20, 2014
@jzucker2 jzucker2 reopened this Feb 20, 2014
/**
Takes a screenshot of the specified element.

The rect for the screenshot of the element is automatically provided.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need to mention this--it's kinda an implementation detail.

@wearhere
Copy link
Contributor

Thanks for the PR @jzucker2! I think this is a solid addition. Besides the points of style I mention in the diff, one other thing to change is that all user interface elements can make use of this method, so it should be defined in SLUIAElement.h/.m.

@wearhere wearhere self-assigned this Feb 27, 2014
Moved element screenshotting to SLUIAElement class.
@jzucker2
Copy link
Contributor Author

jzucker2 commented Mar 3, 2014

Updated as per your suggestions. Hope I understand you properly. Looking forward to hearing your feedback.

@jzucker2
Copy link
Contributor Author

jzucker2 commented Mar 3, 2014

Any idea why Travis CI would fail? This isn't drastically different than the previous commit. Seems to be an issue with iPad??

When running `subliminal-test` from the command line, the images are also saved
as PNGs within the specified output directory.

@param filename An optional string to use as the name for the resultant image file (provide 'nil' if you do not want the screenshot to have a name).
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it might be a bit clearer to say "provide nil to use a generic name."

@wearhere
Copy link
Contributor

wearhere commented Mar 5, 2014

Thanks for your changes @jzucker2. Two more documentation tweaks and then this looks good. And you're right that this request shouldn't have caused the tests to fail; there's a separate issue (#132) at play. I won't hold up this request on those failures.

@jzucker2
Copy link
Contributor Author

jzucker2 commented Mar 5, 2014

Ok, I think I'm on the same page as you now. Hope this makes more sense. Thanks for the suggestions. Glad to contribute to this project!

@wearhere
Copy link
Contributor

wearhere commented Mar 5, 2014

👍 Thanks again!

wearhere added a commit that referenced this pull request Mar 5, 2014
Adds quick screenshot method to all SLElement objects
@wearhere wearhere merged commit e6a3bf2 into inkling:master Mar 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants