Skip to content

Commit a663d28

Browse files
committed
[js] Running format script
1 parent a169d90 commit a663d28

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

javascript/node/selenium-webdriver/bidi/browsingContext.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,11 @@ class BrowsingContext {
168168
throw Error(result['error'])
169169
}
170170

171-
const contexts = result['result']['contexts'];
172-
const browsingContexts = contexts.map(context => {
173-
return new BrowsingContextInfo(
174-
context['id'],
175-
context['url'],
176-
context['children'],
177-
context['parent']
178-
);
179-
});
180-
return browsingContexts;
171+
const contexts = result['result']['contexts']
172+
const browsingContexts = contexts.map((context) => {
173+
return new BrowsingContextInfo(context['id'], context['url'], context['children'], context['parent'])
174+
})
175+
return browsingContexts
181176
}
182177

183178
/**

javascript/node/selenium-webdriver/test/bidi/browsingcontext_test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -447,18 +447,18 @@ suite(
447447

448448
const devicePixelRatio = await driver.executeScript('return window.devicePixelRatio;')
449449
assert.equal(devicePixelRatio, 5)
450-
});
450+
})
451451

452-
it('Get All Top level browsing contexts', async ()=> {
452+
it('Get All Top level browsing contexts', async () => {
453453
const id = await driver.getWindowHandle()
454454
const window1 = await BrowsingContext(driver, {
455455
browsingContextId: id,
456-
});
457-
const window2 = await BrowsingContext(driver, {type: 'window'});
456+
})
457+
const window2 = await BrowsingContext(driver, { type: 'window' })
458458

459-
const res = await window1.getTopLevelContexts();
460-
assert.equal(res.length, 2);
461-
});
459+
const res = await window1.getTopLevelContexts()
460+
assert.equal(res.length, 2)
461+
})
462462
})
463463
},
464464
{ browsers: [Browser.FIREFOX] },

0 commit comments

Comments
 (0)