Rewrite WebRequest.getParameters (#844)#851
Conversation
a2526dc to
c042de4
Compare
|
Great, will try to ontegrate this in the HtmlUnit ci tests |
|
I’m not sure the 3000+ tests should all be included in a test suite that is regularly run. It is time consuming. What did worry me though is that I changed the getParameters substantially without breaking any tests. So maybe one or two added unit tests might be useful. |
|
Should I assist with integrating a unit test into ci? |
|
ok, have merged this. My dream for a test case
It will be fantastic if you can prepare something in that way. |
|
Have merged your stuff and will make a snapshot build out of it if not too many tests are failing Sorry for being not that responsive during the last days - was on a workshop and will be out for two more weeks to have a holiday break. Afterwards we can work together to get this finally done. |
|
after applying this i had to ignore the org.htmlunit.WebRequest2Test suite for the moment maybe the test is later replaced by the new project |
|
snapshot updated |
Each time I tested the implementation I found new things that went wrong.
Now I've created a parametrized test to cover all cases except
method == TRACE && encoding.equals("text/plain"), which behaves oddly.It takes 40 minutes to run with firefox, so I stored the output in a xml file as "golden master".
Then I ran the same tests with htmlunit until the ouputs were the same
This new implementation should be as correct as it'll get.
All my tests (bothh old and new) are now passing.
See
https://github.com/Crydust/testcasehtmlunit
https://github.com/Crydust/testcasehtmlunit2