web-platform-tests / wpt

Test suites for Web platform specs — including WHATWG, W3C, and others
https://web-platform-tests.org/
Other
4.94k stars 3.08k forks source link

[resource-timing] Add more fine-grained tests for connection timing #27935

Open noamr opened 3 years ago

noamr commented 3 years ago

The following metrics in the resource-timing specs are measured while obtaining a connection: connectStart, connectEnd, secureConnectStart, dnsLookupStart, dnsLookupEnd, nextHopProtocol.

To test them, there probably needs to be a mock web server that delays the different steps, to ensure that they're measured correctly.

See https://w3c.github.io/resource-timing/

noamr commented 3 years ago

CC @yoavweiss

noamr commented 2 years ago

https://github.com/web-platform-tests/rfcs/pull/112 should address this.