test: add first-party-set chromium tests (#34827)

test: add first-part-set chromium feature tests
This commit is contained in:
Keeley Hammond 2022-07-07 15:14:53 -04:00 committed by GitHub
parent 7ec88584b5
commit e83c3ec744
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 71 additions and 0 deletions

View file

@ -0,0 +1,12 @@
const { app } = require('electron');
app.whenReady().then(function () {
const hasSwitch = app.commandLine.hasSwitch('use-first-party-set');
const value = app.commandLine.getSwitchValue('use-first-party-set');
if (hasSwitch) {
process.stdout.write(JSON.stringify(value));
process.stdout.end();
}
app.quit();
});

View file

@ -0,0 +1,4 @@
{
"name": "electron-test-first-party-sets-command-line",
"main": "main.js"
}