blob: 503ea7e209326f8b6d78ffd651b0ed1871d10ce1 [file] [log] [blame]
Testing audits involving DOM attributes.
== Running test suite: Audit.DOMAttributes
-- Running test case: Audit.DOMAttributes.Valid
Testing value `{"level":"pass","domAttributes":["id","tabindex"]}`...
PASS: Result should be "pass".
domAttributes:
- id
- tabindex
-- Running test case: Audit.DOMAttributes.Undefined
Testing value `{"level":"pass"}`...
PASS: Result should be "pass".
-- Running test case: Audit.DOMAttributes.Error.Null
Testing value `{"level":"pass","domAttributes":null}`...
PASS: Result should be "error".
errors:
- "domAttributes" must be an array
-- Running test case: Audit.DOMAttributes.Error.Number
Testing value `{"level":"pass","domAttributes":42}`...
PASS: Result should be "error".
errors:
- "domAttributes" must be an array
-- Running test case: Audit.DOMAttributes.Error.String
Testing value `{"level":"pass","domAttributes":"foo"}`...
PASS: Result should be "error".
errors:
- "domAttributes" must be an array
-- Running test case: Audit.DOMAttributes.Error.Object
Testing value `{"level":"pass","domAttributes":{}}`...
PASS: Result should be "error".
errors:
- "domAttributes" must be an array