Skip to content

Commit f0f9c01

Browse files
committed
added documentation for new parameters in runtest docs
1 parent 7102af7 commit f0f9c01

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,18 @@ wpt.runTest(script, (err, data) => {
496496
* **pingback**: _String_, URL to ping when the test is complete (the test ID will be passed as an "id" parameter)
497497
* **bandwidthDown**: _String_, download bandwidth in Kbps (used when specifying a custom connectivity profile)
498498
* **bandwidthUp**: _String_, upload bandwidth in Kbps (used when specifying a custom connectivity profile)
499+
* **browserwidth**: _String_, Browser window width (in display pixels)
500+
* **browserheight**: _String_, Browser window height (in display pixels)
501+
* **viewportheight**: _String_, Viewport Height in css pixels
502+
* **viewportwidth**: _String_, Viewport Width in css pixels
503+
* **dpr**: _String_, Device To Pixel Ratio
504+
* **appendua**: _String_, String to append to the user agent string. This is in addition to the default PTST/ver string
505+
* **testtype**: _String_, For running alternative test types, can specify traceroute or lighthouse
506+
* **profiler**: _Number_, Set to 1 to enable the V8 sampling profiler (Chromium only)
507+
* **disableAVIF**: _Number_, Set to 1 to disable AVIF support (Chromium 88+)
508+
* **disableWEBP**: _Number_, Set to 1 to disable WEBP support (Chromium 88+)
509+
* **disableJXL**: _Number_, Set to 1 to disable JpegXL support (Chromium 88+)
510+
* **dtShaper**: _Number_, Set to 1 to use Chrome's built-in traffic-shaping instead of the packet-level netem shaping usually used by the test agents
499511
* **latency**: _String_, first-hop Round Trip Time in ms (used when specifying a custom connectivity profile)
500512
* **packetLossRate**: _Number_, packet loss rate - percent of packets to drop (used when specifying a custom connectivity profile)
501513
* **disableOptimization**: _Boolean_, disable optimization checks (for faster testing)

lib/mapping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ var options = {
396396
key : 'webp',
397397
api : 'disableWEBP',
398398
param : 'disableWEBP',
399-
info : 'Set to 1 to disable AVIF support (Chromium 88+).'
399+
info : 'Set to 1 to disable WEBP support (Chromium 88+).'
400400
},
401401
'disableJXL' : {
402402
name : 'disableJXL',

0 commit comments

Comments
 (0)