playwright-core 1.45.1 → 1.45.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/lib/client/tracing.js
CHANGED
|
@@ -34,8 +34,8 @@ class Tracing extends _channelOwner.ChannelOwner {
|
|
|
34
34
|
this._isTracing = false;
|
|
35
35
|
}
|
|
36
36
|
async start(options = {}) {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
this._includeSources = !!options.sources;
|
|
38
|
+
const traceName = await this._wrapApiCall(async () => {
|
|
39
39
|
await this._channel.tracingStart({
|
|
40
40
|
name: options.name,
|
|
41
41
|
snapshots: options.snapshots,
|
|
@@ -46,16 +46,15 @@ class Tracing extends _channelOwner.ChannelOwner {
|
|
|
46
46
|
name: options.name,
|
|
47
47
|
title: options.title
|
|
48
48
|
});
|
|
49
|
-
|
|
49
|
+
return response.traceName;
|
|
50
50
|
}, true);
|
|
51
|
+
await this._startCollectingStacks(traceName);
|
|
51
52
|
}
|
|
52
53
|
async startChunk(options = {}) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
await this._startCollectingStacks(traceName);
|
|
58
|
-
}, true);
|
|
54
|
+
const {
|
|
55
|
+
traceName
|
|
56
|
+
} = await this._channel.tracingStartChunk(options);
|
|
57
|
+
await this._startCollectingStacks(traceName);
|
|
59
58
|
}
|
|
60
59
|
async _startCollectingStacks(traceName) {
|
|
61
60
|
if (!this._isTracing) {
|
|
@@ -275,12 +275,8 @@ class Chromium extends _browserType.BrowserType {
|
|
|
275
275
|
if (_os.default.platform() === 'darwin') {
|
|
276
276
|
// See https://github.com/microsoft/playwright/issues/7362
|
|
277
277
|
chromeArguments.push('--enable-use-zoom-for-dsf=false');
|
|
278
|
-
}
|
|
279
|
-
if (options.headless) {
|
|
280
278
|
// See https://bugs.chromium.org/p/chromium/issues/detail?id=1407025.
|
|
281
|
-
|
|
282
|
-
// and chromium fix at https://issues.chromium.org/issues/338414704.
|
|
283
|
-
chromeArguments.push('--enable-gpu');
|
|
279
|
+
if (options.headless) chromeArguments.push('--use-angle');
|
|
284
280
|
}
|
|
285
281
|
if (options.devtools) chromeArguments.push('--auto-open-devtools-for-tabs');
|
|
286
282
|
if (options.headless) {
|
package/package.json
CHANGED
package/types/types.d.ts
CHANGED
|
@@ -17252,7 +17252,7 @@ export interface Clock {
|
|
|
17252
17252
|
* await page.clock.pauseAt('2020-02-02');
|
|
17253
17253
|
* ```
|
|
17254
17254
|
*
|
|
17255
|
-
* @param time
|
|
17255
|
+
* @param time Time to pause at.
|
|
17256
17256
|
*/
|
|
17257
17257
|
pauseAt(time: number|string|Date): Promise<void>;
|
|
17258
17258
|
|
|
@@ -17287,7 +17287,7 @@ export interface Clock {
|
|
|
17287
17287
|
* await page.clock.setFixedTime('2020-02-02');
|
|
17288
17288
|
* ```
|
|
17289
17289
|
*
|
|
17290
|
-
* @param time Time to be set.
|
|
17290
|
+
* @param time Time to be set in milliseconds.
|
|
17291
17291
|
*/
|
|
17292
17292
|
setFixedTime(time: number|string|Date): Promise<void>;
|
|
17293
17293
|
|
|
@@ -17302,7 +17302,7 @@ export interface Clock {
|
|
|
17302
17302
|
* await page.clock.setSystemTime('2020-02-02');
|
|
17303
17303
|
* ```
|
|
17304
17304
|
*
|
|
17305
|
-
* @param time
|
|
17305
|
+
* @param time Time to be set in milliseconds.
|
|
17306
17306
|
*/
|
|
17307
17307
|
setSystemTime(time: number|string|Date): Promise<void>;
|
|
17308
17308
|
}
|