mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: enable dumpio
test only on old headless (#10922)
This commit is contained in:
parent
1283ca5bcf
commit
5e9bc691ed
@ -3989,18 +3989,6 @@
|
|||||||
"parameters": ["cdp", "chrome", "new-headless"],
|
"parameters": ["cdp", "chrome", "new-headless"],
|
||||||
"expectations": ["FAIL", "PASS"]
|
"expectations": ["FAIL", "PASS"]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"testIdPattern": "[fixtures.spec] Fixtures dumpio option should work with pipe option",
|
|
||||||
"platforms": ["darwin", "linux", "win32"],
|
|
||||||
"parameters": ["cdp", "chrome", "headful"],
|
|
||||||
"expectations": ["FAIL", "PASS"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"testIdPattern": "[fixtures.spec] Fixtures dumpio option should work with pipe option",
|
|
||||||
"platforms": ["darwin", "linux", "win32"],
|
|
||||||
"parameters": ["cdp", "chrome", "new-headless"],
|
|
||||||
"expectations": ["FAIL", "PASS"]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"testIdPattern": "[headful.spec] headful tests HEADFUL OOPIF: should expose events within OOPIFs",
|
"testIdPattern": "[headful.spec] headful tests HEADFUL OOPIF: should expose events within OOPIFs",
|
||||||
"platforms": ["linux"],
|
"platforms": ["linux"],
|
||||||
|
@ -29,7 +29,7 @@ describe('Fixtures', function () {
|
|||||||
it('dumpio option should work with pipe option', async () => {
|
it('dumpio option should work with pipe option', async () => {
|
||||||
const {defaultBrowserOptions, puppeteerPath, headless} =
|
const {defaultBrowserOptions, puppeteerPath, headless} =
|
||||||
await getTestState();
|
await getTestState();
|
||||||
if (headless === 'new') {
|
if (headless !== 'true') {
|
||||||
// This test only works in the old headless mode.
|
// This test only works in the old headless mode.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -46,7 +46,7 @@ describe('Fixtures', function () {
|
|||||||
JSON.stringify(options),
|
JSON.stringify(options),
|
||||||
]);
|
]);
|
||||||
res.stderr.on('data', data => {
|
res.stderr.on('data', data => {
|
||||||
return (dumpioData += data.toString('utf8'));
|
dumpioData += data.toString('utf8');
|
||||||
});
|
});
|
||||||
await new Promise(resolve => {
|
await new Promise(resolve => {
|
||||||
return res.on('close', resolve);
|
return res.on('close', resolve);
|
||||||
@ -65,7 +65,7 @@ describe('Fixtures', function () {
|
|||||||
JSON.stringify(options),
|
JSON.stringify(options),
|
||||||
]);
|
]);
|
||||||
res.stderr.on('data', data => {
|
res.stderr.on('data', data => {
|
||||||
return (dumpioData += data.toString('utf8'));
|
dumpioData += data.toString('utf8');
|
||||||
});
|
});
|
||||||
await new Promise(resolve => {
|
await new Promise(resolve => {
|
||||||
return res.on('close', resolve);
|
return res.on('close', resolve);
|
||||||
@ -88,7 +88,7 @@ describe('Fixtures', function () {
|
|||||||
]);
|
]);
|
||||||
let wsEndPointCallback: (value: string) => void;
|
let wsEndPointCallback: (value: string) => void;
|
||||||
const wsEndPointPromise = new Promise<string>(x => {
|
const wsEndPointPromise = new Promise<string>(x => {
|
||||||
return (wsEndPointCallback = x);
|
wsEndPointCallback = x;
|
||||||
});
|
});
|
||||||
let output = '';
|
let output = '';
|
||||||
res.stdout.on('data', data => {
|
res.stdout.on('data', data => {
|
||||||
@ -103,7 +103,7 @@ describe('Fixtures', function () {
|
|||||||
const promises = [
|
const promises = [
|
||||||
waitEvent(browser, 'disconnected'),
|
waitEvent(browser, 'disconnected'),
|
||||||
new Promise(resolve => {
|
new Promise(resolve => {
|
||||||
return res.on('close', resolve);
|
res.on('close', resolve);
|
||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
|
Loading…
Reference in New Issue
Block a user