@browsercore/testing 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -10
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -39,12 +39,13 @@ interoperability:
|
|
|
39
39
|
In short:
|
|
40
40
|
|
|
41
41
|
- **Golden packet testing** — load `.bin` captures recorded from real browsers
|
|
42
|
-
(Chrome 140,
|
|
43
|
-
ClientHellos, HTTP/2 SETTINGS/HEADERS frames, etc. against them.
|
|
42
|
+
(Chrome 140 (tls, http2), Firefox 128 (tls)) and compare our generated TLS
|
|
43
|
+
ClientHellos, HTTP/2 SETTINGS/HEADERS frames, etc. against them. Safari 18,
|
|
44
|
+
Edge 140, and Firefox 135 captures are not yet collected.
|
|
44
45
|
- **RFC compliance** — run focused test suites for TLS 1.3 (RFC 8446), HTTP/2
|
|
45
|
-
(RFC 9113), HTTP/1.1 (RFC 9110).
|
|
46
|
+
(RFC 9113), HTTP/1.1 (RFC 9110). These are currently stubs that throw.
|
|
46
47
|
- **Benchmarking** — measure handshake latency and request throughput at
|
|
47
|
-
p50/p95/p99.
|
|
48
|
+
p50/p95/p99. These are currently stubs that throw.
|
|
48
49
|
|
|
49
50
|
## Public API
|
|
50
51
|
|
|
@@ -60,13 +61,13 @@ import {
|
|
|
60
61
|
const result = compareAgainstGolden(myClientHello, "chrome-140:client-hello:1" as never);
|
|
61
62
|
console.log(result.matches);
|
|
62
63
|
|
|
63
|
-
// Run the TLS RFC compliance suite:
|
|
64
|
-
const tlsResult = runTlsCompliance();
|
|
65
|
-
console.log(tlsResult.pass);
|
|
64
|
+
// Run the TLS RFC compliance suite (stub — throws until implemented):
|
|
65
|
+
// const tlsResult = runTlsCompliance();
|
|
66
|
+
// console.log(tlsResult.pass);
|
|
66
67
|
|
|
67
|
-
// Benchmark a TLS handshake over 100 iterations:
|
|
68
|
-
const stats = benchmarkTlsHandshake(100);
|
|
69
|
-
console.log("p99:", stats.p99, "ms");
|
|
68
|
+
// Benchmark a TLS handshake over 100 iterations (stub — throws until implemented):
|
|
69
|
+
// const stats = benchmarkTlsHandshake(100);
|
|
70
|
+
// console.log("p99:", stats.p99, "ms");
|
|
70
71
|
```
|
|
71
72
|
|
|
72
73
|
## Types
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@browsercore/testing",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Protocol verification — RFC compliance tests, browser golden packet captures, integration tests, and benchmarking.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"node": ">=24.0.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@browsercore/cookies": "
|
|
45
|
-
"@browsercore/crypto": "
|
|
46
|
-
"@browsercore/fetch": "
|
|
47
|
-
"@browsercore/http1": "
|
|
48
|
-
"@browsercore/http2": "
|
|
49
|
-
"@browsercore/profiles": "
|
|
50
|
-
"@browsercore/tls": "
|
|
51
|
-
"@browsercore/transport": "
|
|
44
|
+
"@browsercore/cookies": "latest",
|
|
45
|
+
"@browsercore/crypto": "latest",
|
|
46
|
+
"@browsercore/fetch": "latest",
|
|
47
|
+
"@browsercore/http1": "latest",
|
|
48
|
+
"@browsercore/http2": "latest",
|
|
49
|
+
"@browsercore/profiles": "latest",
|
|
50
|
+
"@browsercore/tls": "latest",
|
|
51
|
+
"@browsercore/transport": "latest"
|
|
52
52
|
}
|
|
53
53
|
}
|