mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326
This commit is contained in:
parent
462c272380
commit
1f531f66ea
5377 changed files with 174916 additions and 84369 deletions
|
@ -0,0 +1,65 @@
|
|||
---
|
||||
layout: page
|
||||
title: File Name Flags
|
||||
order: 2
|
||||
---
|
||||
|
||||
The test filename is significant in determining the type of test it
|
||||
contains, and enabling specific optional features. This page documents
|
||||
the various flags available and their meaning.
|
||||
|
||||
|
||||
### Test Type
|
||||
|
||||
These flags must be the last element in the filename before the
|
||||
extension e.g. `foo-manual.html` will indicate a manual test, but
|
||||
`foo-manual-other.html` will not. Unlike test features, test types
|
||||
are mutually exclusive.
|
||||
|
||||
|
||||
`-manual`
|
||||
: Indicates that a test is a non-automated test.
|
||||
|
||||
`-support`
|
||||
: Indicates that a file is not a test but a support file. Not
|
||||
required for files in a directory called `resources`, `tools` or
|
||||
`support`.
|
||||
|
||||
`-visual`
|
||||
: Indicates that a file is a visual test.
|
||||
|
||||
|
||||
### Test Features
|
||||
|
||||
These flags are preceded by a `.` in the filename, and must
|
||||
themselves precede any test type flag, but are otherwise unordered.
|
||||
|
||||
|
||||
`.https`
|
||||
: Indicates that a test is loaded over HTTPS.
|
||||
|
||||
`.sub`
|
||||
: Indicates that a test uses the [server-side substitution][]
|
||||
feature.
|
||||
|
||||
`.window`
|
||||
: (js files only) Indicates that the file generates a test in which
|
||||
it is run in a Window environment.
|
||||
|
||||
`.worker`
|
||||
: (js files only) Indicates that the file generates a test in which
|
||||
it is run in a dedicated worker environment.
|
||||
|
||||
`.any`
|
||||
: (js files only) Indicates that the file generates tests in which it
|
||||
is run in Window and dedicated worker environments.
|
||||
|
||||
`.tentative`
|
||||
: Indicates that a test makes assertions not yet required by any specification,
|
||||
or in contradiction to some specification. This is useful when implementation
|
||||
experience is needed to inform the specification. It should be apparent in
|
||||
context why the test is tentative and what needs to be resolved to make it
|
||||
non-tentative.
|
||||
|
||||
|
||||
[server-side substitution]: https://wptserve.readthedocs.io/en/latest/pipes.html#sub
|
Loading…
Add table
Add a link
Reference in a new issue