Skip to content

Commit

Permalink
test: reorder describes in JS coverage spec (#7075)
Browse files Browse the repository at this point in the history
Just some code reorder. We had a describe between it calls. I'm moving that describe to the end

Co-authored-by: Jack Franklin <jacktfranklin@chromium.org>
  • Loading branch information
kblok and jackfranklin committed May 25, 2021
1 parent b750397 commit 89a85b4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/coverage.spec.ts
Expand Up @@ -125,6 +125,17 @@ describe('Coverage specs', function () {
JSON.stringify(coverage, null, 2).replace(/:\d{4}\//g, ':<PORT>/')
).toBeGolden('jscoverage-involved.txt');
});
// @see https://crbug.com/990945
xit('should not hang when there is a debugger statement', async () => {
const { page, server } = getTestState();

await page.coverage.startJSCoverage();
await page.goto(server.EMPTY_PAGE);
await page.evaluate(() => {
debugger; // eslint-disable-line no-debugger
});
await page.coverage.stopJSCoverage();
});
describe('resetOnNavigation', function () {
it('should report scripts across navigations when disabled', async () => {
const { page, server } = getTestState();
Expand All @@ -146,17 +157,6 @@ describe('Coverage specs', function () {
expect(coverage.length).toBe(0);
});
});
// @see https://crbug.com/990945
xit('should not hang when there is a debugger statement', async () => {
const { page, server } = getTestState();

await page.coverage.startJSCoverage();
await page.goto(server.EMPTY_PAGE);
await page.evaluate(() => {
debugger; // eslint-disable-line no-debugger
});
await page.coverage.stopJSCoverage();
});
});

describeChromeOnly('CSSCoverage', function () {
Expand Down

0 comments on commit 89a85b4

Please sign in to comment.