Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

refs #987 - Support Phantomjs 2.0 #1137

Closed
wants to merge 3 commits into from
Closed

refs #987 - Support Phantomjs 2.0 #1137

wants to merge 3 commits into from

Conversation

rdpanek
Copy link

@rdpanek rdpanek commented Jan 28, 2015

PhantomJS 2.0 (non-develop), branch: master, latest revision (a2912c216d06df4d8b51f12ad4082a48c5fc7ba6)

casperjs selftest
...
...
PASS 1022 tests executed in 25.746s, 1022 passed, 0 failed, 0 dubious, 5 skipped.

this is very small victory ;-)

Bud, problem is with Phantomjs. For fully support you must cherry-picked these revision from my repository:

This is heavy for production use, but please to code review.

Next steps:

  • We need to go through all the tests and update.
  • We need to comapre a new features in Phantom and adding to Casper.

@mickaelandrieu
Copy link
Member

@rdpanek how about official 2.0 ? https://github.com/ariya/phantomjs/tree/2.0

edit: powned !!! Yata phantomjs 2 is alive ! <3

@@ -1498,8 +1498,9 @@ Casper.prototype.resourceExists = function resourceExists(test) {
break;
case "function":
testFn = test;
if (phantom.casperEngine !== "slimerjs")
testFn.name = "_testResourceExists_Function";
// if (phantom.casperEngine !== "slimerjs") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need this to work, what is the issue with slimerjs at this point ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this point was problem with bug in Phantom, not Slimer. The code is not removed, because I need your opinion.

After this edit, test passed in both engines.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 , CasperJS will be the first and only tool to support triffleJS, phantomJS (1&2) and slimerJS.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌈

@mickaelandrieu
Copy link
Member

@n1k0 do we need to keep the "coffee support" ? I never see anyone contribute to this files.

@rdpanek
Copy link
Author

rdpanek commented Jan 28, 2015

I have problem with build officialy branch 2.0, I work on it.

@rdpanek
Copy link
Author

rdpanek commented Jan 29, 2015

@mickaelandrieu we love of coffee - it's very useful, but I understand the reason ariya/phantomjs#12410

@sbmaxx
Copy link

sbmaxx commented Jan 31, 2015

👍 for support phantomjs 2.0 in casperjs

@pskucherov
Copy link

👍 for subj

@n1k0
Copy link
Member

n1k0 commented Jan 31, 2015

@mickaelandrieu:

do we need to keep the "coffee support" ? I never see anyone contribute to this files.

Problem is backward compatibility. If it was just me, I'd discard its support, but we need to avoid breaking existing usage.

@peter-mouland
Copy link

+1

@mickaelandrieu
Copy link
Member

@n1k0 you are right, but can we plan the next "next" release will drop coffee support ? The easy way will be to release 1.1 without this pull request and then a 1.2 with phantomjs 2 support.

And finally, deprecate 1.0 (the legacy branch will be at least the 1.1). What do you think ?

@rdpanek can you rebase master branch please, and your tests will pass 👍

@rdpanek
Copy link
Author

rdpanek commented Feb 1, 2015

@mickaelandrieu I tried rebase my changes on casperjs/master (88c59f8)

PASS 1022 tests executed in 25.426s, 1022 passed, 0 failed, 0 dubious, 5 skipped.

@mickaelandrieu
Copy link
Member

👍

@ohenak
Copy link

ohenak commented Feb 3, 2015

👍 I can't wait to see this happen!

@rdpanek
Copy link
Author

rdpanek commented Feb 3, 2015

@mickaelandrieu sorry, maybe I not understand, but what now? waiting for the milestone, or even on me?

@ohenak
Copy link

ohenak commented Feb 3, 2015

@rdpanek I guess casperjs.exe has to be fixed too? since build failed due to tests for .NET not able to run? Or it is always expected?

@rdpanek
Copy link
Author

rdpanek commented Feb 3, 2015

@ohenak I don't know, because, I haven't windows environment. so I do not know the status of

@thom4parisot
Copy link
Contributor

Backward compatibility unless you release it as a 2.0.0 branch and drop the support of Phantom 1 as well.

@mickaelandrieu
Copy link
Member

@oncletom 👍 this may be the best solution.

@mickaelandrieu mickaelandrieu modified the milestones: 2.0.x, 1.1 Feb 3, 2015
@paazmaya
Copy link
Contributor

paazmaya commented Feb 3, 2015

Ok, this will would be merged right after releasing 1.1 ?

@rdpanek
Copy link
Author

rdpanek commented Feb 3, 2015

@mickaelandrieu @oncletom 👍

@rdpanek
Copy link
Author

rdpanek commented Feb 9, 2015

I prepared docker images with functional versions of casperjs and phantomjs2.0

https://registry.hub.docker.com/u/rdpanek/casperjs/ and how to use:

docker run --rm -v `pwd`:/mnt/test rdpanek/casperjs:latest /usr/bin/casperjs test /mnt/test/example.js

@mickaelandrieu
Copy link
Member

@n1k0 can I create 2.0 branch?

@Klimanso
Copy link

👍

2 similar comments
@tamacti
Copy link

tamacti commented Feb 10, 2015

👍

@xescoder
Copy link

👍

@mickaelandrieu
Copy link
Member

@xescoder do someone at Yandex actualy use CasperJS ? o_O

@a-x-
Copy link

a-x- commented Feb 10, 2015

👍

2 similar comments
@yurich
Copy link

yurich commented Feb 10, 2015

👍

@nbauma109
Copy link

👍

@DimitryDushkin
Copy link

👍 from yandex)

@mattpacura
Copy link

👍

@cosmo0920
Copy link

👍

@mickaelandrieu
Copy link
Member

@rdpanek can you rebase, fix the tests and propose a pull request into "phantomjs-2" branch ?

if @n1k0 agree, I'll rename this branch 2.0. For now, when this new "phantomjs2" branch is all green I will release it as 2.x-alpha.

@mickaelandrieu
Copy link
Member

ping @n1k0 can we consider that phantomjs 2 and (so on) coffee support discard is the start of CasperJS 2 ?

@Surgo
Copy link

Surgo commented Mar 6, 2015

👍

1 similar comment
@kevin-smets
Copy link

👍

@paazmaya paazmaya modified the milestones: 2.0, 2.0.x Mar 6, 2015
@mitar
Copy link

mitar commented Mar 17, 2015

+1 for keeping the CoffeeScript support.

@mickaelandrieu
Copy link
Member

@mitar we can't because phantomjs2 has dropped CoffeeScript support.

@pilavdzic
Copy link

I can contribute updated install docs if this would be helpful?

See stack overflow answer by pilavdzice for the state of installing on windows:

http://stackoverflow.com/questions/14894311/casperjs-windows-installation-how-is-it-done-the-correct-way-please/29152104#29152104

+1 to remove coffeescript dependency - those who love coffeescript can get the latest version themselves and use that, but it should be optional, having more dependencies is a disadvantage and makes installation more of a barrier to folks who want to just simply start to use casperjs for something simple. This is a very useful tool because it makes things simpler. Phantomjs folks are smart too and did not think it was worth it to have more dependence, so I think it would be good to follow that example.

Can we support coffescript without making it a required dependency?

@sbmaxx
Copy link

sbmaxx commented Apr 14, 2015

Hey. Maybe it's time to merge this PR? ;)

@paazmaya
Copy link
Contributor

Perhaps this PR should be made against the phantomjs-2 branch...

@sbmaxx
Copy link

sbmaxx commented Apr 14, 2015

I didn't see any progress for a long time. This makes me sad.

@mickaelandrieu
Copy link
Member

@rdpanek can you make this PR against phantomjs-2 branch please ?

@sbmaxx as there is no "official" gnu/linux build for now, it's hard to test and hard to accept: be patient :)

@sbmaxx
Copy link

sbmaxx commented Apr 14, 2015

@mickaelandrieu it exists on mac os x, and there is no rocket science in build from source ;) It's about ~15-30 minutes :)

I'll wait..

@n1k0
Copy link
Member

n1k0 commented Apr 14, 2015

it exists on mac os x, and there is no rocket science in build from source ;) It's about ~15-30 minutes :)

So while you seem quite comfortable doing this, thanks for sending a PR with the travis.yml file tweaked so we can build Phantom2 there and run the unit test suite. Thanks again, we truly appreciate.

@jchoi18
Copy link

jchoi18 commented Jul 1, 2015

Any update on this branch? I'd love to be able to use the window.performance feature in Phantom2.0 with casperjs

@istr
Copy link
Collaborator

istr commented Dec 1, 2015

Closed with PR 1310 and PR 1352.

@istr istr closed this Dec 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet