Skip to content

Commit

Permalink
test(coverage): add failing test for skipping all debugger statements (
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelEinbinder authored and aslushnikov committed Jan 15, 2019
1 parent 4e1e2fb commit 91c4501
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/coverage.spec.js
Expand Up @@ -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() {
Expand Down

0 comments on commit 91c4501

Please sign in to comment.