mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
feat(chromium-tip-of-tree): roll to r1342 (#36379)
This commit is contained in:
parent
07c4958777
commit
6c26c5f6ac
@ -15,15 +15,15 @@
|
||||
},
|
||||
{
|
||||
"name": "chromium-tip-of-tree",
|
||||
"revision": "1341",
|
||||
"revision": "1342",
|
||||
"installByDefault": false,
|
||||
"browserVersion": "139.0.7244.0"
|
||||
"browserVersion": "139.0.7248.0"
|
||||
},
|
||||
{
|
||||
"name": "chromium-tip-of-tree-headless-shell",
|
||||
"revision": "1341",
|
||||
"revision": "1342",
|
||||
"installByDefault": false,
|
||||
"browserVersion": "139.0.7244.0"
|
||||
"browserVersion": "139.0.7248.0"
|
||||
},
|
||||
{
|
||||
"name": "firefox",
|
||||
|
@ -49,11 +49,12 @@ it('should create directories as needed', async ({ browser, server }, testInfo)
|
||||
it('should run with custom categories if provided', async ({ browser }, testInfo) => {
|
||||
const page = await browser.newPage();
|
||||
const outputTraceFile = testInfo.outputPath(path.join(`trace.json`));
|
||||
await browser.startTracing(page, { path: outputTraceFile, categories: ['disabled-by-default-v8.cpu_profiler.hires'] });
|
||||
await browser.startTracing(page, { path: outputTraceFile, categories: ['disabled-by-default-cc.debug'] });
|
||||
await page.evaluate(() => 1 + 1);
|
||||
await browser.stopTracing();
|
||||
|
||||
const traceJson = JSON.parse(fs.readFileSync(outputTraceFile).toString());
|
||||
expect(traceJson.metadata['trace-config']).toContain('disabled-by-default-v8.cpu_profiler.hires');
|
||||
expect(traceJson.traceEvents.filter(event => event.cat === 'disabled-by-default-cc.debug').length).toBeGreaterThan(0);
|
||||
await page.close();
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user