Skip to content

Commit 8718f6c

Browse files
committed
Fix formatting
1 parent 4f0fbf3 commit 8718f6c

File tree

6 files changed

+187
-195
lines changed

6 files changed

+187
-195
lines changed

javascript/node/selenium-webdriver/lib/command.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,14 @@ const Name = {
188188

189189
// Federated Credential Management API
190190
// https://www.w3.org/TR/fedcm/#automation
191-
CANCEL_DIALOG : 'cancelDialog',
192-
SELECT_ACCOUNT : 'selectAccount',
193-
GET_ACCOUNTS : 'getAccounts',
194-
GET_FEDCM_TITLE : 'getFedCmTitle',
195-
GET_FEDCM_DIALOG_TYPE : 'getFedCmDialogType',
196-
SET_DELAY_ENABLED : 'setDelayEnabled',
197-
RESET_COOLDOWN : 'resetCooldown',
198-
CLICK_DIALOG_BUTTON: 'clickdialogbutton'
191+
CANCEL_DIALOG: 'cancelDialog',
192+
SELECT_ACCOUNT: 'selectAccount',
193+
GET_ACCOUNTS: 'getAccounts',
194+
GET_FEDCM_TITLE: 'getFedCmTitle',
195+
GET_FEDCM_DIALOG_TYPE: 'getFedCmDialogType',
196+
SET_DELAY_ENABLED: 'setDelayEnabled',
197+
RESET_COOLDOWN: 'resetCooldown',
198+
CLICK_DIALOG_BUTTON: 'clickdialogbutton',
199199
}
200200

201201
/**

javascript/node/selenium-webdriver/lib/fedcm/account.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@ const LoginState = {
2121
}
2222

2323
class Account {
24-
25-
constructor(accountId,
26-
email,
27-
name,
28-
givenName,
29-
pictureUrl,
30-
idpConfigUrl,
31-
loginState,
32-
termsOfServiceUrl,
33-
privacyPolicyUrl ) {
24+
constructor(
25+
accountId,
26+
email,
27+
name,
28+
givenName,
29+
pictureUrl,
30+
idpConfigUrl,
31+
loginState,
32+
termsOfServiceUrl,
33+
privacyPolicyUrl,
34+
) {
3435
this._accountId = accountId
3536
this._email = email
3637
this._name = name
@@ -77,4 +78,4 @@ class Account {
7778
get privacyPolicyUrl() {
7879
return this._privacyPolicyUrl
7980
}
80-
}
81+
}

javascript/node/selenium-webdriver/lib/fedcm/dialog.js

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,44 +23,36 @@ const LoginState = {
2323
}
2424

2525
class Dialog {
26-
2726
constructor(driver) {
2827
this._driver = driver
2928
}
3029

3130
async title() {
32-
const result = await this._driver.execute(
33-
new command.Command(command.Name.GET_FEDCM_TITLE))
31+
const result = await this._driver.execute(new command.Command(command.Name.GET_FEDCM_TITLE))
3432

3533
return result.title
3634
}
3735

3836
subtitle() {
39-
return this._driver.execute(
40-
new command.Command(command.Name.GET_FEDCM_TITLE))
37+
return this._driver.execute(new command.Command(command.Name.GET_FEDCM_TITLE))
4138
}
4239

4340
type() {
44-
return this._driver.execute(
45-
new command.Command(command.Name.GET_FEDCM_DIALOG_TYPE))
41+
return this._driver.execute(new command.Command(command.Name.GET_FEDCM_DIALOG_TYPE))
4642
}
4743

4844
accounts() {
49-
50-
const result = this._driver.execute(new command.Command(command.Name.GET_ACCOUNTS))
45+
const result = this._driver.execute(new command.Command(command.Name.GET_ACCOUNTS))
5146

5247
return result
5348
}
5449

5550
selectAccount(index) {
56-
return this._driver.execute(
57-
new command.Command(command.Name.SELECT_ACCOUNT).setParameter(
58-
'accountIndex', index))
51+
return this._driver.execute(new command.Command(command.Name.SELECT_ACCOUNT).setParameter('accountIndex', index))
5952
}
6053

6154
accept() {
62-
return this._driver.execute(
63-
new command.Command(command.Name.CLICK_DIALOG_BUTTON))
55+
return this._driver.execute(new command.Command(command.Name.CLICK_DIALOG_BUTTON))
6456
}
6557

6658
dismiss() {
@@ -69,5 +61,5 @@ class Dialog {
6961
}
7062

7163
module.exports = {
72-
Dialog
73-
}
64+
Dialog,
65+
}

javascript/node/selenium-webdriver/lib/http.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,12 +325,12 @@ const W3C_COMMAND_MAP = new Map([
325325
[cmd.Name.CANCEL_DIALOG, post(`/session/:sessionId/fedcm/canceldialog`)],
326326
[cmd.Name.SELECT_ACCOUNT, post(`/session/:sessionId/fedcm/selectaccount`)],
327327
[cmd.Name.GET_FEDCM_TITLE, get(`/session/:sessionId/fedcm/gettitle`)],
328-
[cmd.Name.GET_FEDCM_DIALOG_TYPE , get('/session/:sessionId/fedcm/getdialogtype')],
329-
[cmd.Name.SET_DELAY_ENABLED,post(`/session/:sessionId/fedcm/setdelayenabled`)],
328+
[cmd.Name.GET_FEDCM_DIALOG_TYPE, get('/session/:sessionId/fedcm/getdialogtype')],
329+
[cmd.Name.SET_DELAY_ENABLED, post(`/session/:sessionId/fedcm/setdelayenabled`)],
330330
[cmd.Name.RESET_COOLDOWN, post(`/session/:sessionId/fedcm/resetcooldown`)],
331331
[cmd.Name.CLICK_DIALOG_BUTTON, post(`/session/:sessionId/fedcm/clickdialogbutton`)],
332-
[cmd.Name.GET_ACCOUNTS, get(`/session/:sessionId/fedcm/accountlist`)]
333-
])
332+
[cmd.Name.GET_ACCOUNTS, get(`/session/:sessionId/fedcm/accountlist`)],
333+
])
334334

335335
/**
336336
* Handles sending HTTP messages to a remote end.

javascript/node/selenium-webdriver/lib/webdriver.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,10 +1116,9 @@ class WebDriver {
11161116
}
11171117

11181118
getFederalCredentialManagementDialog() {
1119-
return new Dialog.Dialog(this)
1119+
return new Dialog.Dialog(this)
11201120
}
11211121

1122-
11231122
/** @override */
11241123
manage() {
11251124
return new Options(this)

0 commit comments

Comments
 (0)