mirror of
https://github.com/servo/servo.git
synced 2025-06-13 10:54:29 +00:00
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
This commit is contained in:
parent
c193af8c32
commit
8b9b36454c
4 changed files with 2124 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue