зеркало из https://github.com/electron/electron.git
test: more logging in node inspector test (#23746)
This commit is contained in:
Родитель
2029ff1903
Коммит
0dabd5e8c7
|
@ -258,10 +258,13 @@ describe('node feature', () => {
|
|||
const success = false;
|
||||
function listener (data: Buffer) {
|
||||
output += data;
|
||||
console.log(data); // NOTE: temporary debug logging to try to catch flake.
|
||||
console.log(data.toString()); // NOTE: temporary debug logging to try to catch flake.
|
||||
const match = /^Debugger listening on (ws:\/\/.+:\d+\/.+)\n/m.exec(output.trim());
|
||||
if (match) {
|
||||
cleanup();
|
||||
// NOTE: temporary debug logging to try to catch flake.
|
||||
child.stderr.on('data', (m) => console.log(m.toString()));
|
||||
child.stdout.on('data', (m) => console.log(m.toString()));
|
||||
const w = (webContents as any).create({}) as WebContents;
|
||||
w.loadURL('about:blank')
|
||||
.then(() => w.executeJavaScript(`new Promise(resolve => {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
const { app } = require('electron');
|
||||
|
||||
process.on('message', () => app.quit());
|
||||
process.on('message', () => {
|
||||
console.log('Notified to quit');
|
||||
app.quit();
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче