-
Notifications
You must be signed in to change notification settings - Fork 121
Upgrade to Phantom JS 2.0? #56
Comments
Support for PhantomJs 2 would be great. |
👍 |
1 similar comment
👍 |
👍 |
1 similar comment
👍 |
karma-phantomjs-launcher depends on the NPM PhantomJS wrapper phantomjs, which might not upgrade to 2.x until 2.1 due to some problems the PhantomJS team is having with creating working binaries for all platforms. |
👍 , looks like they are just waiting for the Linux binaries. ariya/phantomjs#12948. Although, as @carlgieringer stated, it will probably be postponed until 2.1. |
does anyone have a good workaround for function.bind not being available in older versions of phantom that will work with karma? the mozilla polyfill won't work with react |
@kellyrmilligan I'm using |
@kellyrmilligan I've been using the following simple shim (not tested on React). It allows me to use PouchDB. Function.prototype.bind = Function.prototype.bind || function (thisp) {
var fn = this;
return function () {
return fn.apply(thisp, arguments);
};
}; |
@tschaub that is working perfectly, thanks! |
👍 |
7 similar comments
👍 |
👍 |
👍 |
👍 |
👍 |
👍 |
👍 |
Could everyone please stop posting things which add nothing to the discussion? I don't want to open this issue every time I get an email just to see another thumbs up. (Yes I realize this will trigger another notification). |
👍 @Plestik comment |
Now I have a success story with new phantomjs. I installed phantom from this ppa and added environment variable |
I totally agree with @just-boris. We should move phantomjs to be a peer dependency at most (as we might need to let people know that the launcher only works with a certain version of phantomjs) but other than that we should leave it up to the user to install the browser and figure out where it is, like we do with the other launchers. Ref #70 @karma-runner/contributors what you think? |
Moved to peerDeps, you can now install newer phantomjs if you want |
Hmm, but how? I tried to explicitly depend on |
For the time being yes that's the best way to do it. Npm@3 will stop installing peerdependencies so that in turn will remove the overhead of having two installations. |
Well, ok. Thanks for the answer! I hope PhantomJS@2.1 will be released sooner than NPM@3 ;) |
Interesting, could anybody please be so kind to provide steps how to get the launcher running with PhantomJS2? |
@nottinhill my success story:
My magic package forces to use system PhantomJS. So you need install it via brew, if you are using mac, for example |
Thanks m8, testing now. |
Strangely I see now:
It is working reproducably well with our blob functionality Does this mean Phantom 2 is used but 1.9.8 displayed? |
@nottinhill nope, that means PhantomJS 1.9.8 is used here. |
Yes that command is giving back |
@nottinhill that guys https://github.com/medium/phantomjs put own phantomjs executable into |
Will do! Thanks, great help! One more thing: |
@nottinhill yes, if you have a custom installation provided by |
Great stuff, Boris! I posted a quick step-by-step for Bamboo here: https://github.com/just-boris/phantomjs/issues/1 |
@just-boris One more thing I noted, |
I use a Mac OS X Yosemite with node v0.12.3. I'm also using Karma with PhantomJS, however, I'm not using ./node_modules/**/phantomjs, but remember, that we do need karma-phantomjs-launcher. Here's how I get Karma and PhantomJS working:
export PHANTOMJS_BIN=[Your full path to phantomjs] Now, I can run without any issues as discussed by others (e.g. function.bind). Hope this works for you! |
I never figured out how to use phantomjs2 with this launcher, so I am using https://github.com/gskachkov/karma-phantomjs2-launcher, which is a fork and worked out of the box. |
Apparently karma-phantomjs2-launcher users a different (older) version of phantomjs that doesn't work on all of the machines (gives openssl errors). So I am back on trying to make this work. I put |
PhantomJS 2.1 was released yesterday ariya/phantomjs#12970 (might be old news to some of us here) |
@jodytate thanks, yes we can finally properly upgrade this module :) |
Fixed in 1.0.0 |
See this issue for more information: karma-runner/karma-phantomjs-launcher#56
See this issue for more information: karma-runner/karma-phantomjs-launcher#56
Phantom JS 2 was released, are there plans to upgrade?
http://phantomjs.org/release-2.0.html
The text was updated successfully, but these errors were encountered: