test(coverage): add failing test for skipping all debugger statements (#3779)

This commit is contained in:
Joel Einbinder 2019-01-15 14:49:57 -08:00 committed by Andrey Lushnikov
parent 4e1e2fb701
commit 91c4501cc6

View File

@ -109,6 +109,14 @@ module.exports.addTests = function({testRunner, expect}) {
expect(coverage.length).toBe(0);
});
});
xit('should not hang when there is a debugger statement', async function({page, server}) {
await page.coverage.startJSCoverage();
await page.goto(server.EMPTY_PAGE);
await page.evaluate(() => {
debugger; // eslint-disable-line no-debugger
});
await page.coverage.stopJSCoverage();
});
});
describe('CSSCoverage', function() {