HtmlUnit / htmlunit

HtmlUnit is a "GUI-Less browser for Java programs".
https://www.htmlunit.org
Apache License 2.0
841 stars 166 forks source link

Update Chart.js support #802

Open blasss opened 6 days ago

blasss commented 6 days ago

HTMLUnit currently includes support for Chart.js version 2.9.4 (https://github.com/HtmlUnit/htmlunit/tree/master/src/test/resources/libraries/chartjs/2.9.4) but the latest version is currently 4.4.3 (https://www.chartjs.org/docs/latest/api/).

Using the latest version of Chart.js should be possible, but fails with a JavaScript error ("redeclaration of const..."), that seems to be related to a rhino bug (https://github.com/mozilla/rhino/issues/326).

blasss commented 4 days ago

I saw a commit related to the mentioned "redeclaration of const..." in the latest 4.3.0 release and gave it another try. Unfortunately it is still failing. This time it seems to be related to using default parameters ("missing ) after formal parameters")...

rbri commented 3 days ago

@blasss Yes i know (i also did a quick test) but there is hope for this problem also; see https://github.com/mozilla/rhino/pull/1481