tests(webkit): mark Page.navigate to invalid URL test as passing (#293)
This commit is contained in:
parent
ac2ea265fe
commit
1d4ebd37b1
|
|
@ -10,7 +10,7 @@
|
||||||
"playwright": {
|
"playwright": {
|
||||||
"chromium_revision": "724623",
|
"chromium_revision": "724623",
|
||||||
"firefox_revision": "1008",
|
"firefox_revision": "1008",
|
||||||
"webkit_revision": "1044"
|
"webkit_revision": "1046"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"unit": "node test/test.js",
|
"unit": "node test/test.js",
|
||||||
|
|
|
||||||
|
|
@ -141,10 +141,9 @@ module.exports.addTests = function({testRunner, expect, playwright, FFOX, CHROME
|
||||||
const response = await page.goto(server.EMPTY_PAGE, {waitUntil: 'networkidle2'});
|
const response = await page.goto(server.EMPTY_PAGE, {waitUntil: 'networkidle2'});
|
||||||
expect(response.status()).toBe(200);
|
expect(response.status()).toBe(200);
|
||||||
});
|
});
|
||||||
it.skip(WEBKIT)('should fail when navigating to bad url', async({page, server}) => {
|
it('should fail when navigating to bad url', async({page, server}) => {
|
||||||
let error = null;
|
let error = null;
|
||||||
await page.goto('asdfasdf').catch(e => error = e);
|
await page.goto('asdfasdf').catch(e => error = e);
|
||||||
// FIXME: shows dialog in WebKit.
|
|
||||||
if (CHROME || WEBKIT)
|
if (CHROME || WEBKIT)
|
||||||
expect(error.message).toContain('Cannot navigate to invalid URL');
|
expect(error.message).toContain('Cannot navigate to invalid URL');
|
||||||
else
|
else
|
||||||
|
|
@ -361,8 +360,7 @@ module.exports.addTests = function({testRunner, expect, playwright, FFOX, CHROME
|
||||||
process.removeListener('warning', warningHandler);
|
process.removeListener('warning', warningHandler);
|
||||||
expect(warning).toBe(null);
|
expect(warning).toBe(null);
|
||||||
});
|
});
|
||||||
it.skip(WEBKIT)('should not leak listeners during bad navigation', async({page, server}) => {
|
it('should not leak listeners during bad navigation', async({page, server}) => {
|
||||||
// FIXME: shows dialog in webkit.
|
|
||||||
let warning = null;
|
let warning = null;
|
||||||
const warningHandler = w => warning = w;
|
const warningHandler = w => warning = w;
|
||||||
process.on('warning', warningHandler);
|
process.on('warning', warningHandler);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue