gecko-dev/servo/tests
Nikki cfc23bc6fb servo: Merge #9391 - Test redirect_count boundaries in Fetch (from nikkisquared:test_redirect); r=jdm
I've written two new tests for Fetch: one to test the highest possible number of redirects succeeds; and another to ensure a failure in Fetch by requesting too many redirects. I also wrote a helper function to be used by each test, since the main difference is how many times they try to redirect.

I've also changed the check against redirect_count in http_network fetch to compare it as greater than or equal to 20, as opposed to being only equal to 20. That's outside of the spec, but in my experience testing for pure equality can easily create errors. Even though it's technically not possible for redirect_count be above 20, bizarre bugs during runtime certainly happen.

Source-Repo: https://github.com/servo/servo
Source-Revision: c80fa3386459efd27b64c8b6cab33794e66d082b
2016-01-21 02:07:38 +05:01
..
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 #9204 - Update heartbeats and energymon dependencies (from connorimes:update-hb-energymon); r=Manishearth 2016-01-11 03:12:06 +05:01
html servo: Merge #8983 - Various textinput fixes (from Manishearth:cursors); r=jdm 2016-01-11 22:52:03 +05:01
jquery servo: Merge #6429 - Update jQuery tests usage message (from emilio:patch-1); r=metajack 2015-06-19 19:31:57 -06:00
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 #9391 - Test redirect_count boundaries in Fetch (from nikkisquared:test_redirect); r=jdm 2016-01-21 02:07:38 +05:01