https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 1734d700b8e431e4d01690be0558e91d15fc2a79 authored by Andreas Tolfsen on 13 April 2018, 13:33:50 UTC
Test serialisation of collections in wdspec.
Tip revision: 1734d70
file-names.md
---
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
back to top