From f2744e1fbb14ce087b335de8e0717de601ea8ad5 Mon Sep 17 00:00:00 2001 From: Siddhant Shukla <70441430+Siddhantshukla814@users.noreply.github.com> Date: Sat, 18 Jun 2022 21:46:33 +0530 Subject: [PATCH 1/2] mobile_device.ini --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 04daa00..4a29532 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ _The default WPT server can also be specified via environment variable `WEBPAGET - **--injectScript** _\_: JavaScript to run after the document has started loading - **-E, --tester** _\_: run the test on a specific PC (name must match exactly or the test will not run) - **-W, --mobile**: (experimental) emulate mobile browser: Chrome mobile user agent, 640x960 screen, 2x scaling and fixed viewport (Chrome only) -- **--device** _\_: device name from mobile_devices.ini to use for mobile emulation (only when mobile=1 is specified to enable emulation and only for Chrome) +- **--device** _\_: device name from [mobile_devices.ini](https://github.com/WPO-Foundation/webpagetest/blob/master/www/settings/mobile_devices.ini) to use for mobile emulation (only when mobile=1 is specified to enable emulation and only for Chrome) - **-M, --timeline**: capture Developer Tools Timeline (Chrome only) - **-J, --callstack**: set between 1-5 to include the JS call stack. must be used in conjunction with timeline (increases overhead) (Chrome only) - **-q, --chrometrace**: capture chrome trace (about://tracing) (Chrome only) @@ -541,6 +541,7 @@ wpt.runTest(script, (err, data) => { - **minimumDuration**: _Number_, minimum test duration in seconds - **tester**: _String_, run the test on a specific PC (name must match exactly or the test will not run) - **emulateMobile**: _Boolean_, (experimental) emulate mobile browser: Chrome mobile user agent, 640x960 screen, 2x scaling and fixed viewport (Chrome only) +- **device**: _String_, device name from [mobile_devices.ini](https://github.com/WPO-Foundation/webpagetest/blob/master/www/settings/mobile_devices.ini) to use for mobile emulation (only when mobile=1 is specified to enable emulation and only for Chrome) - **timeline**: _Boolean_, capture Developer Tools Timeline (Chrome only) - **timelineCallStack**: _Boolean_, set between 1-5 to include the JS call stack. must be used in conjunction with timeline (increases overhead) (Chrome only) - **chromeTrace**: _Boolean_, capture chrome trace (about://tracing) (Chrome only) From 86e291195f445c34c2f7fc681a4635c267ead4f9 Mon Sep 17 00:00:00 2001 From: Siddhant Shukla <70441430+Siddhantshukla814@users.noreply.github.com> Date: Mon, 20 Jun 2022 07:34:25 +0530 Subject: [PATCH 2/2] small change --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4a29532..e4fc077 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ _The default WPT server can also be specified via environment variable `WEBPAGET - **--injectScript** _\_: JavaScript to run after the document has started loading - **-E, --tester** _\_: run the test on a specific PC (name must match exactly or the test will not run) - **-W, --mobile**: (experimental) emulate mobile browser: Chrome mobile user agent, 640x960 screen, 2x scaling and fixed viewport (Chrome only) -- **--device** _\_: device name from [mobile_devices.ini](https://github.com/WPO-Foundation/webpagetest/blob/master/www/settings/mobile_devices.ini) to use for mobile emulation (only when mobile=1 is specified to enable emulation and only for Chrome) +- **--device** _\_: device name from [mobile_devices.ini](https://github.com/WPO-Foundation/webpagetest/blob/master/www/settings/mobile_devices.ini) to use for mobile emulation (only when --mobile is specified to enable emulation and only for Chrome) - **-M, --timeline**: capture Developer Tools Timeline (Chrome only) - **-J, --callstack**: set between 1-5 to include the JS call stack. must be used in conjunction with timeline (increases overhead) (Chrome only) - **-q, --chrometrace**: capture chrome trace (about://tracing) (Chrome only) @@ -541,7 +541,7 @@ wpt.runTest(script, (err, data) => { - **minimumDuration**: _Number_, minimum test duration in seconds - **tester**: _String_, run the test on a specific PC (name must match exactly or the test will not run) - **emulateMobile**: _Boolean_, (experimental) emulate mobile browser: Chrome mobile user agent, 640x960 screen, 2x scaling and fixed viewport (Chrome only) -- **device**: _String_, device name from [mobile_devices.ini](https://github.com/WPO-Foundation/webpagetest/blob/master/www/settings/mobile_devices.ini) to use for mobile emulation (only when mobile=1 is specified to enable emulation and only for Chrome) +- **device**: _String_, device name from [mobile_devices.ini](https://github.com/WPO-Foundation/webpagetest/blob/master/www/settings/mobile_devices.ini) to use for mobile emulation (only when emulateMobile=true is specified to enable emulation and only for Chrome) - **timeline**: _Boolean_, capture Developer Tools Timeline (Chrome only) - **timelineCallStack**: _Boolean_, set between 1-5 to include the JS call stack. must be used in conjunction with timeline (increases overhead) (Chrome only) - **chromeTrace**: _Boolean_, capture chrome trace (about://tracing) (Chrome only)