add initial marp implementation with sample content and build configuration
This commit is contained in:
62
node_modules/webdriver-bidi-protocol/test-d/webdriver-bidi-protocol.test-d.ts
generated
vendored
Normal file
62
node_modules/webdriver-bidi-protocol/test-d/webdriver-bidi-protocol.test-d.ts
generated
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2024 Google Inc.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import {Event, Command, Commands} from '..';
|
||||
|
||||
function sendCommand(command: Command) {}
|
||||
function handleEvent(event: Event) {}
|
||||
function sendCommandMultipleArgs<T extends keyof Commands>(
|
||||
method: T,
|
||||
params: Commands[T]['params'],
|
||||
): {result: Commands[T]['returnType']} {
|
||||
throw new Error('Not implemented');
|
||||
}
|
||||
|
||||
sendCommand({
|
||||
id: 1,
|
||||
method: 'browser.close',
|
||||
params: {},
|
||||
});
|
||||
|
||||
sendCommandMultipleArgs('browser.close', {});
|
||||
|
||||
sendCommand({
|
||||
id: 1,
|
||||
method: 'browsingContext.print',
|
||||
params: {
|
||||
context: '',
|
||||
},
|
||||
});
|
||||
|
||||
sendCommandMultipleArgs('browsingContext.print', {context: ''});
|
||||
|
||||
handleEvent({
|
||||
type: 'event',
|
||||
method: 'browsingContext.contextCreated',
|
||||
params: {
|
||||
children: [],
|
||||
context: '',
|
||||
url: '',
|
||||
userContext: '',
|
||||
originalOpener: null,
|
||||
clientWindow: '',
|
||||
},
|
||||
});
|
||||
|
||||
sendCommandMultipleArgs('bluetooth.simulateAdapter', {
|
||||
context: '',
|
||||
state: 'powered-on',
|
||||
});
|
||||
|
||||
handleEvent({
|
||||
type: 'event',
|
||||
method: 'bluetooth.requestDevicePromptUpdated',
|
||||
params: {
|
||||
context: '',
|
||||
prompt: '',
|
||||
devices: [],
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user