mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore(tests): fix a few typos in tests (#911)
This commit is contained in:
parent
a6cf8237b8
commit
bafd937fc3
@ -598,7 +598,7 @@ describe('Page', function() {
|
|||||||
expect(error.message).toContain('Cannot navigate to invalid URL');
|
expect(error.message).toContain('Cannot navigate to invalid URL');
|
||||||
}));
|
}));
|
||||||
it('should fail when navigating to bad SSL', SX(async function() {
|
it('should fail when navigating to bad SSL', SX(async function() {
|
||||||
// Make sure that network events do not emit 'undefind'.
|
// Make sure that network events do not emit 'undefined'.
|
||||||
// @see https://crbug.com/750469
|
// @see https://crbug.com/750469
|
||||||
page.on('request', request => expect(request).toBeTruthy());
|
page.on('request', request => expect(request).toBeTruthy());
|
||||||
page.on('requestfinished', request => expect(request).toBeTruthy());
|
page.on('requestfinished', request => expect(request).toBeTruthy());
|
||||||
@ -739,7 +739,7 @@ describe('Page', function() {
|
|||||||
// Expect navigation to succeed.
|
// Expect navigation to succeed.
|
||||||
expect(response.ok).toBe(true);
|
expect(response.ok).toBe(true);
|
||||||
}));
|
}));
|
||||||
it('should not leak listeners durint navigation', SX(async function() {
|
it('should not leak listeners during navigation', SX(async function() {
|
||||||
let warning = null;
|
let warning = null;
|
||||||
const warningHandler = w => warning = w;
|
const warningHandler = w => warning = w;
|
||||||
process.on('warning', warningHandler);
|
process.on('warning', warningHandler);
|
||||||
@ -1348,7 +1348,7 @@ describe('Page', function() {
|
|||||||
'Keypress: ^ 94 94 94 []',
|
'Keypress: ^ 94 94 94 []',
|
||||||
'Keyup: ^ 54 []'].join('\n'));
|
'Keyup: ^ 54 []'].join('\n'));
|
||||||
}));
|
}));
|
||||||
it('should send propery codes while typing with shift', SX(async function(){
|
it('should send proper codes while typing with shift', SX(async function(){
|
||||||
await page.goto(PREFIX + '/input/keyboard.html');
|
await page.goto(PREFIX + '/input/keyboard.html');
|
||||||
const keyboard = page.keyboard;
|
const keyboard = page.keyboard;
|
||||||
await keyboard.down('Shift');
|
await keyboard.down('Shift');
|
||||||
|
Loading…
Reference in New Issue
Block a user