mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision 1e4fe87a7f01c0b5c614c8f601ffa68b4a00662a
This commit is contained in:
parent
4c3f1756da
commit
432648745e
164 changed files with 8354 additions and 595 deletions
12
tests/wpt/web-platform-tests/tools/serve/test_serve.py
Normal file
12
tests/wpt/web-platform-tests/tools/serve/test_serve.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
from . import serve
|
||||
|
||||
def test_make_hosts_file():
|
||||
hosts = serve.make_hosts_file({
|
||||
"domains": {"www": "www.foo.bar.test", "www1": "www1.foo.bar.test"},
|
||||
"not_domains": {"aaa": "aaa.foo.bar.test", "bbb": "bbb.foo.bar.test"}
|
||||
}, "127.1.1.1")
|
||||
lines = hosts.split("\n")
|
||||
assert "127.1.1.1\twww.foo.bar.test" in lines
|
||||
assert "127.1.1.1\twww1.foo.bar.test" in lines
|
||||
assert "0.0.0.0\taaa.foo.bar.test" in lines
|
||||
assert "0.0.0.0\tbbb.foo.bar.test" in lines
|
Loading…
Add table
Add a link
Reference in a new issue