Skip to content

Commit

Permalink
doc: avoid duplicate keys for capabilities and timeouts structs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdanp committed Sep 12, 2024
1 parent c4a4296 commit 0ac0f6c
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions marionette-doc/scribblings/marionette.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,14 @@ you got it from, it becomes invalid.
}

@deftogether[(
@defstruct[capabilities ([timeouts timeouts?]
[page-load-strategy page-load-strategy/c]
[unhandled-prompt-behavior unhandled-prompt-behavior/c]
[accept-insecure-certs? boolean?])]
@defstruct[
capabilities
([timeouts timeouts?]
[page-load-strategy page-load-strategy/c]
[unhandled-prompt-behavior unhandled-prompt-behavior/c]
[accept-insecure-certs? boolean?])
#:omit-constructor
]
@defproc[(make-capabilities [#:timeouts timeouts timeouts? (make-timeouts)]
[#:page-load-strategy page-load-strategy page-load-strategy/c 'normal]
[#:unhandled-prompt-behavior unhandled-prompt-behavior unhandled-prompt-behavior/c 'dismiss-and-notify]
Expand All @@ -496,9 +500,13 @@ you got it from, it becomes invalid.
@subsection[#:tag "reference/timeouts"]{Timeouts}

@deftogether[(
@defstruct[timeouts ([script exact-nonnegative-integer?]
[page-load exact-nonnegative-integer?]
[implicit exact-nonnegative-integer?])]
@defstruct[
timeouts
([script exact-nonnegative-integer?]
[page-load exact-nonnegative-integer?]
[implicit exact-nonnegative-integer?])
#:omit-constructor
]
@defproc[(make-timeouts [#:script script exact-nonnegative-integer? 30000]
[#:page-load page-load exact-nonnegative-integer? 300000]
[#:implicit implicit exact-nonnegative-integer? 0]) timeouts?]
Expand Down

0 comments on commit 0ac0f6c

Please sign in to comment.