feat(webkit): roll to r1515 (#7625)

This commit is contained in:
Pavel Feldman 2021-07-14 18:43:51 -07:00 committed by GitHub
parent 7b795c9bc5
commit 3eb21e2322
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 6 deletions

View file

@ -23,7 +23,7 @@
},
{
"name": "webkit",
"revision": "1507",
"revision": "1515",
"installByDefault": true,
"revisionOverrides": {
"mac10.14": "1446"

View file

@ -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.
*/

View file

@ -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);
}

View file

@ -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(() => {});

View file

@ -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();