feat(webkit): roll to r1515 (#7625)
This commit is contained in:
parent
7b795c9bc5
commit
3eb21e2322
|
|
@ -23,7 +23,7 @@
|
|||
},
|
||||
{
|
||||
"name": "webkit",
|
||||
"revision": "1507",
|
||||
"revision": "1515",
|
||||
"installByDefault": true,
|
||||
"revisionOverrides": {
|
||||
"mac10.14": "1446"
|
||||
|
|
|
|||
2
src/server/webkit/protocol.d.ts
vendored
2
src/server/webkit/protocol.d.ts
vendored
|
|
@ -5990,7 +5990,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
|
|||
/**
|
||||
* List of settings able to be overridden by WebInspector.
|
||||
*/
|
||||
export type Setting = "PrivateClickMeasurementDebugModeEnabled"|"AuthorAndUserStylesEnabled"|"ICECandidateFilteringEnabled"|"ITPDebugModeEnabled"|"ImagesEnabled"|"MediaCaptureRequiresSecureConnection"|"MockCaptureDevicesEnabled"|"NeedsSiteSpecificQuirks"|"ScriptEnabled"|"ShowDebugBorders"|"ShowRepaintCounter"|"WebRTCEncryptionEnabled"|"WebSecurityEnabled";
|
||||
export type Setting = "PrivateClickMeasurementDebugModeEnabled"|"AuthorAndUserStylesEnabled"|"ICECandidateFilteringEnabled"|"ITPDebugModeEnabled"|"ImagesEnabled"|"MediaCaptureRequiresSecureConnection"|"MockCaptureDevicesEnabled"|"NeedsSiteSpecificQuirks"|"ScriptEnabled"|"ShowDebugBorders"|"ShowRepaintCounter"|"WebRTCEncryptionEnabled"|"WebSecurityEnabled"|"DeviceOrientationEventEnabled"|"SpeechRecognitionEnabled";
|
||||
/**
|
||||
* Resource type as it was perceived by the rendering engine.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -209,6 +209,7 @@ export class WKPage implements PageDelegate {
|
|||
promises.push(session.send('Page.setTimeZone', { timeZone: contextOptions.timezoneId }).
|
||||
catch(e => { throw new Error(`Invalid timezone ID: ${contextOptions.timezoneId}`); }));
|
||||
}
|
||||
promises.push(session.send('Page.overrideSetting', { setting: 'DeviceOrientationEventEnabled' as any, value: contextOptions.isMobile }));
|
||||
await Promise.all(promises);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import yauzl from 'yauzl';
|
|||
import jpeg from 'jpeg-js';
|
||||
|
||||
test('should collect trace', async ({ context, page, server }, testInfo) => {
|
||||
await context.tracing.start({ name: 'test', screenshots: true, snapshots: true });
|
||||
await context.tracing.start({ screenshots: true, snapshots: true });
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
await page.setContent('<button>Click</button>');
|
||||
await page.click('"Click"');
|
||||
|
|
@ -182,7 +182,7 @@ for (const params of [
|
|||
}
|
||||
|
||||
test('should include interrupted actions', async ({ context, page, server }, testInfo) => {
|
||||
await context.tracing.start({ name: 'test', screenshots: true, snapshots: true });
|
||||
await context.tracing.start({ screenshots: true, snapshots: true });
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
await page.setContent('<button>Click</button>');
|
||||
page.click('"ClickNoButton"').catch(() => {});
|
||||
|
|
|
|||
4
utils/testserver/index.d.ts
vendored
4
utils/testserver/index.d.ts
vendored
|
|
@ -25,9 +25,9 @@ export class TestServer {
|
|||
enableGzip(path: string);
|
||||
setCSP(path: string, csp: string);
|
||||
stop(): Promise<void>;
|
||||
setRoute(path: string, handler: (message: IncomingMessage & {postBody: Buffer}, response: ServerResponse) => void);
|
||||
setRoute(path: string, handler: (message: IncomingMessage & { postBody: Promise<Buffer> }, response: ServerResponse) => void);
|
||||
setRedirect(from: string, to: string);
|
||||
waitForRequest(path: string): Promise<IncomingMessage & {postBody: Buffer}>;
|
||||
waitForRequest(path: string): Promise<IncomingMessage & { postBody: Promise<Buffer> }>;
|
||||
waitForWebSocketConnectionRequest(): Promise<IncomingMessage>;
|
||||
sendOnWebSocketConnection(data: string);
|
||||
reset();
|
||||
|
|
|
|||
Loading…
Reference in a new issue