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

Handle multiple onLoadFinished callbacks with no-op #24

Merged
merged 3 commits into from
Sep 2, 2013

Conversation

jaredstehler
Copy link
Contributor

My jasmine test suite make heavy use of iframes, and I've seen that the onLoadFinished callback gets invoked multiple times during the course of the suite run, once for the main page and again for iframes. Sometimes one of these frames fails (possibly due to a dummy or null src?) and it causes the phantom proc to exit in this function. With this code in place my suite runs to completion successfully.

I found a similar fix committed in guard-jasmine a while back: guard/guard-jasmine#19

@mitermayer
Copy link

@jaredstehler-cengage one thing you will have to do is update the package.json to 0.0.4 since the 0.0.3 is already realeased

@jaredstehler
Copy link
Contributor Author

done

@jsoverson jsoverson merged commit 27bd696 into gruntjs:master Sep 2, 2013
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.

None yet

4 participants