fmt + output
This commit is contained in:
parent
59ddf6dda9
commit
8daaed1ef9
@ -77,6 +77,7 @@ const cqd_name_list = [
|
|||||||
'Iwn<Zo@nan',
|
'Iwn<Zo@nan',
|
||||||
'U>7D3Ol7uWKIfTC@XJ联队'
|
'U>7D3Ol7uWKIfTC@XJ联队'
|
||||||
]
|
]
|
||||||
|
|
||||||
function createJSDOMForOpponent(opponent, name, mode, testString, config, localStorageMock, path, results) {
|
function createJSDOMForOpponent(opponent, name, mode, testString, config, localStorageMock, path, results) {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
new JSDOM(fs.readFileSync(path.join(__dirname, 'static/md5.html'), 'utf-8'), {
|
new JSDOM(fs.readFileSync(path.join(__dirname, 'static/md5.html'), 'utf-8'), {
|
||||||
@ -93,7 +94,10 @@ function createJSDOMForOpponent(opponent, name, mode, testString, config, localS
|
|||||||
results.push(args[2]);
|
results.push(args[2]);
|
||||||
window.close();
|
window.close();
|
||||||
resolve(); // 解决Promise,表示当前JSDOM操作完成
|
resolve(); // 解决Promise,表示当前JSDOM操作完成
|
||||||
}
|
};
|
||||||
|
window.output = (...message) => {
|
||||||
|
console.log('page:', message);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user