Skip to content

Commit ae51944

Browse files
authored
Update CDDL and regenerate to fix null litteral (webdriverio#15370)
1 parent 1eb7b97 commit ae51944

5 files changed

Lines changed: 29 additions & 51 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@
9595
"@wdio/eslint": "^0.1.2",
9696
"@wdio/repl": "workspace:*",
9797
"camelcase": "^8.0.0",
98-
"cddl": "^0.14.5",
99-
"cddl2ts": "^0.4.1",
98+
"cddl": "^0.21.0",
99+
"cddl2ts": "^0.10.0",
100100
"chalk": "^5.4.1",
101101
"cheerio": "1.1.2",
102102
"cli-highlight": "^2.1.11",

packages/wdio-protocols/src/protocols/webdriverBidi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ const protocol = {
543543
{
544544
"name": "params",
545545
"type": "`remote.BrowsingContextStartScreencastParameters`",
546-
"description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br /> mimeType?: string;<br /> streamOptions?: BrowsingContextMediaStreamOptions;<br />\\}</pre>",
546+
"description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br /> mimeType?: string;<br /> video?: BrowsingContextMediaTrackConstraints;<br /> audio?: boolean;<br />\\}</pre>",
547547
"required": true
548548
}
549549
],

packages/webdriver/src/bidi/localTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ export interface ScriptUndefinedValue {
667667
}
668668

669669
export interface ScriptNullValue {
670-
type: null;
670+
type: 'null';
671671
}
672672

673673
export interface ScriptStringValue {

packages/webdriver/src/bidi/remoteTypes.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,9 @@ export interface BrowsingContextPrintParameters {
401401
shrinkToFit?: boolean;
402402
}
403403

404-
export // Minimum size is 1pt x 1pt. Conversion follows from
404+
// Minimum size is 1pt x 1pt. Conversion follows from
405405
// https://www.w3.org/TR/css3-values/#absolute-lengths
406-
interface BrowsingContextPrintMarginParameters {
406+
export interface BrowsingContextPrintMarginParameters {
407407
/**
408408
* @default 1
409409
*/
@@ -480,10 +480,6 @@ export interface BrowsingContextStartScreencast {
480480
export interface BrowsingContextStartScreencastParameters {
481481
context: BrowsingContextBrowsingContext;
482482
mimeType?: string;
483-
streamOptions?: BrowsingContextMediaStreamOptions;
484-
}
485-
486-
export interface BrowsingContextMediaStreamOptions {
487483
video?: BrowsingContextMediaTrackConstraints;
488484
audio?: boolean;
489485
}
@@ -494,6 +490,8 @@ export interface BrowsingContextMediaTrackConstraints {
494490
frameRate?: JsUint;
495491
}
496492

493+
export type BrowsingContextScreencast = string
494+
497495
export interface BrowsingContextStopScreencast {
498496
method: 'browsingContext.stopScreencast';
499497
params: BrowsingContextStopScreencastParameters;
@@ -1015,7 +1013,7 @@ export interface ScriptUndefinedValue {
10151013
}
10161014

10171015
export interface ScriptNullValue {
1018-
type: null;
1016+
type: 'null';
10191017
}
10201018

10211019
export interface ScriptStringValue {
@@ -1564,7 +1562,4 @@ export interface WebExtensionUninstall {
15641562

15651563
export interface WebExtensionUninstallParameters {
15661564
extension: WebExtensionExtension;
1567-
}
1568-
1569-
// Fix merged but CDDL not yet updated. See https://github.com/w3c/webdriver-bidi/pull/1126
1570-
export type BrowsingContextScreencast = string
1565+
}

pnpm-lock.yaml

Lines changed: 19 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)