Update web-platform-tests to revision 35077458592d7cf9349840211759aa85f20cd20c

This commit is contained in:
WPT Sync Bot 2021-01-24 08:20:31 +00:00
parent 500cb865bd
commit 9320df4683
150 changed files with 2079 additions and 765 deletions

View file

@ -652,8 +652,8 @@ the following methods:
`add_result_callback(callback)` - callback called with a test argument
`add_completion_callback(callback)` - callback called with an array of tests
and a status object
`add_completion_callback(callback)` - callback called with an array of tests,
a status object, and an array of asserts
Tests have the following properties:
@ -673,6 +673,21 @@ Tests have the following properties:
* `message` - An error message set when the status is `PRECONDITION_FAILED`
or `ERROR`.
Asserts have the following properties:
* `test` - The test that caused the assert.
* `assert_name` - The name of the assert that ran e.g. `assert_equals`
* `args` - An array of string representations of arguments passed to the assert
function.
* `status` - An integer representing the assert status. This has the same values
as the status property on a test.
For performance reasons asserts are only tracked when visual output is enabled.
When it's disabled the array of asserts will be empty.
## External API ##
In order to collect the results of multiple pages containing tests, the test