youtube / spfjs

A lightweight JS framework for fast navigation and page updates from YouTube
https://youtube.github.io/spfjs/
MIT License
2.24k stars 147 forks source link

Prevent spurious output warnings in the PhantomJS runner for Jasmine 2.3 #367

Closed nicksay closed 9 years ago

nicksay commented 9 years ago

As described in ariya/phantomjs#12697, PhantomJS runs can output spurious warnings to the console starting with Unsafe Javascript attempt. Using a setTimeout to call phantom.exit immediately after removing the global onError handler eliminates these messages.

Progress on #364

PhilHarnish commented 9 years ago

LGTM