Vnu v1.0.0 Vnu.Assertions View Source
ExUnit assertions for checking the validity of HTML, CSS, and SVG documents.
Link to this section Summary
Functions
Asserts that the given CSS document is valid.
Asserts that the given HTML document is valid.
Asserts that the given SVG document is valid.
Link to this section Functions
Asserts that the given CSS document is valid.
See assert_valid_html/2
for the list of options and other details.
Asserts that the given HTML document is valid.
Options
:server_url
- The URL of the Checker server. Defaults tohttp://localhost:8888
.:fail_on_warnings
- Messages of type:info
and subtype:warning
will be treated as if they were validation errors. Their presence will mean the document is invalid. Defaults tofalse
.:filter
- A module implementing theVnu.MessageFilter
behavior that will be used to exclude messages matching the filter from the result. Defaults tonil
(no excluded messages).:message_print_limit
- The maximum number of validation messages that will me printed in the error when the assertion fails. Can be an integer or:infinity
. Defaults to:infinity
.
Asserts that the given SVG document is valid.
See assert_valid_html/2
for the list of options and other details.