feat(webkit): roll to r1703 (#16604)

This commit is contained in:
Playwright Service 2022-08-17 17:13:00 -07:00 committed by GitHub
parent 94c99314c6
commit 94c9db299d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 50 additions and 4 deletions

View file

@ -33,7 +33,7 @@
},
{
"name": "webkit",
"revision": "1702",
"revision": "1703",
"installByDefault": true,
"revisionOverrides": {
"mac10.14": "1446",

View file

@ -3722,7 +3722,7 @@ might return multiple quads for inline nodes.
/**
* Pause reason.
*/
reason: "XHR"|"Fetch"|"DOM"|"AnimationFrame"|"Interval"|"Listener"|"Timeout"|"exception"|"assert"|"CSPViolation"|"DebuggerStatement"|"Breakpoint"|"PauseOnNextStatement"|"Microtask"|"BlackboxedScript"|"other";
reason: "XHR"|"Fetch"|"DOM"|"AnimationFrame"|"Interval"|"Listener"|"Timeout"|"exception"|"assert"|"CSPViolation"|"DebuggerStatement"|"Breakpoint"|"PauseOnNextStatement"|"Microtask"|"FunctionCall"|"BlackboxedScript"|"other";
/**
* Object containing break-specific auxiliary properties.
*/
@ -3857,6 +3857,48 @@ might return multiple quads for inline nodes.
}
export type removeBreakpointReturnValue = {
}
/**
* Adds a JavaScript breakpoint that pauses execution whenever a function with the given name is about to be called.
*/
export type addSymbolicBreakpointParameters = {
/**
* The name of the function to pause in when called.
*/
symbol: string;
/**
* If true, symbol is case sensitive. Defaults to true.
*/
caseSensitive?: boolean;
/**
* If true, treats symbol as a regex. Defaults to false.
*/
isRegex?: boolean;
/**
* Options to apply to this breakpoint to modify its behavior.
*/
options?: BreakpointOptions;
}
export type addSymbolicBreakpointReturnValue = {
}
/**
* Removes a previously added symbolic breakpoint.
*/
export type removeSymbolicBreakpointParameters = {
/**
* The name of the function to pause in when called.
*/
symbol: string;
/**
* If true, symbol is case sensitive. Defaults to true.
*/
caseSensitive?: boolean;
/**
* If true, treats symbol as a regex. Defaults to false.
*/
isRegex?: boolean;
}
export type removeSymbolicBreakpointReturnValue = {
}
/**
* Continues execution until the current evaluation completes. This will trigger either a Debugger.paused or Debugger.resumed event.
*/
@ -9055,6 +9097,8 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"Debugger.setBreakpointByUrl": Debugger.setBreakpointByUrlParameters;
"Debugger.setBreakpoint": Debugger.setBreakpointParameters;
"Debugger.removeBreakpoint": Debugger.removeBreakpointParameters;
"Debugger.addSymbolicBreakpoint": Debugger.addSymbolicBreakpointParameters;
"Debugger.removeSymbolicBreakpoint": Debugger.removeSymbolicBreakpointParameters;
"Debugger.continueUntilNextRunLoop": Debugger.continueUntilNextRunLoopParameters;
"Debugger.continueToLocation": Debugger.continueToLocationParameters;
"Debugger.stepNext": Debugger.stepNextParameters;
@ -9359,6 +9403,8 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"Debugger.setBreakpointByUrl": Debugger.setBreakpointByUrlReturnValue;
"Debugger.setBreakpoint": Debugger.setBreakpointReturnValue;
"Debugger.removeBreakpoint": Debugger.removeBreakpointReturnValue;
"Debugger.addSymbolicBreakpoint": Debugger.addSymbolicBreakpointReturnValue;
"Debugger.removeSymbolicBreakpoint": Debugger.removeSymbolicBreakpointReturnValue;
"Debugger.continueUntilNextRunLoop": Debugger.continueUntilNextRunLoopReturnValue;
"Debugger.continueToLocation": Debugger.continueToLocationReturnValue;
"Debugger.stepNext": Debugger.stepNextReturnValue;

View file

@ -94,8 +94,8 @@ it('should click the button with offset with page scale', async ({ browser, serv
const round = x => Math.round(x + 0.01);
let expected = { x: 28, y: 18 }; // 20;10 + 8px of border in each direction
if (browserName === 'webkit') {
// WebKit rounds up during css -> dip -> css conversion.
expected = { x: 29, y: 19 };
// WebKit rounds down during css -> dip -> css conversion.
expected = { x: 26, y: 17 };
} else if (browserName === 'chromium' && headless) {
// Headless Chromium rounds down during css -> dip -> css conversion.
expected = { x: 27, y: 18 };