calabash/calabash-android — pull request #85 by plaa (2012-08-13 09:00:01+00:00)
Title: execute_javascript updates

Hi,

I updated the execute_javascript command with two changes:

1. Instead of using the "result" variable for the returning a result, you should now "return" the result instead (e.g. "return 'Hello world';"). This is consistent with how Webdriver works and cleaner than using an arbitrary variable. This is a backward incompatible change, but hopefully no-one has yet had time to use the feature.

2. JavaScript exceptions are now caught and handled gracefully: They will cause the step to fail with a proper error message.