mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision 66c4613f823c4384c78ada77346eda17bb128947
This commit is contained in:
parent
183772583f
commit
a91433f0c8
234 changed files with 4368 additions and 967 deletions
|
@ -224,33 +224,25 @@ information in one of two ways:
|
|||
In order for the latter to work, a file must either have a name of the
|
||||
form `{name}.sub.{ext}` e.g. `example-test.sub.html` or be referenced
|
||||
through a URL containing `pipe=sub` in the query string
|
||||
e.g. `example-test.html?pipe=sub`. The substitution syntax uses {% raw %} `{{
|
||||
}}` {% endraw %} to delimit items for substitution. For example to substitute in
|
||||
e.g. `example-test.html?pipe=sub`. The substitution syntax uses `{{ }}`
|
||||
to delimit items for substitution. For example to substitute in
|
||||
the host name on which the tests are running, one would write:
|
||||
|
||||
{% raw %}
|
||||
{{host}}
|
||||
{% endraw %}
|
||||
|
||||
As well as the host, one can get full domains, including subdomains
|
||||
using the `domains` dictionary. For example:
|
||||
|
||||
{% raw %}
|
||||
{{domains[www]}}
|
||||
{% endraw %}
|
||||
|
||||
would be replaced by the fully qualified domain name of the `www`
|
||||
subdomain. Ports are also available on a per-protocol basis e.g.
|
||||
|
||||
{% raw %}
|
||||
{{ports[ws][0]}}
|
||||
{% endraw %}
|
||||
|
||||
is replaced with the first (and only) websockets port, whilst
|
||||
|
||||
{% raw %}
|
||||
{{ports[http][1]}}
|
||||
{% endraw %}
|
||||
|
||||
is replaced with the second HTTP port.
|
||||
|
||||
|
@ -258,9 +250,7 @@ The request URL itself can be used as part of the substitution using
|
|||
the `location` dictionary, which has entries matching the
|
||||
`window.location` API. For example
|
||||
|
||||
{% raw %}
|
||||
{{location[host]}}
|
||||
{% endraw %}
|
||||
|
||||
is replaced by `hostname:port` for the current request.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue