This page contains templates for creating tests. The template syntax is compatible with several popular editors including TextMate, Sublime Text, and emacs' YASnippet mode. Each template is given in two forms, one minimal and one including [extra metadata](css-metadata.html). Usually the metadata is required by CSS tests and optional for other tests. Templates for filenames are also given. In this case `{}` is used to delimit text to be replaced and `#` represents a digit. ## Reftests ### Minimal Reftest ``` html ${1:Test title} ${4:Test content} ``` Filename: `{test-topic}-###.html` ### Reftest Including Metadata ``` html ${1:Test area}: ${2:Scope of test} ${10:Test content} ``` Filename: `{test-topic}-###.html` ### Minimal Reftest Reference: ``` html ${1:Reference title} ${3:Reference content} ``` Filename: `{description}.html` or `{test-topic}-###-ref.html` ### Reference Including Metadata ``` html ${1:Reference title} ${5:Reference content} ``` Filename: `{description}.html` or `{test-topic}-###-ref.html` ## testharness.js tests ### Minimal Script Test ``` html ${1:Test title} ``` Filename: `{test-topic}-###.html` ### Script Test With Metadata ``` html ${1:Test title} ``` Filename: `{test-topic}-###.html` ### Manual Test ``` html ${1:Test title} ``` Filename: `{test-topic}-###-manual.html`