-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
PhantomJS fails to run bundle.js in beta15 #349
Comments
This can be reproduced in the rsg repo:
By repeating this for every commit in beta15 I have found that the problem is introduced by a change somewhere in the recent markdown refactoring commit. |
Maybe markdown-to-jsx itself has something that doesn’t work in PhantomJS. This kind of regressions are very annoying. Do you have any ideas how we can test that? |
Or maybe it’s includes? |
What do you think about eslint-plugin-compat? |
Sorry, I have no clue. If you want to test compatibility with phantomjs, then you could take screenshots of the docs as a part of the test suite and compare them to a previous state (with backstopjs, for example). |
Sounds complicated ;-/ though we already try to run builds with PhantomJS to check if they work. |
If you're talking about the tests/phantoms.js then as far as I understand it doesn't really check much except for making a successful http request to localhost.
…Sent from my iPhone
On 10 Mar 2017, at 16:24, Artem Sapegin ***@***.***> wrote:
Sounds complicated ;-/ though we already try to run builds with PhantomJS to check if they work.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
It will fail in case of JS error but that’s all it can ;-| |
Well, it _is_ possible to make a better test for phantomjs compatibility, the question is -- is this needed? How big is this a priority for the project?
…Sent from my iPhone
On 10 Mar 2017, at 16:39, Artem Sapegin ***@***.***> wrote:
It will fail in case of JS error but that’s all it can ;-|
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
At least to reduce number of bug reports from you ;-) |
OK eslint-plugin-compat is nice to have but it only found |
I’ve even tried to add something like |
Yup, it was |
I'm afraid phantom-js has its own set of ideas of things worthy of support, and does not match any other "real" browser. I have found it to behave closer to an IE10 or something like that, to be honest. Thanks for the fix! |
Out in 5.0.0-rc.1. |
This example https://github.com/ariya/phantomjs/blob/master/examples/rasterize.js when run against a documentation that is generated by beta15 produces a screenshot of a blank template page, and produces a correct screenshot of rendered documentation if it is generated by beta14. I don't see any errors in the output (I've added a
page.onConsoleMessage
handler and I see my test console.log call). Judging by the time it takes to do so in beta14, the javascript bundle is not executed in beta15 (the rasterize script takes the screenshot immediately and exits, and adding a 20 second timeout doesn't help). I'm using phantomjs 2.1.1 (globally installed, prebuilt).The text was updated successfully, but these errors were encountered: