gecko-dev/testing/web-platform/tests/docs/test-style-guidelines.md

439 строки
17 KiB
Markdown
Исходник Обычный вид История

Bug 1084367 - Upgrade wptrunner to 1.4 and web-platform-tests to 1b45197f111e5bb65607d89f7d385883849d005d, a=test-only --HG-- rename : testing/web-platform/meta/websockets/interfaces/WebSocket/events/011.html.ini => testing/web-platform/meta/IndexedDB/idbfactory_open12.htm.ini rename : testing/web-platform/meta/websockets/interfaces/WebSocket/constants/002.html.ini => testing/web-platform/meta/IndexedDB/idbfactory_open2.htm.ini rename : testing/web-platform/meta/websockets/interfaces/WebSocket/constants/002.html.ini => testing/web-platform/meta/IndexedDB/idbindex_getKey7.htm.ini rename : testing/web-platform/meta/websockets/interfaces/WebSocket/constants/002.html.ini => testing/web-platform/meta/IndexedDB/idbobjectstore_get.htm.ini rename : testing/web-platform/tests/conformance-checkers/html/attributes/accesskey/003-novalid.html => testing/web-platform/tests/conformance-checkers/html/attributes/accesskey/duplicate-key-labels-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/attributes/accesskey/004-novalid.html => testing/web-platform/tests/conformance-checkers/html/attributes/accesskey/multi-character-key-label-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/attributes/accesskey/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/attributes/accesskey/surrogate-pair-high-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/attributes/accesskey/002-novalid.html => testing/web-platform/tests/conformance-checkers/html/attributes/accesskey/surrogate-pair-low-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/attributes/data/003-novalid.html => testing/web-platform/tests/conformance-checkers/html/attributes/data/no-characters-after-hyphen-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/attributes/data/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/attributes/data/not-xml-serializable-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/attributes/lang/004-haswarn.html => testing/web-platform/tests/conformance-checkers/html/attributes/lang/deprecated-tag-haswarn.html rename : testing/web-platform/tests/conformance-checkers/html/attributes/lang/003-isvalid.html => testing/web-platform/tests/conformance-checkers/html/attributes/lang/empty-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/attributes/lang/005-novalid.html => testing/web-platform/tests/conformance-checkers/html/attributes/lang/extlang-bad-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/attributes/lang/002-novalid.html => testing/web-platform/tests/conformance-checkers/html/attributes/lang/xmllang-different-value-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/attributes/lang/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/attributes/lang/xmllang-only-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/attributes/lang/001-isvalid.html => testing/web-platform/tests/conformance-checkers/html/attributes/lang/xmllang-same-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/attributes/role/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/attributes/role/unrecognized-role-name-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/attributes/spellcheck/050-novalid.html => testing/web-platform/tests/conformance-checkers/html/attributes/spellcheck/value-bad-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/attributes/spellcheck/053-isvalid.html => testing/web-platform/tests/conformance-checkers/html/attributes/spellcheck/value-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/a/004-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/a/media-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/a/075-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/a/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/a/100-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/a/name-empty-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/abbr/015-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/abbr/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/abbr/015-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/abbr/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/address/029-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/address/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/address/029-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/address/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/area/005-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/area/media-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/area/049-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/area/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/area/049-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/area/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/audio/074-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/audio/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/audio/074-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/audio/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/base/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/base/href-and-target-missing-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/bdo/022-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/bdo/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/bdo/022-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/bdo/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/blockquote/028-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/blockquote/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/blockquote/028-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/blockquote/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/br/023-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/br/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/bdo/023-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/br/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/canvas/070-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/canvas/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/canvas/070-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/canvas/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/cite/021-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/cite/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/cite/021-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/cite/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/code/010-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/code/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/code/010-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/code/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/del/041-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/del/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/del/041-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/del/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/dfn/016-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/dfn/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/dfn/016-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/dfn/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/dialog/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/dialog/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/div/033-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/div/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/div/033-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/div/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/dl/032-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/dl/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/dl/032-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/dl/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/em/006-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/em/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/em/006-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/em/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/embed/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/embed/height-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/embed/002-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/embed/type-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/embed/003-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/embed/width-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/footer/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/footer/nested-footer-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/footer/003-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/footer/nested-header-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/h1/034-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/h1/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/h1/034-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/h1/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/h2/035-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/h2/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/h2/035-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/h2/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/h3/036-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/h3/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/h3/036-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/h3/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/h4/037-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/h4/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/h4/037-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/h4/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/h5/038-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/h5/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/h5/038-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/h5/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/h6/039-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/h6/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/h5/039-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/h6/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/header/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/header/nested-footer-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/header/002-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/header/nested-header-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/hr/026-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/hr/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/hr/026-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/hr/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/i/017-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/i/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/i/017-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/i/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/iframe/042-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/iframe/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/iframe/042-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/iframe/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/img/043-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/img/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/img/043-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/img/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/usemap/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/img/usemap-bad-value-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/img/050-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/img/usemap-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/img/051-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/img/width-height-negative-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/input/003-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/input/list-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/input/002-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/input/pattern-asterisk-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/input/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/input/pattern-paren-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/ins/040-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/ins/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/ins/040-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/ins/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/kbd/012-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/kbd/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/kbd/012-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/kbd/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/keygen/055-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/keygen/challenge-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/keygen/058-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/keygen/id-bad-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/keygen/059-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/keygen/id-missing-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/keygen/060-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/keygen/id-redundant-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/keygen/056-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/keygen/keytype-bad-value-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/keygen/057-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/keygen/keytype-empty-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/keygen/056-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/keygen/keytype-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/keygen/058-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/keygen/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/keygen/061-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/keygen/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/keygen/054-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/keygen/no-attributes-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/keygen/054-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/keygen/non-void-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/label/002-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/label/for-descendant-no-id-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/label/001-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/label/for-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/label/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/label/multiple-descendants-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/link/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/link/href-missing-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/map/048-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/map/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/map/048-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/map/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/mark/009-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/mark/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/noscript/005-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/noscript/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/object/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/object/data-type-missing-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/object/044-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/object/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/object/044-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/object/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/ol/031-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/ol/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/ol/031-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/ol/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/option/081-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/option/label-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/option/081-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/option/label-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/option/080-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/option/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/option/080-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/option/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/p/025-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/p/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/p/025-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/p/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/param/046-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/param/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/param/046-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/param/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/pre/027-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/pre/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/pre/027-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/pre/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/q/013-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/q/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/q/013-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/q/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/ruby/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/ruby/empty-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/ruby/002-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/ruby/missing-rt-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/s/011-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/s/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/samp/011-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/samp/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/samp/011-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/samp/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/script/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/script/language-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/small/008-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/small/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/small/008-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/small/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/span/014-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/span/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/span/014-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/span/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/strong/007-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/strong/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/strong/007-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/strong/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/style/104-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/style/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/style/017-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/style/scoped-as-div-child-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/style/016-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/style/scoped-as-p-child-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/style/015-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/style/scoped-in-head-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/style/016-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/style/scoped-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/style/017-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/style/scoped-model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/style/018-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/style/scoped-multiple-adjacent-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/sub/020-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/sub/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/sub/020-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/sub/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/sup/019-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/sup/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/sup/019-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/sup/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/table/002-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/table/model-input-child-hidden-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/table/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/table/model-input-child-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/table/003-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/table/model-input-type-child-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/time/001-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/time/datetime-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/attributes/title/003-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/title/empty-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/attributes/title/002-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/title/missing-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/u/001-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/u/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/ul/030-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/ul/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/ul/030-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/ul/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/var/018-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/var/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/var/018-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/var/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/video/073-isvalid.html => testing/web-platform/tests/conformance-checkers/html/elements/video/model-isvalid.html rename : testing/web-platform/tests/conformance-checkers/html/elements/video/073-novalid.html => testing/web-platform/tests/conformance-checkers/html/elements/video/model-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/obsolete/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/obsolete/acronym-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/obsolete/002-novalid.html => testing/web-platform/tests/conformance-checkers/html/obsolete/applet-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/obsolete/003-novalid.html => testing/web-platform/tests/conformance-checkers/html/obsolete/basefont-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/obsolete/004-novalid.html => testing/web-platform/tests/conformance-checkers/html/obsolete/big-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/obsolete/005-novalid.html => testing/web-platform/tests/conformance-checkers/html/obsolete/center-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/obsolete/006-novalid.html => testing/web-platform/tests/conformance-checkers/html/obsolete/dir-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/obsolete/007-novalid.html => testing/web-platform/tests/conformance-checkers/html/obsolete/font-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/obsolete/008-novalid.html => testing/web-platform/tests/conformance-checkers/html/obsolete/frameset-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/obsolete/009-novalid.html => testing/web-platform/tests/conformance-checkers/html/obsolete/noframes-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/obsolete/010-novalid.html => testing/web-platform/tests/conformance-checkers/html/obsolete/profile-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/obsolete/012-novalid.html => testing/web-platform/tests/conformance-checkers/html/obsolete/strike-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/obsolete/013-novalid.html => testing/web-platform/tests/conformance-checkers/html/obsolete/tt-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/other/045-novalid.html => testing/web-platform/tests/conformance-checkers/html/other/applet-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/other/044-novalid.html => testing/web-platform/tests/conformance-checkers/html/other/obj-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/parser/003-novalid.html => testing/web-platform/tests/conformance-checkers/html/parser/cr-charref-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/parser/008-novalid.html => testing/web-platform/tests/conformance-checkers/html/parser/range-charref-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/parser/002-novalid.html => testing/web-platform/tests/conformance-checkers/html/parser/u000b-charref-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/parser/001-novalid.html => testing/web-platform/tests/conformance-checkers/html/parser/u000b-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/parser/006-novalid.html => testing/web-platform/tests/conformance-checkers/html/parser/u007f-charref-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/parser/007-novalid.html => testing/web-platform/tests/conformance-checkers/html/parser/u10ffff-charref-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/parser/005-novalid.html => testing/web-platform/tests/conformance-checkers/html/parser/ufffe-charref-novalid.html rename : testing/web-platform/tests/conformance-checkers/html/parser/004-novalid.html => testing/web-platform/tests/conformance-checkers/html/parser/unassigned-charref-novalid.html rename : testing/web-platform/tests/websockets/interfaces/WebSocket/protocol/001.html => testing/web-platform/tests/websockets/interfaces/WebSocket/protocol/protocol-initial.html
2014-10-21 17:21:57 +04:00
## Key Aspects of a Well Designed Test
A badly written test can lead to false passes or false failures, as
well as inaccurate interpretations of the specs. Therefore it is
important that the tests all be of a high standard. All tests must
follow the [test format guidelines][test-format] and well designed
tests should meet the following criteria:
* **The test passes when it's supposed to pass**
* **The test fails when it's supposed to fail**
* **It's testing what it claims to be testing**
## Self-Describing Tests
As the tests are likely to be used by many other people, making them
easy to understand is very important. Ideally, tests are written as
self-describing, which is a test page that describes what the page
should look like when the test has passed. A human examining the
test page can then determine from the description whether the test
has passed or failed.
_Note: The terms "the test has passed" and "the test has failed"
refer to whether the user agent has passed or failed a
particular test — a test can pass in one web browser and fail in
another. In general, the language "the test has passed" is used
when it is clear from context that a particular user agent is
being tested, and the term "this-or-that-user-agent has passed
the test" is used when multiple user agents are being compared._
Self-describing tests have some advantages:
* They can be run easily on any layout engine.
* They can test areas of the spec that are not precise enough to be
comparable to a reference rendering. (For example, underlining
cannot be compared to a reference because the position and
thickness of the underline is UA-dependent.)
* Failures can (should) be easily determined by a human viewing the
test without needing special tools.
### Manual Tests
While it is highly encouraged to write automatable tests either as [
reftests][reftests] or [script tests][scripttests], in rare cases a
test can only be executed manually. All manual tests must be
self-describing tests. Additionally, manual tests should be:
* Easy & quick to determine the result
* Self explanatory & not require an understanding of the
specification to determine the result
* Short (a paragraph or so) and certainly not require scrolling
on even the most modest of screens, unless the test is
specifically for scrolling or paginating behaviour.
### Reftests
[Reftests][reftests] should be self-describing tests wherever
possible. This means the the descriptive statement included in the
test file must also appear in the reference file so their renderings
may be automatically compared.
### Script Tests
[Script tests][scripttests] may also be self-describing, but rather
than including a supplemental statement on the page, this is
generally done in the test results output from ```testharness.js```.
### Self-Describing Test Examples
The following are some examples of self-describing tests, using some
common [techniques](#techniques) to identify passes:
* [Identical Renderings][identical-renderings]
* [Green Background][green-background]
* [No Red 1][no-red-1]
* [No Red 2][no-red-2]
* [Described Alignment][described-alignment]
* [Overlapping][overlapping]
* [Imprecise Description 1][imprecise-1]
* [Imprecise Description 2][imprecise-2]
## Techniques
In addition to the [self describing](#self-describing) statement
visible in the test, there are many techniques commonly used to add
clarity and robustness to tests. Particularly for reftests, which
rely wholly on how the page is rendered, the following should be
considered and used when designing new tests.
### Indicating success
#### The green paragraph
This is the simplest form of test, and is most often used when
testing the things that are independent of the rendering, like
the CSS cascade or selectors. Such tests consist of a single line of
text describing the pass condition, which will be one of the
following:
<span style="color: green">This line should be green.</span>
<span style="border: 5px solid green">This line should have a green
border.</span>
<span style="background: green; color: white">This line should have
a green background.</span>
#### The green page
This is a variant on the green paragraph test. There are certain
parts of CSS that will affect the entire page, when testing these
this category of test may be used. Care has to be taken when writing
tests like this that the test will not result in a single green
paragraph if it fails. This is usually done by forcing the short
descriptive paragraph to have a neutral color (e.g. white).
This [example][green-page] is poorly designed, because it does not
look red when it has failed.
#### The green square
This is the best type of test for cases where a particular rendering
rule is being tested. The test usually consists of two boxes of some
kind that are (through the use of positioning, negative margins,
zero line height, transforms, or other mechanisms) carefully placed
over each other. The bottom box is colored red, and the top box is
colored green. Should the top box be misplaced by a faulty user
agent, it will cause the red to be shown. (These tests sometimes
come in pairs, one checking that the first box is no bigger than the
second, and the other checking the reverse.) These tests frequently
look like:
<p>Test passes if there is a green square and no red.</p>
<div style="width: 100px; height: 100px; background: green"></div>
#### The green paragraph and the blank page
These tests appear to be identical to the green paragraph tests
mentioned above. In reality, however, they actually have more in
common with the green square tests, but with the green square
colored white instead. This type of test is used when the
displacement that could be expected in the case of failure is
likely to be very small, and so any red must be made as obvious as
possible. Because of this, test would appear totally blank when the
test has passed. This is a problem because a blank page is the
symptom of a badly handled network error. For this reason, a single
line of green text is added to the top of the test, reading
something like:
<p style="color: green">This line should be green and there should
be no red on this page.</p>
[Example][green-paragraph]
#### The two identical renderings
It is often hard to make a test that is purely green when the test
passes and visibly red when the test fails. For these cases, it may
be easier to make a particular pattern using the feature that is
being tested, and then have a reference rendering next to the test
showing exactly what the test should look like.
The reference rendering could be either an image, in the case where
the rendering should be identical, to the pixel, on any machine, or
the same pattern made using different features. (Doing the second
has the advantage of making the test a test of both the feature
under test and the features used to make the reference rendering.)
[Visual Example 1][identical-visual-1]
[Visual Example 2][identical-visual-2]
[Text-only Example][identical-text]
### Indicating failure
In addition to having clearly defined characteristics when
they pass, well designed tests should have some clear signs when
they fail. It can sometimes be hard to make a test do something only
when the test fails, because it is very hard to predict how user
agents will fail! Furthermore, in a rather ironic twist, the best
tests are those that catch the most unpredictable failures!
Having said that, here are the best ways to indicate failures:
#### Red
Using the color red is probably the best way of highlighting
failures. Tests should be designed so that if the rendering is a few
pixels off some red is uncovered or otherwise rendered on the page.
[Visual Example][red-visual]
[Text-only Example][red-text]
_View the pages' source to see the usage of the color
red to denote failure._
#### Overlapped text
Tests of the 'line-height', 'font-size' and similar properties can
sometimes be devised in such a way that a failure will result in the
text overlapping.
#### The word "FAIL"
Some properties lend themselves well to this kind of test, for
example 'quotes' and 'content'. The idea is that if the word "FAIL"
appears anywhere, something must have gone wrong.
[Example][fail-example]
_View the page's source to see the usage of the word FAIL._
### Special Fonts
#### Ahem
Todd Fahrner has developed a font called [Ahem][ahem-readme], which
consists of some very well defined glyphs of precise sizes and
shapes. This font is especially useful for testing font and text
properties. Without this font it would be very hard to use the
overlapping technique with text.
The font's em-square is exactly square. It's ascent and descent is
exactly the size of the em square. This means that the font's extent
is exactly the same as its line-height, meaning that it can be
exactly aligned with padding, borders, margins, and so forth.
The font's alphabetic baseline is 0.2em above its bottom, and 0.8em
below its top.
The font has four glyphs:
* X U+0058 A square exactly 1em in height and width.
* p U+0070 A rectangle exactly 0.2em high, 1em wide, and aligned so
that its top is flush with the baseline.
* É U+00C9 A rectangle exactly 0.8em high, 1em wide, and aligned so
that its bottom is flush with the baseline.
* U+0020 A transparent space exactly 1em high and wide.
Most other US-ASCII characters in the font have the same glyph as X.
#### Ahem Usage
__If the test uses the Ahem font, make sure its computed font-size
is a multiple of 5px__, otherwise baseline alignment may be rendered
inconsistently (due to rounding errors introduced by certain
platforms' font APIs). We suggest to use a minimum computed font-
size of 20px.
E.g. Bad:
``` css
{font: 1in/1em Ahem;} /* Computed font-size is 96px */
{font: 1in Ahem;}
{font: 1em/1em Ahem} /* with computed 1em font-size being 16px */
{font: 1em Ahem;} /* with computed 1em font-size being 16px */
```
E.g. Good:
``` css
{font: 100px/1 Ahem;}
{font: 1.25em/1 Ahem;} /* with computed 1.25em font-size being 20px
*/
```
__If the test uses the Ahem font, make sure the line-height on block
elements is specified; avoid 'line-height: normal'__. Also, for
absolute reliability, the difference between computed line-height
and computed font-size should be dividable by 2.
E.g. Bad:
``` css
{font: 1.25em Ahem;} /* computed line-height value is 'normal' */
{font: 20px Ahem;} /* computed line-height value is 'normal' */
{font-size: 25px; line-height: 50px;} /* the difference between
computed line-height and computed font-size is not dividable by 2. */
```
E.g. Good:
``` css
{font-size: 25px; line-height: 51px;} /* the difference between
computed line-height and computed font-size is dividable by 2. */
```
[Example test using Ahem][ahem-example]
_View the page's source to see how the Ahem font is used._
##### Installing Ahem
1. Download the [TrueType version of Ahem][download-ahem].
2. Open the folder where you downloaded the font file.
3. Right-click the downloaded font file and select "Install".
### Explanatory Text
For tests that must be long (e.g. scrolling tests), it is important
to make it clear that the filler text is not relevant, otherwise the
tester may think he is missing something and therefore waste time
reading the filler text. Good text for use in these situations is,
quite simply, "This is filler text. This is filler text. This is
filler text.". If it looks boring, it's working!
### Color
In general, using colors in a consistent manner is recommended.
Specifically, the following convention has been developed:
#### Red
Any red indicates failure.
#### Green
In the absence of any red, green indicates success.
#### Blue
Tests that do not use red or green to indicate success or failure
should use blue to indicate that the tester should read the text
carefully to determine the pass conditions.
#### Black
Descriptive text is usually black.
#### Fuchsia, Yellow, Teal, Orange
These are useful colors when making complicated patterns for tests
of the two identical renderings type.
#### Dark Gray
Descriptive lines, such as borders around nested boxes, are usually
dark gray. These lines come in useful when trying to reduce the test
for engineers.
#### Silver / Light Gray
Sometimes used for filler text to indicate that it is irrelevant.
### Methodical testing
Some web features can be tested quite thoroughly with a very
methodical approach. For example, testing that all the length units
work for each property taking lengths is relatively easy, and can be
done methodically simply by creating a test for each property/unit
combination.
In practice, the important thing to decide is when to be methodical
and when to simply test, in an ad hoc fashion, a cross section of
the possibilities.
This example is a methodical test of the :not() pseudo-class with
each attribute selector in turn, first for long values and then for
short values:
http://www.hixie.ch/tests/adhoc/css/selectors/not/010.xml
### Overlapping
This technique should not be cast aside as a curiosity -- it is in
fact one of the most useful techniques for testing CSS, especially
for areas like positioning and the table model.
The basic idea is that a red box is first placed using one set of
properties, e.g. the block box model's margin, height and width
properties, and then a second box, green, is placed on top of the
red one using a different set of properties, e.g. using absolute
positioning.
This idea can be extended to any kind of overlapping, for example
overlapping to lines of identical text of different colors.
## Tests to avoid
### The long test
Any manual test that is so long that is needs to be scrolled to be
completed is too long. The reason for this becomes obvious when you
consider how manual tests will be run. Typically, the tester will be
running a program (such as "Loaderman") which cycles through a list
of several hundred tests. Whenever a failure is detected, the tester
will do something (such as hit a key) that takes a note of the test
case name. Each test will be on the screen for about two or three
seconds. If the tester has to scroll the page, that means he has to
stop the test to do so.
Of course, there are exceptions -- the most obvious one being any
tests that examine the scrolling mechanism! However, these tests are
considered tests of user interaction and are not run with the
majority of the tests.
Any test that is so long that it needs scrolling can usually be
split into several smaller tests, so in practice this isn't much of
a problem.
This is an [example][long-test] of a test that is too long.
### The counterintuitive "this should be red" test
As mentioned many times in this document, red indicates a bug, so
nothing should ever be red in a test.
There is one important exception to this rule... the test for the
'red' value for the color properties!
### Unobvious tests
A test that has half a sentence of normal text with the second half
bold if the test has passed is not very obvious, even if the
sentence in question explains what should happen.
There are various ways to avoid this kind of test, but no general
rule can be given since the affected tests are so varied.
The last [subtest on this page][unobvious-test] shows this problem.
[test-format]: ./test-format-guidelines.html
[reftests]: ./reftests.html
[scripttests]: ./testharness-documentation.html
[identical-renderings]: http://test.csswg.org/source/css21/syntax/escapes-000.xht
[green-background]: http://test.csswg.org/source/css21/syntax/escapes-002.xht
[no-red-1]: http://test.csswg.org/source/css21/positioning/abspos-containing-block-003.xht
[no-red-2]: http://test.csswg.org/source/css21/tables/border-conflict-w-079.xht
[described-alignment]: http://test.csswg.org/source/css21/margin-padding-clear/margin-collapse-clear-007.xht
[overlapping]: http://test.csswg.org/source/css21/tables/table-anonymous-objects-021.xht
[imprecise-1]: http://test.csswg.org/source/css21/tables/border-style-inset-001.xht
[imprecise-2]: http://test.csswg.org/source/css21/text/text-decoration-001.xht
[green-page]: http://www.hixie.ch/tests/adhoc/css/background/18.xml
[green-paragraph]: http://www.hixie.ch/tests/adhoc/css/fonts/size/002.xml
[identical-visual-1]: http://test.csswg.org/source/css21/floats-clear/margin-collapse-123.xht
[identical-visual-2]: http://test.csswg.org/source/css21/normal-flow/inlines-016.xht
[identical-text]: http://test.csswg.org/source/css21/fonts/shand-font-000.xht
[red-visual]: http://test.csswg.org/source/css21/positioning/absolute-replaced-height-018.xht
[red-text]: http://test.csswg.org/source/css21/syntax/comments-003.xht
[fail-example]: http://test.csswg.org/source/css21/positioning/abspos-overflow-005.xht
[ahem-example]: http://test.csswg.org/source/css21/positioning/absolute-non-replaced-width-001.xht
[ahem-readme]: http://www.w3.org/Style/CSS/Test/Fonts/Ahem/README
[download-ahem]: http://www.w3.org/Style/CSS/Test/Fonts/Ahem/AHEM____.TTF
[long-test]: http://www.hixie.ch/tests/evil/mixed/lineheight3.html
[unobvious-test]: http://www.w3.org/Style/CSS/Test/CSS1/current/sec525.htm