docs: update generated docs
This commit is contained in:
parent
8f8458fe19
commit
e148f50d18
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -14,7 +14,7 @@ export default async function (context, commands) {
|
|||
*/
|
||||
export default async function (context, commands) {
|
||||
await commands.measure.start('https://www.sitespeed.io');
|
||||
await commands.breakpoint('');
|
||||
await commands.debug.breakpoint('');
|
||||
return commands.measure.start('https://www.sitespeed.io/documentation/');
|
||||
};
|
||||
</code></pre><h2 id="watch-what's-going-on">Watch what's going on</h2><p>If your script stopped working in your monitoring, try to run the test locally where you can watch the browser window.</p><p>Either you can do it with Docker following these <a href="https://www.sitespeed.io/documentation/sitespeed.io/docker/#visualise-your-test-in-xvfb">instructions</a> or run your test with a locally installed sitespeed.io using <code>npm install sitespeed.io -g</code>.</p><h2 id="better-safe-than-sorry">Better safe than sorry</h2><p>Implement <code>try/catch</code> blocks for robust error handling.</p><pre class="prettyprint source lang-javascript"><code>/**
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ export default async function (context, commands) {
|
|||
await commands.bidi.send(params);
|
||||
await commands.measure.start('https://www.sitespeed.io');
|
||||
}
|
||||
</code></pre><h3 id="subscribe-and-usubscribe-to-events">Subscribe and usubscribe to events</h3><p>You need to subscribe to the event types that you are interested in with <code>commands.bidi.subscribe('messageType');</code> and unsubscribe when you are done.</p><h3 id="listen-on-events">Listen on events</h3><p>When you subscribe on an event you want to do something when the events happen.</p><pre class="prettyprint source lang-javascript"><code>/**
|
||||
</code></pre><h3 id="subscribe-and-unsubscribe-to-events">Subscribe and unsubscribe to events</h3><p>You need to subscribe to the event types that you are interested in with <code>commands.bidi.subscribe('messageType');</code> and unsubscribe when you are done.</p><h3 id="listen-on-events">Listen on events</h3><p>When you subscribe on an event you want to do something when the events happen.</p><pre class="prettyprint source lang-javascript"><code>/**
|
||||
* @param {import('browsertime').BrowsertimeContext} context
|
||||
* @param {import('browsertime').BrowsertimeCommands} commands
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue