Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
PassTest declared after harness completion
Asserts run
Pass
assert_equals(2, 2)
    at Test.<anonymous> ( /resources/test/tests/unit/late-test.html:41:17)
Pass
assert_equals("acceptable test", "acceptable test")
    at Test.<anonymous> ( /resources/test/tests/unit/late-test.html:42:17)
Pass
assert_equals("test registered in onload handler", "test registered in onload handler")
    at Test.<anonymous> ( /resources/test/tests/unit/late-test.html:43:17)
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /resources/test/tests/unit/late-test.html:44:17)

This test simulates an automated test running scenario, where the test results emitted by testharness.js may be interpreted after some delay. It is intended to demonstrate that in such cases, any additional tests which are executed during that delay are included in the dataset.

Although these "late tests" are likely an indication of a mistake in test design, they are also recorded. Previously, "late tests" were ignored. This test changed to assert "late tests" were no longer ignored after https://github.com/web-platform-tests/wpt/pull/38806 was introduced.