joshbuddy/ghostbuster — pull request #23 by iStefo (2012-04-11 11:22:36+00:00)
Title: Add assertFunction feature

After the upgrade to pahntom.js 1.5, a other missing feature is the possibility to assert local variables and functions from the loaded page. To integrate this into the overall testing process, I wrote assertFunction.

With the provided documentation and tests, it should be pretty self explaining. I think we should push the version number as well, but I'll leave that up to you.

Is there a easy way to implement a assertAsyncFunction? I'm not deeply enough into the testing class, but maybe there would be a way to alert('Success') or sth. like that...

If you have any questions left, just contact me.