diff options
author | Florian Duraffourg <f.duraffourg@gmail.com> | 2016-05-17 10:13:26 +0200 |
---|---|---|
committer | Florian Duraffourg <f.duraffourg@gmail.com> | 2016-05-17 10:13:26 +0200 |
commit | 8b9b36454c7aa8ec07e96adaea81fa09dadf52f1 (patch) | |
tree | 0019209cfdbec0297f1bcbd792af8f19751492d7 /python/servo/testing_commands.py | |
parent | c193af8c32e87c146f5a45d06d3c6086f56be820 (diff) | |
download | servo-8b9b36454c7aa8ec07e96adaea81fa09dadf52f1.tar.gz servo-8b9b36454c7aa8ec07e96adaea81fa09dadf52f1.zip |
Add unit tests for cookies base on abarth/http-state github repo
- Add unit tests
- Add a mach command to update cookie's unit tests
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r-- | python/servo/testing_commands.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 85423610217..89e51175054 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -656,3 +656,15 @@ testing/web-platform/mozilla/tests for Servo-only tests""" % reference_path) if editor: proc.wait() + + @Command('update-net-cookies', + description='Update the net unit tests with cookie tests from http-state', + category='testing') + def update_net_cookies(self): + cache_dir = path.join(self.config["tools"]["cache-dir"], "tests") + run_file = path.abspath(path.join(PROJECT_TOPLEVEL_PATH, + "tests", "unit", "net", + "cookie_http_state_utils.py")) + run_globals = {"__file__": run_file} + execfile(run_file, run_globals) + return run_globals["update_test_file"](cache_dir) |