gecko-dev/servo/tests
Florian Duraffourg f0de867f29 servo: Merge #11196 - Add unit tests for cookies handling (from fduraffourg:master); r=jdm
Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #9965

Either:
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

Add unit tests for the `net` component about cookies. The tests are generated
with a new `mach update-net-cookies` command from this repo: https://github.com/abarth/http-state.

This PR also includes two trivial bug fixes about cookie handling.

From all the tests included, the following ones are currently failing:

- cookie_http_state::test_0003
- cookie_http_state::test_0006
- cookie_http_state::test_attribute0004
- cookie_http_state::test_attribute0005
- cookie_http_state::test_attribute0007
- cookie_http_state::test_attribute0008
- cookie_http_state::test_domain0017
- cookie_http_state::test_mozilla0001
- cookie_http_state::test_mozilla0002
- cookie_http_state::test_mozilla0003
- cookie_http_state::test_mozilla0005
- cookie_http_state::test_mozilla0007
- cookie_http_state::test_mozilla0009
- cookie_http_state::test_mozilla0010
- cookie_http_state::test_mozilla0013

`test_000[36]` and `test_mozilla*` are failing because there is currently no
method to clean a `net::cookie_storage` from expired cookies.

`test_attribute000[4578]` are failing because hyper does not parse the `Secure`
attribute correctly. I will open an issue on the upstream project.

`test_domain0017` fails because the TLD .org is not on the PUB_DOMAINS list.

Source-Repo: https://github.com/servo/servo
Source-Revision: c519739b7bcf408f2f671a89729aa30f39dd67a1
2016-05-17 16:34:16 -07:00
..
compiletest servo: Merge #10857 - Simplify TOML syntax (from servo:toml); r=nox 2016-04-26 15:46:37 -07:00
dromaeo servo: Merge #7117 - Reenable "Use one Python virtual environment for all mach commands" (from frewsxcv:python-venv); r=jdm 2015-09-02 08:44:27 -06:00
heartbeats servo: Merge #11096 - Profile time spent saving the screenshot image (from mbrubeck:profile-image-saving); r=metajack 2016-05-09 10:21:00 -07:00
html servo: Merge #11028 - Remove BluetoothDevice members (from szeged:webbluetooth); r=jdm 2016-05-06 17:07:55 -07:00
jquery servo: Merge #10033 - Make the jquery test runner work again (from Ms2ger:jquery); r=jdm 2016-03-16 18:52:31 +05:01
power servo: Merge #6306 - Use Cargo's target directory sharing (from metajack:shared-target-dir); r=mbrubeck 2015-06-15 13:08:14 -06:00
unit servo: Merge #11196 - Add unit tests for cookies handling (from fduraffourg:master); r=jdm 2016-05-17 16:34:16 -07:00