mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Update jsdoc from Tracing patch (#189)
This fixes the comments @a1ph on #181 about JSDOC.
This commit is contained in:
parent
cb471e3666
commit
c32df08e4c
@ -27,6 +27,7 @@ class Tracing {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Object=} options
|
* @param {Object=} options
|
||||||
|
* @return {!Promise}
|
||||||
*/
|
*/
|
||||||
async start(options = {}) {
|
async start(options = {}) {
|
||||||
console.assert(!this._recording, 'Cannot start recording trace while already recording trace.');
|
console.assert(!this._recording, 'Cannot start recording trace while already recording trace.');
|
||||||
@ -50,6 +51,7 @@ class Tracing {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} path
|
* @param {string} path
|
||||||
|
* @return {!Promise}
|
||||||
*/
|
*/
|
||||||
async stop(path) {
|
async stop(path) {
|
||||||
let fulfill;
|
let fulfill;
|
||||||
@ -64,7 +66,7 @@ class Tracing {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} handle
|
* @param {string} handle
|
||||||
* @param {string=} path
|
* @param {string} path
|
||||||
* @return {!Promise}
|
* @return {!Promise}
|
||||||
*/
|
*/
|
||||||
async _readStream(handle, path) {
|
async _readStream(handle, path) {
|
||||||
|
@ -1361,7 +1361,7 @@ describe('Page', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('Page.pdf', function() {
|
describe('Page.pdf', function() {
|
||||||
let outputFile = __dirname + '/assets/output.pdf';
|
const outputFile = __dirname + '/assets/output.pdf';
|
||||||
afterEach(function() {
|
afterEach(function() {
|
||||||
fs.unlinkSync(outputFile);
|
fs.unlinkSync(outputFile);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user