This commit is contained in:
2026-10-19 02:16:57 +07:00
parent bd8f7e49c0
commit 06af1e047d
11 changed files with 405 additions and 238 deletions
+6 -1
View File
@@ -317,7 +317,7 @@ app.whenReady().then(async () => {
}
assert.equal(await evaluate('typeof window.require'), 'undefined')
assert.equal((await evaluate('window.screenBridge.packages()')).length, 1)
if (process.argv.includes('--intro-waveform'))
if (process.argv.includes('--intro-waveform') || process.argv.includes('--previews'))
await evaluate(`window.screenBridge.selectPackage(${JSON.stringify(offlinePackage.key)})`)
await evaluate(`window.screenBridge.show(${targetDisplay.id})`)
let output = await poll(
@@ -328,6 +328,11 @@ app.whenReady().then(async () => {
BrowserWindow.getAllWindows()
.find((w) => w.webContents.getURL() === 'screen-app://app/index.html?output=1')
.webContents.executeJavaScript(source)
if (process.argv.includes('--previews')) {
await require('./previews-smoke.cjs')({ control, output, evaluate, inspect, state, command, poll, targetDisplay })
app.exit(0)
return
}
if (process.argv.includes('--intro-waveform')) {
const selectedDevice = (await evaluate('window.screenBridge.host()')).audioOutputs
.find(device => device.id && !['default', 'communications'].includes(device.id))