feat(webkit): bump to 1347 (#3955)

This commit is contained in:
Yury Semikhatsky 2020-09-22 16:38:05 -07:00 committed by GitHub
parent 18809b3902
commit 1d21c1e4bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 22 deletions

View File

@ -13,7 +13,7 @@
}, },
{ {
"name": "webkit", "name": "webkit",
"revision": "1344", "revision": "1347",
"download": true "download": true
} }
] ]

View File

@ -2463,6 +2463,10 @@ export module Protocol {
*/ */
export type setBreakpointForEventListenerParameters = { export type setBreakpointForEventListenerParameters = {
eventListenerId: EventListenerId; eventListenerId: EventListenerId;
/**
* Options to apply to this breakpoint to modify its behavior.
*/
options?: Debugger.BreakpointOptions;
} }
export type setBreakpointForEventListenerReturnValue = { export type setBreakpointForEventListenerReturnValue = {
} }
@ -2976,6 +2980,10 @@ might return multiple quads for inline nodes.
* Type of the operation to stop upon. * Type of the operation to stop upon.
*/ */
type: DOMBreakpointType; type: DOMBreakpointType;
/**
* Options to apply to this breakpoint to modify its behavior.
*/
options?: Debugger.BreakpointOptions;
} }
export type setDOMBreakpointReturnValue = { export type setDOMBreakpointReturnValue = {
} }
@ -3003,6 +3011,10 @@ might return multiple quads for inline nodes.
* The name of the specific event to stop on. * The name of the specific event to stop on.
*/ */
eventName?: string; eventName?: string;
/**
* Options to apply to this breakpoint to modify its behavior.
*/
options?: Debugger.BreakpointOptions;
} }
export type setEventBreakpointReturnValue = { export type setEventBreakpointReturnValue = {
} }
@ -3030,6 +3042,10 @@ might return multiple quads for inline nodes.
* Whether the URL string is a regular expression. * Whether the URL string is a regular expression.
*/ */
isRegex?: boolean; isRegex?: boolean;
/**
* Options to apply to this breakpoint to modify its behavior.
*/
options?: Debugger.BreakpointOptions;
} }
export type setURLBreakpointReturnValue = { export type setURLBreakpointReturnValue = {
} }
@ -3041,6 +3057,10 @@ might return multiple quads for inline nodes.
* Resource URL substring. An empty string will stop pausing on all requests. * Resource URL substring. An empty string will stop pausing on all requests.
*/ */
url: string; url: string;
/**
* Whether the URL string is a regular expression.
*/
isRegex?: boolean;
} }
export type removeURLBreakpointReturnValue = { export type removeURLBreakpointReturnValue = {
} }
@ -3760,6 +3780,10 @@ might return multiple quads for inline nodes.
*/ */
export type setPauseOnDebuggerStatementsParameters = { export type setPauseOnDebuggerStatementsParameters = {
enabled: boolean; enabled: boolean;
/**
* Options to apply to this breakpoint to modify its behavior.
*/
options?: BreakpointOptions;
} }
export type setPauseOnDebuggerStatementsReturnValue = { export type setPauseOnDebuggerStatementsReturnValue = {
} }
@ -3771,6 +3795,10 @@ might return multiple quads for inline nodes.
* Pause on exceptions mode. * Pause on exceptions mode.
*/ */
state: "none"|"uncaught"|"all"; state: "none"|"uncaught"|"all";
/**
* Options to apply to this breakpoint to modify its behavior.
*/
options?: BreakpointOptions;
} }
export type setPauseOnExceptionsReturnValue = { export type setPauseOnExceptionsReturnValue = {
} }
@ -3779,6 +3807,10 @@ might return multiple quads for inline nodes.
*/ */
export type setPauseOnAssertionsParameters = { export type setPauseOnAssertionsParameters = {
enabled: boolean; enabled: boolean;
/**
* Options to apply to this breakpoint to modify its behavior.
*/
options?: BreakpointOptions;
} }
export type setPauseOnAssertionsReturnValue = { export type setPauseOnAssertionsReturnValue = {
} }
@ -3787,6 +3819,10 @@ might return multiple quads for inline nodes.
*/ */
export type setPauseOnMicrotasksParameters = { export type setPauseOnMicrotasksParameters = {
enabled: boolean; enabled: boolean;
/**
* Options to apply to this breakpoint to modify its behavior.
*/
options?: BreakpointOptions;
} }
export type setPauseOnMicrotasksReturnValue = { export type setPauseOnMicrotasksReturnValue = {
} }
@ -4515,15 +4551,6 @@ Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
object: Runtime.RemoteObject; object: Runtime.RemoteObject;
hints: { [key: string]: string }; hints: { [key: string]: string };
} }
/**
* Fired when the backend has alternate domains that need to be activated.
*/
export type activateExtraDomainsPayload = {
/**
* Domain names that need activation
*/
domains: string[];
}
/** /**
* Enables inspector domain notifications. * Enables inspector domain notifications.
@ -6436,10 +6463,7 @@ Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
* Forces the given appearance for the page. * Forces the given appearance for the page.
*/ */
export type setForcedAppearanceParameters = { export type setForcedAppearanceParameters = {
/** appearance?: Appearance;
* Appearance name to force. Empty string disables the override.
*/
appearance: Appearance;
} }
export type setForcedAppearanceReturnValue = { export type setForcedAppearanceReturnValue = {
} }
@ -8359,7 +8383,6 @@ Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
"Heap.trackingComplete": Heap.trackingCompletePayload; "Heap.trackingComplete": Heap.trackingCompletePayload;
"Inspector.evaluateForTestInFrontend": Inspector.evaluateForTestInFrontendPayload; "Inspector.evaluateForTestInFrontend": Inspector.evaluateForTestInFrontendPayload;
"Inspector.inspect": Inspector.inspectPayload; "Inspector.inspect": Inspector.inspectPayload;
"Inspector.activateExtraDomains": Inspector.activateExtraDomainsPayload;
"LayerTree.layerTreeDidChange": LayerTree.layerTreeDidChangePayload; "LayerTree.layerTreeDidChange": LayerTree.layerTreeDidChangePayload;
"Memory.memoryPressure": Memory.memoryPressurePayload; "Memory.memoryPressure": Memory.memoryPressurePayload;
"Memory.trackingStart": Memory.trackingStartPayload; "Memory.trackingStart": Memory.trackingStartPayload;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import { it, expect, options } from './playwright.fixtures'; import { it, expect } from './playwright.fixtures';
it('should dispatch click event', async ({page, server}) => { it('should dispatch click event', async ({page, server}) => {
await page.goto(server.PREFIX + '/input/button.html'); await page.goto(server.PREFIX + '/input/button.html');
@ -125,9 +125,7 @@ it('should be atomic', async ({playwright, page}) => {
expect(await page.evaluate(() => window['_clicked'])).toBe(true); expect(await page.evaluate(() => window['_clicked'])).toBe(true);
}); });
it('should dispatch drag drop events', (test, parameters) => { it('should dispatch drag drop events', async ({page, server}) => {
test.fail(options.WEBKIT(parameters));
}, async ({page, server}) => {
await page.goto(server.PREFIX + '/drag-n-drop.html'); await page.goto(server.PREFIX + '/drag-n-drop.html');
const dataTransfer = await page.evaluateHandle(() => new DataTransfer()); const dataTransfer = await page.evaluateHandle(() => new DataTransfer());
await page.dispatchEvent('#source', 'dragstart', { dataTransfer }); await page.dispatchEvent('#source', 'dragstart', { dataTransfer });
@ -139,9 +137,7 @@ it('should dispatch drag drop events', (test, parameters) => {
}, {source, target})).toBeTruthy(); }, {source, target})).toBeTruthy();
}); });
it('should dispatch drag drop events', (test, parameters) => { it('should dispatch drag drop events', async ({page, server}) => {
test.fail(options.WEBKIT(parameters));
}, async ({page, server}) => {
await page.goto(server.PREFIX + '/drag-n-drop.html'); await page.goto(server.PREFIX + '/drag-n-drop.html');
const dataTransfer = await page.evaluateHandle(() => new DataTransfer()); const dataTransfer = await page.evaluateHandle(() => new DataTransfer());
const source = await page.$('#source'); const source = await page.$('#source');