test: reorder describes in JS coverage spec (#7075)
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>
This commit is contained in:
parent
b75039746a
commit
89a85b428d
@ -125,6 +125,17 @@ describe('Coverage specs', function () {
|
|||||||
JSON.stringify(coverage, null, 2).replace(/:\d{4}\//g, ':<PORT>/')
|
JSON.stringify(coverage, null, 2).replace(/:\d{4}\//g, ':<PORT>/')
|
||||||
).toBeGolden('jscoverage-involved.txt');
|
).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 () {
|
describe('resetOnNavigation', function () {
|
||||||
it('should report scripts across navigations when disabled', async () => {
|
it('should report scripts across navigations when disabled', async () => {
|
||||||
const { page, server } = getTestState();
|
const { page, server } = getTestState();
|
||||||
@ -146,17 +157,6 @@ describe('Coverage specs', function () {
|
|||||||
expect(coverage.length).toBe(0);
|
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 () {
|
describeChromeOnly('CSSCoverage', function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user