From 91c4501cc66d3e00156242a196d5f9f925609782 Mon Sep 17 00:00:00 2001 From: Joel Einbinder Date: Tue, 15 Jan 2019 14:49:57 -0800 Subject: [PATCH] test(coverage): add failing test for skipping all debugger statements (#3779) --- test/coverage.spec.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/coverage.spec.js b/test/coverage.spec.js index e62a3ae6d5a..77ebad7eb33 100644 --- a/test/coverage.spec.js +++ b/test/coverage.spec.js @@ -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() {